Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AGaru
Beginner
176 Views

Ade from OpenVINO conflicts with Ade from OpenCV

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
176 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

Reply