Build OpenCV Library on Vitis HLS 2022.1 on Windows OS
-
Hello, I've tried to build OpenCV libraries on Vitis HLS 2022.1 using MinGW and CMake, here are the steps I followed: 1) After installation on MinGW and added the bin path directory to the environment variables. 2) Installation of OpenCV 4.6.0 3) Installation of CMake 4) OpenCV Source Code Build using CMake, Added the Extracted OpenCV Source directory path on CMake (to Where is the source code) and the Build directory path on Cmake (under Where to build the binaries). Carried out configuration and generation. 5) Finally, Tried to build and install the OpenCV Libraries using the Command prompt with the command mingw32-make install from the Build directory path. This resulted in the 2 errors below: In file included from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\precomp.hpp:53:0, from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\algorithm.cpp:43: C:/Users/Nikhil/Downloads/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; ^~~~~~~~~~~~~~~ C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:25: error: 'Mutex' is not a member of 'cv' typedef std::lock_guard AutoLock; ^~ C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:25: error: 'Mutex' is not a member of 'cv' C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:34: error: template argument 1 is invalid typedef std::lock_guard AutoLock; ^ In file included from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\algorithm.cpp:43:0: C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\precomp.hpp:368:5: error: 'Mutex' in namespace 'cv' does not name a type cv::Mutex& getInitializationMutex(); ^~~~~ modules\core\CMakeFiles\opencv_core.dir\build.make:102: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj' failed mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj] Error 1 CMakeFiles\Makefile2:1805: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:164: recipe for target 'all' failed mingw32-make: *** [all] Error 2 What am I doing wrong? What am I missing? How do
-
Hello, I've tried to build OpenCV libraries on Vitis HLS 2022.1 using MinGW and CMake, here are the steps I followed: 1) After installation on MinGW and added the bin path directory to the environment variables. 2) Installation of OpenCV 4.6.0 3) Installation of CMake 4) OpenCV Source Code Build using CMake, Added the Extracted OpenCV Source directory path on CMake (to Where is the source code) and the Build directory path on Cmake (under Where to build the binaries). Carried out configuration and generation. 5) Finally, Tried to build and install the OpenCV Libraries using the Command prompt with the command mingw32-make install from the Build directory path. This resulted in the 2 errors below: In file included from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\precomp.hpp:53:0, from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\algorithm.cpp:43: C:/Users/Nikhil/Downloads/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; ^~~~~~~~~~~~~~~ C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:25: error: 'Mutex' is not a member of 'cv' typedef std::lock_guard AutoLock; ^~ C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:25: error: 'Mutex' is not a member of 'cv' C:/Users/Nikhil/Downloads/opencv/sources/modules/core/include/opencv2/core/utility.hpp:719:34: error: template argument 1 is invalid typedef std::lock_guard AutoLock; ^ In file included from C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\algorithm.cpp:43:0: C:\Users\Nikhil\Downloads\opencv\sources\modules\core\src\precomp.hpp:368:5: error: 'Mutex' in namespace 'cv' does not name a type cv::Mutex& getInitializationMutex(); ^~~~~ modules\core\CMakeFiles\opencv_core.dir\build.make:102: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj' failed mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.obj] Error 1 CMakeFiles\Makefile2:1805: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 Makefile:164: recipe for target 'all' failed mingw32-make: *** [all] Error 2 What am I doing wrong? What am I missing? How do
This forum is not for programming questions. Please mouse over "quick answers" below the site banner at the top of the page, click on "Ask a Question", submit your question there, and then delete this one.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.