- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
![](/skins/images/7746D4550810124E96DD2FD9957552B1/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page