CMake inter-target dependency graph contains a cycle (Bug #4157)
Description
When trying to generate, I'm getting the following CMake error with CMake 3.1.1 on Ubuntu:CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
"opencv_python3" of type SHARED_LIBRARY
depends on "opencv_python2" (weak)
"opencv_python2" of type SHARED_LIBRARY
depends on "opencv_python3" (weak)
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.
History
Updated by Gregory Kramida about 10 years ago
Work-around: turn off either BUILD_opencv_python2 or BUILD_opencv_python3
Updated by Ilya Lavrenov about 10 years ago
- Assignee set to Maksim Shabunin
Updated by Nico Yep about 10 years ago
Hello, I can confirm this bug on Archlinux.
Updated by Maksim Shabunin almost 10 years ago
Gregory, can you please check if this issue is reproduced with latest master branch revision? Also, please, provide cmake flags that you used.
Updated by Maksim Shabunin almost 10 years ago
- Target version changed from 3.0-beta to 3.0
Updated by Maksim Shabunin almost 10 years ago
Can not reproduce this issue with Ubuntu 14.04, cmake 3.1.1, python 2.7 + 3.4, latest master branch.
Please, provide more information about your system configuration and cmake command line parameters.
- Status changed from New to Incomplete
- Category set to build/install
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4917