Тёмный

Qt With OpenCV | C++ | Build Or Compile OpenCV Library For MinGW | CMake | MinGW32 | MinGW64 

Qt With Ketan
Подписаться 2,7 тыс.
Просмотров 2,5 тыс.
50% 1

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

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@EthanVanDeusen
@EthanVanDeusen 4 месяца назад
Is there a reason you didn't use the cmake installed with QT Creator? Why download the standalone one?
@qtwithketan
@qtwithketan 4 месяца назад
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.
@EthanVanDeusen
@EthanVanDeusen 4 месяца назад
@@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
@qtwithketan 4 месяца назад
@@EthanVanDeusen Thanks for your suggestion. i will think on it and make some more video about qt with cmake.
@aTinyPuppy
@aTinyPuppy 5 месяцев назад
I have a compiling error that Mutex is not an actual type
@qtwithketan
@qtwithketan 5 месяцев назад
Thanks for watching my video. Can you show the logs of it so i can help you in better way.
@ВіталійВовк-щ1ь
@ВіталійВовк-щ1ь 2 месяца назад
@@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ь
@ВіталійВовк-щ1ь 2 месяца назад
Have you solved error with Mutex in opencv? How you installed opencv?
@qtwithketan
@qtwithketan 2 месяца назад
@@ВіталійВовк-щ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.
@ВіталійВовк-щ1ь
@ВіталійВовк-щ1ь 2 месяца назад
@@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
@emsar69
@emsar69 4 месяца назад
i got DLL error when i used these .a files. How to build it static?
@qtwithketan
@qtwithketan 4 месяца назад
Thanks for watching my video. can you please elaborate which kind of error are you getting ?
@emsar69
@emsar69 4 месяца назад
@@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
@qtwithketan 4 месяца назад
did you copy the .dll files in your Application run directory ?
@emsar69
@emsar69 4 месяца назад
@@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)
@qtwithketan
@qtwithketan 4 месяца назад
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.
@JayaTeja-o8l
@JayaTeja-o8l 3 месяца назад
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.
@qtwithketan
@qtwithketan 3 месяца назад
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.
@JayaTeja-o8l
@JayaTeja-o8l 3 месяца назад
@@qtwithketan bro, please do it asap or by today and sorry for troubling you, iam very grateful for your reply.
@qtwithketan
@qtwithketan 3 месяца назад
You can download from the below link. drive.google.com/file/d/1CZ6CM5EaWmVw6Q0qeT_YQfVmBvpinwrC/view?usp=drive_link
@JayaTeja-o8l
@JayaTeja-o8l 3 месяца назад
@@qtwithketan bro, please accept the request for drive link
@qtwithketan
@qtwithketan 3 месяца назад
Already Done 👍
Далее
Шок-контент! 😱
00:50
Просмотров 2,2 млн
Cross-platform Qt 6 CMake Project Setup
25:23
Просмотров 33 тыс.
Make Beautiful Desktop Applications in C++
25:51
Просмотров 612 тыс.
Qt 6 - Build from source (Both Dynamic and Static)
26:51
How to use OpenCV on CLion with CMAKE
8:33
Просмотров 9 тыс.