Incompatible library version

Hi,

has someone ever seen this error? :unamused:

dlopen error: dlopen(/Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so, 9): Library not loaded: /opt/local/lib/libjpeg.8.dylib Referenced from: /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so Reason: Incompatible library version: libASImage.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 12.0.0 Load Error: Failed to load Dynamic link library /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so Error in <TCint::AutoLoad>: failure loading library libASImage.so for class TASImage Error in <TPluginHandler::SetupCallEnv>: class TASImage not found in plugin ASImage Error in <TGHScrollBar::TGHScrollBar>: arrow_*.xpm not found Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found Error in <TGRadioButton::TGRadioButton>: rbutton_*.xpm not found

What can I do?

Stefano

It looks like you are on Mac (.dylib) … ?
Have you installed ROOT yourself ?

Hi, yes, I’m on a Mac (sorry…), and
the root installation come up along another software installation which includes ROOT as a dependency.

Ok thanks. So you do not have to much control. In that case the best would be to install a more recent version of libjpeg. It can be find on the web.

Some instructions are given here:
underworldproject.org/docume … ling_libjp

Thanks,
I installed the newer version of the jpeg libraries,now it is ibjpeg.9.dylib. I still get the same error, should I remove the libjpeg.8.dylib one? It is stil referenced from libASImage.so

What do you get when you do:

otool -L $ROOTSYS/lib/libASImage.so

on my machine I get:

	@rpath/libASImage.so (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
	@rpath/libGraf.so (compatibility version 0.0.0, current version 0.0.0)
	@rpath/libMathCore.so (compatibility version 0.0.0, current version 0.0.0)
	/usr/local/lib/libfreetype.6.dylib (compatibility version 16.0.0, current version 16.0.0)
	/usr/local/lib/libpng15.15.dylib (compatibility version 29.0.0, current version 29.0.0)
	/opt/X11/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	@rpath/libCore.so (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)

libjpeg does not show because I am using the lijpeg coming with ROOT.

this is it

/Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so: /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0) /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libGraf.so (compatibility version 0.0.0, current version 0.0.0) /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libMathCore.so (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libfreetype.6.dylib (compatibility version 15.0.0, current version 15.1.0) /opt/local/lib/libjpeg.8.dylib (compatibility version 13.0.0, current version 13.0.0) /opt/local/lib/libtiff.3.dylib (compatibility version 13.0.0, current version 13.5.0) /opt/local/lib/libpng14.14.dylib (compatibility version 24.0.0, current version 24.0.0) /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0) /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libCore.so (compatibility version 0.0.0, current version 0.0.0) /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libCint.so (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 52.0.0)

According to this dump your root version is using:

 /opt/local/lib/libjpeg.8.dylib (compatibility version 13.0.0, current version 13.0.0)

So you need libjpeg.8.dylib version 13.0.0. It looks like your libjpeg.8.dylib is version 12 (according to the first error message). Having installed libjpeg.9.dylib will not help because your root is looking for libjpeg.8.dylib

Yes, you’re right, your link was very useful I installed the right version and that error is gone! :slight_smile:

Unfortunately something else is missing

dlopen error: dlopen(/Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so, 9): Library not loaded: /opt/local/lib/libtiff.3.dylib Referenced from: /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so Reason: image not found Load Error: Failed to load Dynamic link library /Users/bABa/Offline/ApeInstalled/External/root/5.34.03/lib/root/libASImage.so Error in <TCint::AutoLoad>: failure loading library libASImage.so for class TASImage Error in <TPluginHandler::SetupCallEnv>: class TASImage not found in plugin ASImage Error in <TGHScrollBar::TGHScrollBar>: arrow_*.xpm not found Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found Error in <TGRadioButton::TGRadioButton>: rbutton_*.xpm not found

Do you have another useful link for that? [-o<

ok you are missing /opt/local/lib/libtiff.3.dylib

I did not have any special link. I was simply using Google…:slight_smile:

Now, in google, if you enter “libtiff download” you get for example this one:

libtiff.org/