Hello,
I’ve installed root 6.10.08 on Ubuntu 16.04.3 LTS, in the following way:
cmake -DCMAKE_INSTALL_PREFIX=/opt/root ..
make
from the compilation directory, I can use root without any problem, and in particular open a TCanvas.
But after installation to the destination directory:
make install
source /opt/root/bin/thisroot.sh
Opening a canvas leads to the following error:
root [0] TCanvas c
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGHScrollBar::TGHScrollBar>: arrow_*.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f05e7b9507a in __GI___waitpid (pid=70695, stat_loc=stat_loc
entry=0x7ffc965cad00, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
#1 0x00007f05e7b0dfbb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2 0x00007f05e8710eed in TUnixSystem::Exec (shellcmd=<optimized out>, this=0xe114f0) at /home/cmsgpu/Software/root-6.10.08/core/unix/src/TUnixSystem.cxx:2118
#3 TUnixSystem::StackTrace (this=0xe114f0) at /home/cmsgpu/Software/root-6.10.08/core/unix/src/TUnixSystem.cxx:2412
#4 0x00007f05e87134dc in TUnixSystem::DispatchSignals (this=0xe114f0, sig=kSigSegmentationViolation) at /home/cmsgpu/Software/root-6.10.08/core/unix/src/TUnixSystem.cxx:3643
#5 <signal handler called>
#6 0x00007f05dc0c7736 in TGHScrollBar::SetPosition (this=0x22b8c90, pos=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGScrollBar.cxx:664
#7 0x00007f05dc09d58b in TGCanvas::Layout (this=0x22b8370) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGCanvas.cxx:2316
#8 0x00007f05dc0cf1d4 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGFrame.cxx:1162
#9 0x00007f05dc0cf1d4 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGFrame.cxx:1162
#10 0x00007f05dc02c875 in TRootCanvas::CreateCanvas (this=this
entry=0x22217c0, name=name
entry=0x16fe4e0 "c1") at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootCanvas.cxx:600
#11 0x00007f05dc02d53c in TRootCanvas::TRootCanvas (this=0x22217c0, c=0x7f05e8e7f020, name=0x16fe4e0 "c1", x=10, y=10, width=700, height=500) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootCanvas.cxx:321
#12 0x00007f05dc06678e in TRootGuiFactory::CreateCanvasImp (this=<optimized out>, c=0x7f05e8e7f020, title=0x16fe4e0 "c1", x=10, y=10, width=700, height=500) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootGuiFactory.cxx:71
#13 0x00007f05de5a4912 in TCanvas::Constructor (this=0x7f05e8e7f020, name=0x16fe4e0 "c1", title=0x16fe4e0 "c1", form=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/graf2d/gpad/src/TCanvas.cxx:306
#14 0x00007f05de5a5550 in TCanvas::TCanvas (this=0x7f05e8e7f020, build=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/graf2d/gpad/src/TCanvas.cxx:155
#15 0x00007f05e8e7e034 in ?? ()
#16 0x00007f05e8e7e010 in ?? ()
#17 0x00007ffc965ce190 in ?? ()
#18 0x0000000000000000 in ?? ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6 0x00007f05dc0c7736 in TGHScrollBar::SetPosition (this=0x22b8c90, pos=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGScrollBar.cxx:664
#7 0x00007f05dc09d58b in TGCanvas::Layout (this=0x22b8370) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGCanvas.cxx:2316
#8 0x00007f05dc0cf1d4 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGFrame.cxx:1162
#9 0x00007f05dc0cf1d4 in TGCompositeFrame::MapSubwindows (this=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TGFrame.cxx:1162
#10 0x00007f05dc02c875 in TRootCanvas::CreateCanvas (this=this
entry=0x22217c0, name=name
entry=0x16fe4e0 "c1") at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootCanvas.cxx:600
#11 0x00007f05dc02d53c in TRootCanvas::TRootCanvas (this=0x22217c0, c=0x7f05e8e7f020, name=0x16fe4e0 "c1", x=10, y=10, width=700, height=500) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootCanvas.cxx:321
#12 0x00007f05dc06678e in TRootGuiFactory::CreateCanvasImp (this=<optimized out>, c=0x7f05e8e7f020, title=0x16fe4e0 "c1", x=10, y=10, width=700, height=500) at /home/cmsgpu/Software/root-6.10.08/gui/gui/src/TRootGuiFactory.cxx:71
#13 0x00007f05de5a4912 in TCanvas::Constructor (this=0x7f05e8e7f020, name=0x16fe4e0 "c1", title=0x16fe4e0 "c1", form=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/graf2d/gpad/src/TCanvas.cxx:306
#14 0x00007f05de5a5550 in TCanvas::TCanvas (this=0x7f05e8e7f020, build=<optimized out>) at /home/cmsgpu/Software/root-6.10.08/graf2d/gpad/src/TCanvas.cxx:155
#15 0x00007f05e8e7e034 in ?? ()
#16 0x00007f05e8e7e010 in ?? ()
#17 0x00007ffc965ce190 in ?? ()
#18 0x0000000000000000 in ?? ()
===========================================================
I do not have libpng16 on my system but libpng12.
And anyway, I don’t understand how it can work before installation and fail afterwards.
Any help would be much appreciated, I will be happy to provide more information if needed.
Many thanks,
Colin