Linking error with gflags

asked 2017-12-05 09:49:47 -0600

alealv gravatar image

Hi, after successfully installing OpenCV (with gflags included). I'm experimenting a linking error when compiling my project.

[100%] Linking CXX executable ds2_imgqlty_cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgflags-shared
collect2: error: ld returned 1 exit status

I don't understand if there is a problem with the -lgflags-shared (maybe it's not set) or OpenCV is not linking correctly these libraries.

On CMakeCache.txt the gflags_DIR=/usr/lib64/cmake/gflags.

I'm using the latest commit from the master branch.

Any idea?

edit retag flag offensive close merge delete