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?
Dear Garustovich, Alexander,
You can always install whatever version of OpenCV you wish, just set the following two environment variables appropriately.
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,