I’ve been trying to cross compile opencv using the arm-none-eabi-gcc/g++ and I got stuck when the compilation came across the cv::Mutex implementation. It throws the following error
In file included from /home/kowshik/Desktop/opencv_porting/opencv/modules/core/src/algorithm.cpp:43:
/home/kowshik/Desktop/opencv_porting/opencv/modules/core/src/precomp.hpp:369:5: error: 'Mutex' in namespace 'cv' does not name a type
369 | cv::Mutex& getInitializationMutex();
I tried using the WITH_PTHREADS_PF flag in opencv but it didn’t help either. Please let me know how can I overcome this, and also if any more info is required.
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.
I understood this after trying to compile a simple mutex cpp program and I received the same error. However how do I proceed from here? I don’t think it’s an impossible task because I’ve seen multiple people porting opencv to MCU platforms.