gtk2 compilation failed

Anders F Björklund afb at macports.org
Fri Mar 21 01:04:11 PDT 2008


Alejandro Aragon wrote:

> I was trying to build pidgin, and when compiling gtk2 I had the
> following error:
>
> i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libXrandr.2.0.0.dylib: No
> such file or directory
> make[4]: *** [libgdk-x11-2.0.la] Error 1
>
> I'm new to Mac OS so I was wondering why this library is not there. Is
> there an easy way to fix this?

sudo ln -s libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib

If you buy a new Mac, with Mac OS X 10.5.2 pre-installed, it only
has the newer version of X11 which only has the last and latest link.
So you have "libXrandr.2.0.1.dylib", but not "libXrandr.2.0.0.dylib".
Ironically, both are supposed to link to the same library anyway...

/usr/X11/lib/libXrandr.2.0.0.dylib -> libXrandr.2.dylib
/usr/X11/lib/libXrandr.2.1.0.dylib -> libXrandr.2.dylib
/usr/X11/lib/libXrandr.2.dylib
/usr/X11/lib/libXrandr.dylib -> libXrandr.2.dylib

Traced as http://trac.macports.org/projects/macports/ticket/14592

--anders



More information about the macports-users mailing list