undefined reference to `XRRFreeMonitors'

asked 2017-09-21 07:54:35 -0600

Jie gravatar image

Hi,

I was trying to install opencv2.4.7 on CentOS. The following is always generated when I built

/usr/lib64/libgdk-x11-2.0.so.0: undefined reference to XRRFreeMonitors' /usr/lib64/libgdk-x11-2.0.so.0: undefined reference toXRRGetMonitors' collect2: error: ld returned 1 exit status make[2]: * [bin/opencv_test_core] Error 1 make[1]: * [modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2

Any suggestions?

Thanks a lot.

Jie

edit retag flag offensive close merge delete

Comments

"I was trying to install opencv2.4.7 on CentOS." -- how, exactly ? (please edit)

(also, why bother installingsomething that outdated ?)

berak gravatar imageberak ( 2017-09-21 08:07:46 -0600 )edit

installation steps I used:

git clone https://github.com/Itseez/opencv.git $ cd opencv $ git checkout tags/2.4.7 $ mkdir build $ cd build $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local .. $ make -j8

Reason why I want to install version 2.4.7: I want to use a benchmark requiring cv2 libraries. I tried with 2.4.8.2, 2.4.9.1, 2.4.11 etc., but all failed with encountering with the same issue :-(

Thanks.

Jie gravatar imageJie ( 2017-09-21 08:15:02 -0600 )edit