Dark

How to use OpenCV with with Qt MinGW on Windows Platform?

Embedded Laboratory
Views 10 646
98% 110 2

Post Link:
embeddedlaboratory.blogspot.in/2017/03/how-to-use-opencv-with-qt-mingw-on.html
(Download the template and libraries from the above link)
Blog Link:
embeddedlaboratory.blogspot.com
RUvid Channel:
ruvid.net/show-UCDBlAXL5NVb7HCgpTzC8vbg
Facebook Page:
facebook.com/embeddedlaboratory
Email Id:
matlab.academy@gmail.com
Skype ID:
embedded.laboratory

Published on

 

Mar 2, 2017

Share:

Link:

Download:

Loading link...

Add to:

My playlist
Watch later
Comments 40
Agus Rizkyawan
Agus Rizkyawan 3 months ago
Thankyou so much, it's helpfull Although i got some errors but i google it and found some sollution from stackoverflow. Cheers. Great works
Bharathi R
Bharathi R 3 months ago
Hi,, while building OpenCV it is stops at 43% by showing this error In file included from C:/Qt/Qt5.11.2/Tools/mingw530_32/i686-w64-mingw32/include/DShow.h:33:0, from E:\opencv\sources\modules\videoio\src\cap_dshow.cpp:111: E:\opencv\sources\modules\videoio\src\cap_dshow.cpp:2176:41: error: 'sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA' was not declared in this scope else if(type == MEDIASUBTYPE_RGB32) sprintf(tmpStr, "RGB32"); platform-windows10 compiler-ming32 Qtversion -5.11.2
Wesley Kim
Wesley Kim 4 months ago
Thank you so much. I aprreciate. This video really helpful
Danilo Peña
Danilo Peña 5 months ago
C:\opencv_343Cmake\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] return s == nullptr || *s == 0; ^ C:\opencv_343Cmake\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonymous}::null_or_empty(const char_type*)': C:\opencv_343Cmake\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:15: error: 'nullptr' was not declared in this scope return s == nullptr || *s == 0; ^ 3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:258: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj' failed mingw32-make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj] Error 1 CMakeFiles\Makefile2:715: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed mingw32-make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2
Сергей С_7
Сергей С_7 5 months ago
Thanks man. Everything work)
Дмитрий Маслов
mingw32-make: *** No targets specified and no makefile found. Stop.
Natália Rosa
Natália Rosa 6 months ago
THANKSSSSS!!!!!!
A O
A O 6 months ago
When I run my qt console application it does nothing. It doesn't display errors and runs without a problem. But it's as if the instructions are just ignored. What could be causing this problem?
Александр Александров
hello. i have problem: in cmd on 24% stopped. C:\opencv\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] What doing 2 me? please help me.... thanks 4 video!
Govind Rao
Govind Rao 7 months ago
Hi getting error when i am running "mingw32-make" commad line ...please help on this ... issuse .. \Users\govind\Desktop\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] return s == nullptr || *s == 0; ^ C:\Users\govind\Desktop\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonymous}::null_or_empty(const char_type*)': C:\Users\govind\Desktop\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:15: error: 'nullptr' was not declared in this scope return s == nullptr || *s == 0; ^ 3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:258: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj' failed mingw32-make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.obj] Error 1 CMakeFiles\Makefile2:715: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed mingw32-make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2
Johan Fick
Johan Fick 8 months ago
Thanks it works !
Angel Villalobos Moreno
Error in step "mingw32-make" show me this message "C:\OpenCV\opencv\sources\3rdparty\protobuf\src\google\protobuf\stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] return s == nullptr || *s == 0;"
Meriem
Meriem 10 months ago
Hello! I just arrived at this point: [ 24%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj and had this error: modules\videoio\CMakeFiles\opencv_videoio.dir\build.make:132: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj' failed mingw32-make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dshow.cpp.obj] Error 1 CMakeFiles\Makefile2:5918: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed mingw32-make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make: *** [all] Error 2 WHAT SHOULD I DO ?
Flexey
Flexey Year ago
if you get an error with libprotobuf build (mingw32-make) you can try to check ENABLE_CXX11 in cmake-gui
little turtle
little turtle Year ago
hi sir, why there is nothing in my bin file?
little turtle
little turtle Year ago
okay. thank you :)
Embedded Laboratory
Re-run the complete steps again. Check the point of error this will help in debugging the problem.
Nauroze Hoath
Nauroze Hoath Year ago
Thank yoooh!
Embedded Laboratory
Welcome :-)
Kang Tajam
Kang Tajam Year ago
I can't Open the command window in the "release" folder. only "Open PowerShell Window" option appeared and when I select, I get this "This Operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator" message. any solution for this?
Embedded Laboratory
Embedded Laboratory 5 months ago
You can open command prompt from search and then navigate to path by using cd commands
A O
A O 6 months ago
I just opened windows cmd and then entered "cd (insert path to that location here)"
Zeyad Obaia
Zeyad Obaia Year ago
CMake Error in modules/highgui/CMakeLists.txt: No known features for CXX compiler "GNU" version 5.3.0. I get this error though
bhuvana rao
bhuvana rao 9 months ago
i got the same error
Shriya Singh
Shriya Singh Year ago
sir it's urgent...it would be great help if you could reply...thanku!
Shriya Singh
Shriya Singh Year ago
sir please suggest how can I fix it..i followed each and every step as described but at last step on command promp I'm getting this error after building 2% objects....
Wesley Kim
Wesley Kim 4 months ago
+aziz Jaiem Thanks your method really worked very well. I appreciate
aziz Jaiem
aziz Jaiem Year ago
idk if it's helpful now but try disabling ENABLE_PRECOMPILED_HEADERS in cmake before generating.
Shriya Singh
Shriya Singh Year ago
sir I'm getting an error ---user/welcome/appdata/local/tempCcH4s5a.s...
Amir Poursadegh
Thank a lot for your helpful video. I have another question and I would be thankful if you could help me. How I can run OpenCV sample for example real_time_pose_estimation ("C:\OpenCV\opencv\sources\samples\cpp\tutorial_code\calib3d\real_time_pose_estimation") in QT?
Embedded Laboratory
In the project I haven't included all the libraries, so it might be possible that the demo you are trying to run may require some othet library. You just have to find that and add in your project. I don't have much idea about opencv, i started this task as hobby but due to other additional work loads i have to stop.
Abbas Hassanpour
hi,thank you very much.............it works
Embedded Laboratory
Glad to know :-)
Tonny Donovan
Tonny Donovan Year ago
hey. thanks man. this works
Embedded Laboratory
Glad to Know :-)
Francisco D.
Francisco D. Year ago
Hi. I write mingw32-make...[100%] Built target opencv_version... but I don't read "Install the project"(10:14 ruvid.net/video/video-ZOSu-2Oju-A.htmlm14s). Do you know why? that causes, I have not an order opencv/release/install.... Thank you
Embedded Laboratory
Sorry for late reply. I am glad that you solved your problem.
Francisco D.
Francisco D. Year ago
... I have the answer: mingw32-make install
Alfred Pennyworth
Alfred Pennyworth 2 years ago
Hey man thank you so much, i was going desperate to find a tutorial for the new settings. Keep up the good work!
Embedded Laboratory
Thanks for appreciation :-) You can also read this post on our blog embeddedlaboratory.blogspot.com/2017/03/how-to-use-opencv-with-qt-mingw-on.html
Next videos
REST API concepts and examples
08:53
Qt Creator ve OpenCV
21:11