Dear experts,
I am trying to build ROOT 6.12.04 on Ubuntu 17.10. I did the following steps suggested at https://root.cern.ch/building-root:
- sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev
libxft-dev libxext-dev - mkdir build; cd build
- cmake …/root-6.12.04/
- cmake --build .
I got the following error message:
[ 91%] Linking CXX shared library ../../lib/libASImage.so
/usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/libX11.so
collect2: error: ld returned 1 exit status
graf2d/asimage/CMakeFiles/ASImage.dir/build.make:179: recipe for target
'lib/libASImage.so' failed
make[2]: *** [lib/libASImage.so] Error 1
CMakeFiles/Makefile2:22299: recipe for target
'graf2d/asimage/CMakeFiles/ASImage.dir/all' failed
make[1]: *** [graf2d/asimage/CMakeFiles/ASImage.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Of course, I checked that /usr/lib/x86_64-linux-gnu/libX11.so existed - it is a symlink to an existing library.
Could you help me to solve the problem, please?
Best regards
Vojtech