K
K
key don2014-01-18 04:46:45
Qt
key don, 2014-01-18 04:46:45

Building OpenCV under Qt

Qt 5.2.0 for Windows 32-bit (MinGW 4.8) and OpenCV 2.4.0 are available.
I'm trying to compile the second for the first according to this guide:
stackoverflow.com/questions/15881913/how-to-link-o...
6.5 click configure and keep clicking configure until all red lines are gone, then click generate and close cmake-gui. exe
Click configure and keep clicking until all the red bars disappear, then click generate.
Actually, the red stripes disappeared, but warnings appeared:

CMake Warning (dev) at cmake/OpenCVModule.cmake:667 (get_target_property):
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "opencv_highgui" has an INTERFACE_LINK_LIBRARIES property which
  differs from its LINK_INTERFACE_LIBRARIES properties.

  INTERFACE_LINK_LIBRARIES:

    opencv_core;opencv_imgproc;zlib;libjpeg;libpng;libtiff;libjasper;comctl32;gdi32;ole32;msvfw32;avifil32;avicap32;winmm

  LINK_INTERFACE_LIBRARIES:

    

Call Stack (most recent call first):
  modules/highgui/CMakeLists.txt:302 (ocv_add_accuracy_tests)
This warning is for project developers.  Use -Wno-dev to suppress it.

I make a test program from the same guide, I run it. Mistake. And so with OpenCV 2.4.0, specified in the guide, and with the latest 2.4.8.
867e5a899282.jpg
D:\Programs\opencv24\opencv_bin\bin\opencv_ffmpeg240_64.dll:-1: ошибка: file not recognized: File format not recognized

Error due to the fact that assembled incorrectly? If not, how to fix?
If yes, then please, throw off more detailed information on the assembly for Qt creator'a OpenCV than in this guide. For the first time I am compiling a library and, as you can see, my knowledge is barely enough to understand what I am doing (and even then not always), I will be glad to have links to increase understanding. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2014-01-19
@Properrr

Here everything is detailed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question