Dark

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

Embedded Laboratory
Подписаться
Просмотров 9 023
97% 93 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

Опубликовано:

 

2 мар 2017

OpenCVQtCMake

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии 40
Agus Rizkyawan
Agus Rizkyawan 9 дней назад
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 12 дней назад
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 Месяц назад
Thank you so much. I aprreciate. This video really helpful
Danilo Peña
Danilo Peña 2 месяца назад
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 2 месяца назад
Thanks man. Everything work)
Дмитрий Маслов
Дмитрий Маслов 2 месяца назад
mingw32-make: *** No targets specified and no makefile found. Stop.
Natália Rosa
Natália Rosa 2 месяца назад
THANKSSSSS!!!!!!
A O
A O 3 месяца назад
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 4 месяца назад
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 4 месяца назад
Thanks it works !
Angel Villalobos Moreno
Angel Villalobos Moreno 6 месяцев назад
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 7 месяцев назад
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 9 месяцев назад
if you get an error with libprotobuf build (mingw32-make) you can try to check ENABLE_CXX11 in cmake-gui
little turtle
little turtle 9 месяцев назад
hi sir, why there is nothing in my bin file?
little turtle
little turtle 9 месяцев назад
okay. thank you :)
Embedded Laboratory
Embedded Laboratory 9 месяцев назад
Re-run the complete steps again. Check the point of error this will help in debugging the problem.
Nauroze Hoath
Nauroze Hoath Год назад
Thank yoooh!
Embedded Laboratory
Embedded Laboratory Год назад
Welcome :-)
Kang Tajam
Kang Tajam Год назад
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 2 месяца назад
You can open command prompt from search and then navigate to path by using cd commands
A O
A O 3 месяца назад
I just opened windows cmd and then entered "cd (insert path to that location here)"
Zeyad Obaia
Zeyad Obaia Год назад
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 6 месяцев назад
i got the same error
Shriya Singh
Shriya Singh Год назад
sir it's urgent...it would be great help if you could reply...thanku!
Shriya Singh
Shriya Singh Год назад
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 Месяц назад
+aziz Jaiem Thanks your method really worked very well. I appreciate
aziz Jaiem
aziz Jaiem Год назад
idk if it's helpful now but try disabling ENABLE_PRECOMPILED_HEADERS in cmake before generating.
Shriya Singh
Shriya Singh Год назад
sir I'm getting an error ---user/welcome/appdata/local/tempCcH4s5a.s...
Amir Poursadegh
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
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
Abbas Hassanpour Год назад
hi,thank you very much.............it works
Embedded Laboratory
Embedded Laboratory Год назад
Glad to know :-)
Tonny Donovan
Tonny Donovan Год назад
hey. thanks man. this works
Embedded Laboratory
Embedded Laboratory Год назад
Glad to Know :-)
Francisco D.
Francisco D. Год назад
Hi. I write mingw32-make...[100%] Built target opencv_version... but I don't read "Install the project"(10:14 ruvid.net/video/видео-ZOSu-2Oju-A.html?t=10m14s). Do you know why? that causes, I have not an order opencv/release/install.... Thank you
Embedded Laboratory
Embedded Laboratory Год назад
Sorry for late reply. I am glad that you solved your problem.
Francisco D.
Francisco D. Год назад
... I have the answer: mingw32-make install
Alfred Pennyworth
Alfred Pennyworth Год назад
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
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
Следующие видео
Why Does Linus Pirate Windows??
4 месяца назад
5 MINUTE DIY CHALLENGE
6 дней назад
Florent Castelli: Introduction to CMake
8 месяцев назад
How the C++ Linker Works
Год назад
OpenCV Basics - 03 - Windows
2 года назад
Hello, CMake with Visual Studio
4 года назад