简体   繁体   English

从Windows上的Visual Studio 2013交叉编译C ++ OpenCV至Ubuntu

[英]Cross-compiling C++ OpenCV from Visual Studio 2013 on Windows to Ubuntu

I've got a C++ VS2013 solution with 3 projects, using OpenCV 2.4.10, easylogging++ and Dlib libraries. 我有一个包含3个项目的C ++ VS2013解决方案,使用OpenCV 2.4.10,easylogging ++和Dlib库。 The problem is that our client is now migrating to Linux (Ubuntu Server). 问题在于我们的客户端现在正在迁移到Linux(Ubuntu Server)。 I've looked into Cygwin and MinGW and a few questions here on stackoverflow, but I'm still lost as to where I should start. 我已经研究了Cygwin和MinGW以及一些关于stackoverflow的问题,但是我仍然对应该从哪里开始感到迷茫。 I need this done as soon as possible, so the simpler solution would be best. 我需要尽快完成此操作,因此较简单的解决方案将是最佳选择。 I really appreciate any help you can provide. 我非常感谢您可以提供的任何帮助。

I recommend using cmake build system on ubuntu. 我建议在ubuntu上使用cmake构建系统。 Using Opencv and easylogging on ubuntu out of the box could be a matter of minutes. 开箱即用地使用Opencv和对ubuntu进行easylogging可能只需几分钟。 dlib's website also mentions a simple cmake building steps that works on ubuntu. dlib的网站还提到了在ubuntu上可用的简单cmake构建步骤。

After you get your libraries up and running, build your code and see if there are any system-dependent functions then google how to standardize them across systems. 库启动并运行后,构建代码并查看是否存在任何与系统有关的功能,然后搜索如何在系统之间对它们进行标准化。 If your code is already standardized it should run right then and there. 如果您的代码已经标准化,则应立即在该位置运行。

You can then ask about any specific issues you meet on the way. 然后,您可以询问途中遇到的任何具体问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM