-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Labels
bugcategory: build/installconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completeplatform: win32
Milestone
Description
System Information
OpenCV version: 4.8.0 or revision 3859ac9
OS: Windows 10
Compiler: Visual Studio 2019
Detailed description
Compiling Error is caused when cmake options related to the dnn_plugin_openvino is enabled.
gotten error messages are following:
22>C:\buildingOpencv\trunk\opencv\modules\dnn\src\layers\elementwise_layers.cpp(829,43): error C2065: 'M_SQRT1_2': undeclared identifier
22>Done building project "opencv_dnn_openvino.vcxproj" -- FAILED.
After investigation, I found that this was problem specific to Visual Studio, and caused by lack of the macro definition _USE_MATH_DEFINES , but I couldn't find out the effective point to insert the definition.
Steps to reproduce
(1)Configure with the following command
cmake -G "Visual Studio 16 2019" -A "x64" -S %source_path% -B %build_path% -DBUILD_opencv_world=ON -DWITH_OPENGL=ON -DWITH_OPENVINO=ON -DWITH_INF_ENGINE=ON -DWITH_NGRAPH=ON -DInferenceEngine_DIR:PATH=%path_to_the_inference_engine% -Dngraph_DIR:PATH=%path_to_the_ngraph% -DDNN_ENABLE_PLUGINS=ON -DDNN_PLUGIN_LIST:STRING="openvino"
(2)Open the "OpenCV.sln" by Visual Studio 2019, and build "ALL_Build" in "CMakeTargets"
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: build/installconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completeplatform: win32