Solved OpenCV project from Linux to .exe
-
@Edwin I don't think it is possible to crosscompile from Linux to Windows.
However, you can have your Qt application running with OpenCV on Linux.
Then from the very same source (considering you define properly the include path and libs according to the OS in the .pro file) be able to compile it (and hopefully) run it from Windows. -
-
If QtCreator is not necessary I recommend
- VS2013 https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx
- QtPlugin http://download.qt.io/official_releases/vsaddin/qt-vs-addin-1.2.4-opensource.exe.mirrorlist
- Ceemple's OpenCV http://www.ceemple.com/ceemple-opencv-visual-studio/
Thats how i got it (i mean OCV+Qt) working @ windows
-
Hi. I'm using OpenCV on Windows with Qt MinGW. It was not easy to understand how OpenCV must be compiled and embedded in a Qt project but can.
I suggest you to not cross compile but to use a Windows machine. -
@michelson Trying all that right now. That is: downloading. I hope this works. I will need some time to adjust to VS though, I suppose...
Thanks for the reply! (also to the other contributors)
-
@mrdebug Hey, that's what I tried (as you may have read), but that fails me and I have no clue as to why.
-
@Edwin If you encounter any problems with setting things up I am yours to help
-
Hi,
Just a quick note, yes you can cross-compile from Linux to Windows using the MinGW cross-compiler, provided that you don't use anything Windows specific and that you also cross-compiled the dependencies of your application.
-
@michelson Wow, okay, it actually works. I am so grateful right now (and also, totally overworked). Thanks a lot!
So, how do I flag this thread answered?
-
Use the "Topic Tool" button :)