Mac OSX dynamic library load problem

My system specifics:

MacBook intel dual core
Mac OSX 10.4.5
gcc 4.0.1
binaries from root_v5.13.04.macosx-i386-gcc-4.0.tar

The install disk puts the X dylibs in

/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib

instead of /usr/X11R6/lib ???

OK, fine. I make a link and check it

sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/lib /usr/X11R6

macintosh-5:~ stephanlinn$ ls -al /usr/X11R6/lib/libXpm*.dylib
-rwxr-xr-x 1 root wheel 25564 Jan 2 2006 /usr/X11R6/lib/libXpm.4.11.dylib
lrwxr-xr-x 1 root wheel 17 Aug 16 13:00 /usr/X11R6/lib/libXpm.4.dylib -> libXpm.4.11.dylib
lrwxr-xr-x 1 root wheel 17 Aug 16 13:00 /usr/X11R6/lib/libXpm.dylib -> libXpm.4.11.dylib

So I run root and get a load error

macintosh-5:~ stephanlinn$ root
dyld: Library not loaded: /usr/X11R6/lib/libXpm.4.dylib
Referenced from: /Applications/root/bin/root
Reason: no suitable image found. Did find:
/usr/X11R6/lib/libXpm.4.dylib: can’t map
Trace/BPT trap

New to Mac, I have no idea what this means or how to fix it.

SLL

Hi,

you should install instead the X11User package from the main MacOS X install disk (it is optional). Remove the symlinks before doing that. What you installed now are the libs needed to compile ROOT from source.

Cheers, Fons.

I thought that I did install the “X11 User package” by clicking the “install Bundled Software Only” icon. The only other thing remotely sounding like X11 is on the install disk is a folder called “Xcode Tools/packages/X11SDK.mpkg” which was done by main install.
It is a little strange that I don’t get an application called “xterm”

and

Before I put in the link to X11R6, root just complains that it can’t find the dylib

macintosh-5:~ stephanlinn$ root
dyld: Library not loaded: /usr/X11R6/lib/libXpm.4.dylib
Referenced from: /Applications/root/bin/root
Reason: image not found
Trace/BPT trap

SLL

Maybe this will help the next person changing to Mac from Linux.

When you insert the intall disk there is nothing about options.

The only way to get X11User.pkg is to open the install disk with the finder and go to “optional installs”->applications. Then check the X11 box.

SLL