Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to build OpenCV 4.5.5 with OpenVINO 2023.2 #23054

Closed
4 tasks done
cesarpgouveia opened this issue Dec 28, 2022 · 1 comment
Closed
4 tasks done

Error trying to build OpenCV 4.5.5 with OpenVINO 2023.2 #23054

cesarpgouveia opened this issue Dec 28, 2022 · 1 comment
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org

Comments

@cesarpgouveia
Copy link
Contributor

System Information

OpenCV version: 4.5.5
Operating System / Platform: Windows 10
Inference Engine (OpenVINO) version: 2022.3
Python version: 3.9.6

Detailed description

Hey guys,

So basically I was trying to build OpenCV 4.5.5 with OpenVINO 2022.3 and CUDA and got the following error:

C:\Users\cesar.gouveia\Projects\OpenCV-Package\opencv_mirror\modules\dnn\src\ie_ngraph.cpp(83,1): error C2440: 'initializin
g': cannot convert from 'initializer list' to 'ov::DiscreteTypeInfo' [C:\Users\cesar.gouveia\Projects\OpenCV-Package\opencv
_mirror\build\modules\world\opencv_world.vcxproj]
C:\Users\cesar.gouveia\Projects\OpenCV-Package\opencv_mirror\modules\dnn\src\ie_ngraph.cpp(83,1): message : No constructor
could take the source type, or constructor overload resolution was ambiguous [C:\Users\cesar.gouveia\Projects\OpenCV-Packag
e\opencv_mirror\build\modules\world\opencv_world.vcxproj]
C:\Users\cesar.gouveia\Projects\OpenCV-Package\opencv_mirror\modules\dnn\src\ie_ngraph.cpp(83,56): error C2131: expression
did not evaluate to a constant [C:\Users\cesar.gouveia\Projects\OpenCV-Package\opencv_mirror\build\modules\world\opencv_wor
ld.vcxproj]

I have done this process multiple times and the only thing that I changed was the OpenVINO version (changed from 2021.4 to 2022.3). The cmake finds OpenVINO new version (2022.3) correctly, but when I'm building opencv_world cannot be generated because there are code errors. Does OpenCV 4.5.5 supports OpenVINO 2022.3? Is there any new procedure to build OpenCV with OpenVINO, like a new flag that you need to turn on or something? If there is anything that I should try and if you can help I really appreciate.
Note: in the meantime I'm building OpenVINO 2022.3 with the new released version of OpenCV (4.7.0) to check if the problem remains.

Thanks,
César.

Steps to reproduce

OpenCV flags used:

cmake .. -DBUILD_opencv_apps=OFF -DBUILD_opencv_aruco=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_calib3d=ON -DBUILD_opencv_ccalib=ON -DBUILD_opencv_core=ON -DBUILD_opencv_datasets=OFF -DBUILD_opencv_dnn=ON -DBUILD_opencv_dnn_objdetect=OFF -DBUILD_opencv_dnn_superres=OFF -DBUILD_opencv_dpm=OFF -DBUILD_opencv_face=OFF -DBUILD_opencv_features2d=ON -DBUILD_opencv_flann=ON -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_gapi=OFF -DBUILD_opencv_hfs=OFF -DBUILD_opencv_highgui=ON -DBUILD_opencv_img_hash=ON -DBUILD_opencv_imgcodecs=ON -DBUILD_opencv_imgproc=ON -DBUILD_opencv_intensity_transform=OFF -DBUILD_java_bindings_generator=OFF -DBUILD_opencv_js=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_mcc=OFF -DBUILD_opencv_ml=ON -DBUILD_opencv_objc_bindings_generator=OFF -DBUILD_opencv_objdetect=ON -DBUILD_opencv_optflow=OFF -DBUILD_opencv_phase_unwrapping=OFF -DBUILD_opencv_photo=ON -DBUILD_opencv_plot=ON -DBUILD_opencv_python3=OFF -DBUILD_opencv_python_bindings_generator=OFF -DBUILD_opencv_python_tests=OFF -DBUILD_opencv_quality=OFF -DBUILD_opencv_rapid=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgdb=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_shape=OFF -DBUILD_opencv_stereo=OFF -DBUILD_opencv_stitching=OFF -DBUILD_opencv_structured_light=OFF -DBUILD_opencv_superres=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_ts=OFF -DBUILD_opencv_video=ON -DBUILD_opencv_videoio=ON -DBUILD_opencv_videostab=OFF -DBUILD_opencv_world=ON -DBUILD_opencv_xfeatures2d=ON -DBUILD_opencv_ximgproc=ON -DBUILD_opencv_xobjdetect=ON -DBUILD_opencv_xphoto=ON -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_GENERATOR_PLATFORM=x64 -T v142 -DWITH_FFMPEG=ON -DWITH_INF_ENGINE=ON -DENABLE_CXX11=ON -DOPENCV_ENABLE_NONFREE=OFF -DBUILD_JAVA=OFF -DWITH_MSMF=OFF -DWITH_MSMF_DXVA=OFF -DOPENCV_EXTRA_MODULES_PATH="C:/Users/cesar.gouveia/Projects/OpenCV-Package/opencv_contrib/modules" -DBUILD_ZLIB=ON -DBUILD_opencv_hdf=OFF -DWITH_CUDA=ON -DENABLE_FAST_MATH=1 -DCUDA_FAST_MATH=1 -DWITH_CUBLAS=1

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)
@dkurt
Copy link
Member

dkurt commented Mar 30, 2023

Must be fixed by #22957 + #23049

@dkurt dkurt closed this as completed Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid question (invalid tracker) ask questions and other "no action" items here: https://forum.opencv.org
Projects
None yet
Development

No branches or pull requests

3 participants