Qt World Summit: Register Today!

how to build opencv4.x on Qt 5.12

  • I want to build opencv4.1 on Qt 5.12,but I meet a problem when"Linking CXX shared library ....\bin\libopencv_world410.dll", the error is "F:/QtInstall/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `CMakeFiles\opencv_world.dir/objects.a(vs_version.rc.obj)' is incompatible with i386:x86-64 output".
    I really don't know how to solve this problem,it makes me crazy.
    Do someone has any ideas? my Cmake version is 3.12 win64-x64.

Log in to reply