Building ROOT on debian stretch

I am trying to build root 6-10-08 on Debian stretch
and use the following
cmake -D minuit2=ON -D builtin_gsl=ON -D builtin_xrootd=ON -D builtin_tbb=ON -D builtin_zlib=ON -D builtin_afterimage=ON

Everything is fine, it finds libjpeg at /usr/lib/x86_64-linux-gnu/libjpeg.so

Then I do a

cmake --build . -- -j4

which then stops with

[ 87%] Linking CXX shared library ../../lib/libASImage.so
/usr/bin/ld: cannot find -l/usr/lib/x86_64-linux-gnu/libjpeg.so
collect2: error: ld returned 1 exit status
graf2d/asimage/CMakeFiles/ASImage.dir/build.make:181: recipe for target 'lib/libASImage.so' failed
make[2]: *** [lib/libASImage.so] Error 1
CMakeFiles/Makefile2:20275: recipe for target 'graf2d/asimage/CMakeFiles/ASImage.dir/all' failed
make[1]: *** [graf2d/asimage/CMakeFiles/ASImage.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocDirective.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatMng.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatBacktrace.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatHelpers.cxx.o
[ 87%] Building CXX object misc/memstat/CMakeFiles/MemStat.dir/src/TMemStatHook.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocInfo.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocOutput.cxx.o
[ 87%] Linking CXX shared library ../../lib/libMemStat.so
[ 87%] Built target MemStat
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/TDocParser.cxx.o
[ 87%] Building CXX object html/CMakeFiles/Html.dir/src/THtml.cxx.o
[ 87%] Linking CXX shared library ../lib/libHtml.so
[ 87%] Built target Html
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

I verified that libjpeg is there:

ls -al /usr/lib/x86_64-linux-gnu/libjpeg*
-rw-r--r-- 1 root root 601294 Oct 20  2016 /usr/lib/x86_64-linux-gnu/libjpeg.a
lrwxrwxrwx 1 root root     17 Oct 20  2016 /usr/lib/x86_64-linux-gnu/libjpeg.so -> libjpeg.so.62.2.0
lrwxrwxrwx 1 root root     17 Oct 20  2016 /usr/lib/x86_64-linux-gnu/libjpeg.so.62 -> libjpeg.so.62.2.0
-rw-r--r-- 1 root root 436224 Oct 20  2016 /usr/lib/x86_64-linux-gnu/libjpeg.so.62.2.0

Any help would be great.
Thanks, andi

There is a JIRA issue for this problem; I guess it needs to be reopened. Let us know if the information there is not enough for you to work around the problem.

I will try.
Thanks, andi

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