Hi, can you explain how you static compile opencv for qt. In cmake when i set BUILD_SHARED_LIBS=off i got this error Make Error at apps/haartraining/CMakeLists.txt:37 (add_library):
Target "opencv_haartraining_engine" links to itself.
And then in vs when i compile opencv i got lot of this errors:
Error 45 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QMutex::QMutex(enum QMutex::RecursionMode)" (__imp_??0QMutex@@QAE@W4RecursionMode@0@@Z) referenced in function "void __cdecl `dynamic initializer for 'mutexKey''(void)" (??__EmutexKey@@YAXXZ) C:\ocv\myocv\apps\annotation\opencv_highgui2411.li b(window_QT.obj) opencv_annotation
I use staticly compile Qt 5.4.1 with mingw32 and opencv 2.4.
Thanks for any help