Goldenrod J. Fox (goldenrod) wrote,
Goldenrod J. Fox

  • Mood:

gtk2 success in Leopard

After spending all freaking week trying to get gtk2 working in 10.5 on my new penryn Macbook, I can finally say I did it!

Here's what I had to do to get GTK2 working in Leopard:

Installed all of the xcode tools, including every version of gcc and the X11-SDK.

I compiled libtiff from source, compiled libjpeg from source.

compiled fink from source, updated fink to the most recent cvs repositories.

edited my .bash_profile to include "export PATH=/sw/bin:$PATH" and "export DYDLD_LIBRARY_PATH=/usr/local/lib"

I then attempted to install the gtk+2 package via fink but it kept stopping while making the gdk libaries with this error:


i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libXrandr.2.0.0.dylib: No  
such file or directory
make[4]: *** [] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-gtk+2-2.6.10-1004
(Reading database ... 47314 files and directories currently installed.)
Removing fink-buildlock-gtk+2-2.6.10-1004 ...
Failed: phase compiling: gtk+2-2.6.10-1004 failed

I tried to fix the missing library with xorg via macports, unfortunately macports does not have xorg support yet:

So my ultimate fix was to create a symbolic link from /Developer/SDKs/MacOSX10.5/usr/X11/lib/libXrandr.2.dylib to /usr/X11/lib/libXrandr.2.0.0.dylib

I again tried to install gtk+2. Finally this time it installed sucessfully.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic