-visual studio 2019
-openvino version 2021.2.185
- C++ 14 standard
and trying to make an dll in release mode with reference to 'object_detection_sample_ssd' in the samples of openvino.
However, I'm getting compilation errors as follows:
-Error C3861 'get_mutex': identifier not found WIZ_DL_ObjectDetection D:\openvino_2021.2.185\deployment_tools\ngraph\include\ngraph\opsets\opset.hpp 39
-Error C2039 'mutex': is not a member of 'std' WIZ_DL_ObjectDetection D:\openvino_2021.2.185\deployment_tools\ngraph\include\ngraph\factory.hpp 27
-Error C2923 'std::lock_guard': 'mutex' is not a valid template type argument for parameter '_Mutex' WIZ_DL_ObjectDetection D:\openvino_2021.2.185\deployment_tools\ngraph\include\ngraph\opsets\opset.hpp 39
-Error C2514 'std::lock_guard': class template cannot be constructed WIZ_DL_ObjectDetection D:\openvino_2021.2.185\deployment_tools\ngraph\include\ngraph\opsets\opset.hpp 39
Can anyone give me some clues on how to solve this? Thanks in advance.
Here is my environment setting:
Thanks for the reply.
I tried to include mutex header in my code but it doesn't work.
I found that these errors come from opset.hpp. In that file, all mutex related usage is underlined with red color, eg. std::mutex and get_mutex(). Some mutex errors are found in factory.hpp too.
FYI, there is mutex header in opset.hpp and factory.hpp already.
May I get your advice? Thanks in advance.
I checked the files in my OpenVINO directory and indeed the mutex is defined in those files. Please share with us your main code, header file, and any necessary information for further investigation.
Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.