OpenCV => current master (f9cefc84a35e12cbe468696a3f6c2e2c16323f14)
Operating System / Platform => Gentoo Linux
Compiler => gcc-8.3.0
Detailed description
I am getting the compile error:
No rule to make target '/usr/lib/libglog.so', needed by 'lib/libopencv_sfm.so.4.1.1'. Stop.
The file is actually located in /usr/lib64/libglog.so, not /usr/lib/libglog.so. What's strange is when I check the value of GLOG_LIBRARIEShere, it is set to /usr/lib64/libglog.so which is correct.
I have no idea where this incorrect path is coming from.
Steps to reproduce
mkdir opencv && cd opencv
git clone https://github.com/opencv/opencv
git clone https://github.com/opencv/opencv_contrib
mkdir build && cd build
cmake -DOPENCV_EXTRA_MODULES_PATH=$(pwd)/../opencv_contrib/modules -DBUILD_PACKAGE=OFF -DBUILD_TESTS=OFF -DWITH_CUDA=ON -DWITH_VULKAN=ON ../opencv
make -j
Same issue here, but on opencv 4.5.1 Linux Mint 20. But i've used sudo apt-get install -y libgoogle-glog-dev and it built fine. But it is not your case, i suppose.
System information (version)
Detailed description
I am getting the compile error:
The file is actually located in
/usr/lib64/libglog.so
, not/usr/lib/libglog.so
. What's strange is when I check the value ofGLOG_LIBRARIES
here, it is set to/usr/lib64/libglog.so
which is correct.I have no idea where this incorrect path is coming from.
Steps to reproduce