Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6404 Discussions

Ade from OpenVINO conflicts with Ade from OpenCV

AGaru
Beginner
757 Views

I have a library that uses static OpenVINO 2019.r1.1 and static OpenCV. Both those libraries have "ade" target which gives me a collision when I do `find_package` of the second library (when the first exported 'ade').

------------- Searching OpenCV -------------
CMake Error at /usr/local/findface-opencv-cpu/lib/cmake/opencv4/OpenCVModules.cmake:34 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: ade

  Targets not yet defined:
  opencv_core;opencv_imgproc;opencv_video;opencv_imgcodecs;opencv_highgui

Call Stack (most recent call first):
  /usr/local/findface-opencv-cpu/lib/cmake/opencv4/OpenCVConfig.cmake:126 (include)
  CMakeLists.txt:111 (find_package)

Is there a known workaround? Is it possible to disable ade from either?

Thanks!

0 Kudos
1 Reply
Shubha_R_Intel
Employee
757 Views

Dear Garustovich, Alexander,

You can always install whatever version of OpenCV you wish, just set the following two environment variables appropriately.

 

set "OpenCV_DIR=%INTEL_OPENVINO_DIR%\opencv\x64\vc14\lib"
set "PATH=%INTEL_OPENVINO_DIR%\opencv\x64\vc14\bin;%PATH%"

 

Try and develop your application to only use one version of OpenCV, thus the same version of ade so you will not experience collisions.

Hope it helps,

Thanks,

Shubha

0 Kudos
Reply