Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Artificial Intelligence
  3. Build OpenCV Library on Vitis HLS 2022.1 on Windows OS

Build OpenCV Library on Vitis HLS 2022.1 on Windows OS

Scheduled Pinned Locked Moved Artificial Intelligence
workspacec++asp-netalgorithmstools
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nikhil B 2022
    wrote on last edited by
    #1

    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

    Greg UtasG 1 Reply Last reply
    0
    • N Nikhil B 2022

      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

      Greg UtasG Offline
      Greg UtasG Offline
      Greg Utas
      wrote on last edited by
      #2

      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.

      <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
      <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups