OpenCV build failed.

asked 2017-10-05 09:19:33 -0600

sk123 gravatar image

updated 2017-10-05 14:37:32 -0600

Hi, I'm using cmake to configure and generate make files for MinGW. And I'm using Qt Creator to develop my app. After generating make files you suggest to use Visual Studio to build library. Is there a way to build it using Qt Creator?

What i have done I was using cmd . CD to Build folder and entered: "mingw32-make" . The building proccess started, however on 36% I got an error: C:\MinGW\bin\windres.exe: invalid option -- W

Usage: C:\MinGW\bin\windres.exe [option(s)] [input-file] [output-file]
List of possible options [ ]

How to solve this? I'm new in programming, so explain as much detailed as possible in this case, please. What is the easiest way to solve this and install OpenCV for newbies.

edit retag flag offensive close merge delete

Comments

unfortunately, there's no real support for mingw from the opencv devs.

which mingw version is it ? (it might just be too old)

also, which opencv version are you trying to build ?

berak gravatar imageberak ( 2017-10-05 09:22:19 -0600 )edit

OpenCV 3.3.0-vc14 MinGW release on 2013-10-04(the latest one from the official website)

sk123 gravatar imagesk123 ( 2017-10-05 14:33:50 -0600 )edit

please try to disable precompiled headers in cmake (and clean build folder)

(the windres error is because it (wrongly) gets passed gcc flags like -Wall if PCHs are used)

berak gravatar imageberak ( 2017-10-12 02:52:45 -0600 )edit