Qt 5.2.1 with OpenCV 2.4.9 (MinGW from Qt) win7 cmake - problem with compilation from source
Hello! Could you tell me please if anybody try to compile with success OpenCV (version upper)?
I combine MinGW 4.4 & Qt 4.7.3 and OCV 2.3.1 with success.
Best regards.
I cannot get througth first one. (all using Win7Pr, cmake 2.8.12.2)
Is it better to compile with VS2013(for example) or MinGW (I know that only with VS you can compile CUDA 3rdPartyLibs) ?
hi volodia, please edit, and add the usual suspects: cmake output, error stacktrace,...
And I would like to suggest to use OpenCV 2.4.9 if you are going to build it yourself ... removes alot of problems!
@berak, ok but tried you? with native MinGW or sth else? See this - nuwen.net/mingw.html minGW "distro" with I want to use in future... If you passed, could you mention the version on which one...
>>>It was sth wrong with my compilation for Qt5 - everything passed, but when starting QtCreator libs were not found<<<
@StevenPuttemans, you DO NOT understand. I compiled OpenCV 2.3.1 with success (mentioned Qt, MinGW or sth)... And I know how to do it correctly
I ASKED if somebody did it ( compilation of OCV 2.4.9 with Qt 5.2.1 on Win7Pro with 2.8.12.2) with SUCCESS...
Could you answer the MENTIONED question?
THANKS.
Best regards. PS if anybody tried and pass I will try to do it on my own...
volodia, sorry, but got neither mingw, nor qt here. i'm only trying to improve your question.
@volodia, maybe just getting a better attitude will get you a solution ... seriously it was a suggestion ... you do not have to respond like a complete idiot. I just got mixed info between content and title of this post.
berak, thanks. StevenPuttemans, I only want to know if anybody done it with MinGW(compiled OpenCV2.4.9 by MinGW with success - OCV which you suggest). Sorry, because I feel that my post make you feel bad.
Next time I try to write as good as I could to be understand by you.
So, have you something to help me with that subject or just increment your post counter?
Lol? There isn't even a post counter here, not even taken into account the comments. You only get 'karma' by people accepting or upvoting your efforts ... As to your problem, I cannot help you since I am using GCC and linux myself for the moment. However I did succeed in building OpenCV 2.4.8 with MinGW on W7 x64 with QT support for a student last month, so I guess getting 2.4.9 should actually work.
Do you remember which version of MinGW? 4.7.2 or 4.8.0 ?
Best regards.
I think it was version 4.7.2
2 more questions:
1) Could I ignore warings like this? >CMake Warning (dev) in modules/videostab/CMakeLists.txt: Policy CMP0020 is not set: Automatically link Qt executables to qtmain target on Windows. Run "cmake --help-policy CMP0020" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it. > Make Warning (dev) in modules/highgui/CMakeLists.txt:[...] This warning is for project developers. Use -Wno-dev to suppress it.
2) What should be in CMAKE_PREFIX_PATH if in C:/Qt/5.2.1/ I have only: * VS * mingw48... * android if cmake needs Qt5core...etc_dir but there is no folder with MinGW 472... are qt libs suitable withother between 480 and 472 ver. of MinGW?
Yes warnings like that can be ignored. Second question I have no idea o_O cmake usally finds QT itself if it is configured and installed correctly.
Nowadays I working on Linux only, cause it easier for me to support deps with another packages in Linux.
;)
Maybe, I will need that one day, but it would be only on 3.0 (because it ist more powerful).
Like @StevenPuttemans said, it should work, but I haven't checked it.