Thanks for watching my video. well there is no any reason why i am not using cmake and qmake is also come with Qt Standard installation process. main reasone is qmake more confortable with all that and is i think most of qt community people are using qmake.
@@qtwithketan I did not explain myself very well, but I meant the 'build and run" menu inside of QT Creator instead of using the separate cmake program you used. After looking into it more I think this is technically possible but using the cmake program like you did is much easier
@@qtwithketan I also have an error. [ 51%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.obj In file included from C:\opencv\sources\3rdparty\protobuf\src\google\protobuf\arena.cc:42:0: C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h: In constructor 'constexpr google::protobuf::internal::WrappedMutex::WrappedMutex()': C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:124:29: error: temporary of non-literal type google::protobuf::internal::CallOnceInitializedMutex' in a constant expression constexpr WrappedMutex() {} ^ C:/opencv/sources/3rdparty/protobuf/src/google/protobuf/stubs/mutex.h:98:7: note: 'google::protobuf::internal::CallOnceInitializedMutex' is not literal because: class CallOnceInitializedMutex { ^~~~~~~~~~~~~~~~~~~~~~~~ cmake version 3.7.2 gcc g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0 Please I need your help.
@@ВіталійВовк-щ1ь Thanks for watching my video. I didn't get any error about mutex in opencv. i download the opencv from it's offical website and compile it for MinGW as you can see in video.
@@qtwithketan today i found the solution on stack overflow. This "mutex" error is only in g++ gcc version 7.3.0. I watched this video 10 times, thanks for your work
@@qtwithketan i build with no error but if i run i get this error in messagebox: opencv_videoio4100.dll not found, reinstalling the program might solve the issue
@@qtwithketan Yes but if i do that everyone i send this file need these dll files to be in same directory which i dont want. i need single exe file (static libs)
Well, i got your point but i suggest you should go with all .dll files because of when you compile the your application with static library it will make larger size of your application, and you have to compile every time so i think it's not good idea, and you can alos see if you are using photoshop application when you go in photoshop application directory you will get most of .dll files of opencv.
bro, iam getting this errors.. C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp: In function 'void ade::aligned_free(void*)': C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp:40:29: error: '_aligned_free' was not declared in this scope return _aligned_free(ptr); ^ C:\opencv4.5.1_MinGW\3rdparty\ade\ade-0.1.1f\sources\ade\source\alloc.cpp:40:29: error: return-statement with a value, in function returning 'void' [-fpermissive] modules\CMakeFiles\ade.dir\build.make:62: recipe for target 'modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1f/sources/ade/source/alloc.cpp.obj' failed mingw32-make[2]: *** [modules/CMakeFiles/ade.dir/__/3rdparty/ade/ade-0.1.1f/sources/ade/source/alloc.cpp.obj] Error 1 CMakeFiles\Makefile2:1954: recipe for target 'modules/CMakeFiles/ade.dir/all' failed mingw32-make[1]: *** [modules/CMakeFiles/ade.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2 can you please share the full file opencv_MinGW folder, as i too have installed same cmake and same opencv version.
Thanks for watching my video. Yes i can share but full openCV_MinGW directory with binaries size is more then 1GB. i will try to upload the files at somewhere and share you downloadable link.