Qt 5.2.1 with OpenCV 2.4.9 (MinGW from Qt) win7 cmake - problem with compilation from source

asked 2014-05-08 06:35:26 -0500

volodia gravatar image

updated 2014-05-09 05:41:03 -0500

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) ?

edit retag flag offensive close merge delete

Comments

hi volodia, please edit, and add the usual suspects: cmake output, error stacktrace,...

berak gravatar imageberak ( 2014-05-08 06:38:49 -0500 )edit

And I would like to suggest to use OpenCV 2.4.9 if you are going to build it yourself ... removes alot of problems!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-08 08:04:57 -0500 )edit

@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 gravatar imagevolodia ( 2014-05-09 05:35:17 -0500 )edit

volodia, sorry, but got neither mingw, nor qt here. i'm only trying to improve your question.

berak gravatar imageberak ( 2014-05-09 05:47:31 -0500 )edit

@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.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 06:02:19 -0500 )edit

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?

volodia gravatar imagevolodia ( 2014-05-09 07:55:05 -0500 )edit

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.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 08:17:28 -0500 )edit

Do you remember which version of MinGW? 4.7.2 or 4.8.0 ?

Best regards.

volodia gravatar imagevolodia ( 2014-05-09 11:36:36 -0500 )edit
1

I think it was version 4.7.2

StevenPuttemans gravatar imageStevenPuttemans ( 2014-05-09 11:57:47 -0500 )edit

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?

volodia gravatar imagevolodia ( 2014-05-10 03:03:59 -0500 )edit