Тёмный

Install OpenCV C++ on Windows ** Without Microsoft Visual Studio ** 

Rafa Hernández
Подписаться 14
Просмотров 6 тыс.
50% 1

Installation of OpenCV 4.5.0 on Windows without using Microsoft Visual Studio.
---------------------------------------------------------------------------------------------------------------------------
Download links:
OpenCV: opencv.org/rel...
CMake: cmake.org/down...
Mingw-w64: sourceforge.ne...
Visual Code: code.visualstu...
---------------------------------------------------------------------------------------------------------------------------
Build syntax:
**************
The number at the end of the DLL files has to match the OpenCV version:
OpenCV 𝟒.𝟓.𝟎 ---- libopencv_core𝟒𝟓𝟎
**************
g++ -o prueba prueba.cpp -IC:\opencv\build\include -LC:\opencv\build\lib -llibopencv_core450 -llibopencv_highgui450 -llibopencv_calib3d450 -llibopencv_core450 -llibopencv_dnn450 -llibopencv_features2d450 -llibopencv_flann450 -llibopencv_gapi450 -llibopencv_highgui450 -llibopencv_imgcodecs450 -llibopencv_imgproc450 -llibopencv_ml450 -llibopencv_objdetect450 -llibopencv_photo450 -llibopencv_stitching450 -llibopencv_video450 -llibopencv_videoio450
---------------------------------------------------------------------------------------------------------------------------

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

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@funyssnight7791
@funyssnight7791 4 месяца назад
Great job, without your video I wouldn't be able to run Opencv on C++ without Visual Studio
@harisrafiq1717
@harisrafiq1717 Месяц назад
hey thanks for your video, its works for latest version opencv
@yuz0_
@yuz0_ 11 месяцев назад
First of all, thank you, this is the best and easiest to follow tutorial on opencv. I have been able to compile some test projects without problems. I have some doubts: - The first time, I tried these steps with the latest version of opencv, 4.8.1, this didn't work. In the mingw32-make step, around 35%, it threw an error and stopped. I tried 4.8.0, 4.7.0, with the same results. - Finally, with the same version you use in the video this step, mingw32-make, ended up with a 100% error but I was able to install it, and, it is working. So far it's working fine but I'm worried that it might fail at any moment. I'm on W10, with MinGW 12.2.0, CMake 3.27.7, opencv 4.5.0 Thanks again
@rafa5636
@rafa5636 11 месяцев назад
Thanks for your comment and I am glad that the tutorial works for you 👌👌 After you post those doubts I decided to installed it again on a new windows 10 machine. I installed the last version of opencv: - Mingw-w64 (12.2.0 x86_64-posix-seh-rev2 - it's important that the MinGW supports posix threads) - CMake 3.27.7 - OpenCV 4.8.0. As you said it threw an error at around 35%: [ 35%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_obsensor/obsensor_uvc_stream_channel.cpp.obj I searched that error on google and I found this opencv forum ( forum.opencv.org/t/opencv-cmake-opencv-building-error/11566/11 ) which tell you to uncheck obsensor from the cmake configuration list (same as I do with OPENCV_ENABLE_ALLOCATOR_STATS). After doing that, it went up to 100% with no errors. Make sure to clean up the folders before you start again building the targets. Usually, when I got this kind of errors while it is building the targets I look for the first one and search it on google, most of the time is a value that you have to uncheck from the cmake configuration list. I hope this works for you. Regards
@yuz0_
@yuz0_ 11 месяцев назад
@@rafa5636 Wow, thank you very much again. Yes, I have the same version of MinGW. I'll try it as soon as I can. Thank you! ;)
@prenomnom9214
@prenomnom9214 2 месяца назад
When I try to compile with the line in description it says that it couldnt find any of the -llib can you help please
@rafa5636
@rafa5636 2 месяца назад
@@prenomnom9214 you have to change the name of the libs with the actual version of your opencv
@prenomnom9214
@prenomnom9214 2 месяца назад
@@rafa5636 ohhh lol
@andsoeeeee12
@andsoeeeee12 Год назад
thank you for the video! but i want to ask question: what is cmake for?
@rafa5636
@rafa5636 Год назад
Cmake is used to generate native build opencv files specific to the GCC compiler
@andsoeeeee12
@andsoeeeee12 Год назад
@@rafa5636 can i do that without cmake and just cmd + mingw?
@rafa5636
@rafa5636 Год назад
@@andsoeeeee12 In order to build the targets you need to create them first and for that you need cmake.
@joel.garcia
@joel.garcia 3 года назад
Thanks bro!!! This video is really useful, I'm in a computer vision course and I had not been able to install it properly.
@rafa5636
@rafa5636 3 года назад
Thanks a lot for the comment, it really helps. It took me about a year to find the correct way to install it. Did you have any problem?
@joel.garcia
@joel.garcia 3 года назад
@@rafa5636 Wow, that's a long time. I got a *collect2.exe: error* when I tried to compile a test file, and after almost an hour looking for what was causing that error, then I found that there was a problem with the compile command, and it was because I just copied and pasted the command from the video description on my console, and I didn't realize that all my DLL files ended with "452" instead of "450" as shown in the video, but now everything is ok. Thanks again for saving me a lot of time!
@rafa5636
@rafa5636 3 года назад
@@joel.garcia Ok perfect, I write a message point this out
@DmarShamel-d9l
@DmarShamel-d9l 5 месяцев назад
Long live your hands
@rafa5636
@rafa5636 5 месяцев назад
Thanks! 😅
@urielgcoo7232
@urielgcoo7232 Год назад
I've been having a problem while running the mingw32-make line in the terminal. At some point it just stops building and throws a bunch of paths I don't understand.
@rafa5636
@rafa5636 Год назад
Hi, paste here the line of code that generates the first error
@urielgcoo7232
@urielgcoo7232 Год назад
@@rafa5636 It happens while running the mingw32-make command on the cmd
@rafa5636
@rafa5636 Год назад
@@urielgcoo7232 Yes I got it, but I need to know which dependencies are failing to give you a solution. It has to be the first error (first built target in red) that appear after you execute mingw32-make.
@lopataspartabzg2345
@lopataspartabzg2345 Год назад
Im getting some weird errors at the mingw32-make step someting about some mutex thing. 😢 Ive been trying to install this for 2 weeks nearly
@rafa5636
@rafa5636 Год назад
Hi, which version of opencv are you installing? Could you copy and paste the exact error you are getting, please
@hectormanuelsantarelli3133
@hectormanuelsantarelli3133 Год назад
@@rafa5636 i think i am habing the same problem, when i run the mingw32-make command it load perfectly until the 3% where it says In file included from C:\Users\manue\Desktop\prog\librerias\opencv\sources\modules\core\src\precomp.hpp:53:0, from C:\Users\manue\Desktop\prog\librerias\opencv\sources\modules\core\src\algorithm.cpp:43: C:/Users/manue/Desktop/prog/librerias/opencv/sources/modules/core/include/opencv2/core/utility.hpp:718:14: error: 'recursive_mutex' in namespace 'std' does not name a type typedef std::recursive_mutex Mutex; ^~~~~~~~~~~~~~~ and a lot of other errors relateds with mutex. do you know how to help me? sorry for mi english, i am from argentina
@arturoisaacrossier3516
@arturoisaacrossier3516 5 месяцев назад
x2
Далее
How to install OpenCV on Windows | 2024
18:01
OYUNCAK DİREKSİYON İLE ARABAYI SÜRDÜ 😱
00:16
Лиса🦊 УЖЕ НА ВСЕХ ПЛОЩАДКАХ!
00:24
Install OpenCV C++ on Windows with MinGW Compiler
26:16
New to Linux? Yeah, DON'T Use Manjaro...
15:55
Просмотров 214 тыс.
OYUNCAK DİREKSİYON İLE ARABAYI SÜRDÜ 😱
00:16