Failure when building ROOT 6.12.04 on Ubuntu 17.10

Dear experts,

I am trying to build ROOT 6.12.04 on Ubuntu 17.10. I did the following steps suggested at
  1. sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev
    libxft-dev libxext-dev
  2. mkdir build; cd build
  3. cmake …/root-6.12.04/
  4. cmake --build .

I got the following error message:

[ 91%] Linking CXX shared library ../../lib/
/usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/
collect2: error: ld returned 1 exit status
graf2d/asimage/CMakeFiles/ASImage.dir/build.make:179: recipe for target
'lib/' failed
make[2]: *** [lib/] 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/ existed - it is a symlink to an existing library.
Could you help me to solve the problem, please?
Best regards


may be try to activate -Dbuiltin_afterimage=ON

Thank you very much, it helped.
Btw. I also checked that installing the package libafterimage-dev would help as well (without turning the builtin_afterimage on).
Best regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.