[CMake] Finding X11 fails under OS X...

Martin Costabel costabel at wanadoo.fr
Fri Sep 4 03:55:48 EDT 2009


Werner Smekal wrote:
> 
> Hi,
>>>
>>> If you don't have /usr/X11/lib/libX11.dylib (which is a symbolic link 
>>> to libX11.6.dylib), then your X11 installation is incomplete. You 
>>> must have removed this symlink accidentally. Or maybe you can blame 
>>> it on Apple's installer which is known to occasionally forget files.
>>>
>> No I don't. In fact there is only a .la file all X11 libraries, 
>> besides the version-coded .dylib files. The only places that there 
>> .dylib files without version (along with the versioned ones) is inside 
>> the SDK folders, which are not considered at all by cmake.
>>
>> What is the suggested way? Reinstall X-code to get the missing files?
> 
> You could also install xquartz (http://xquartz.macosforge.org/trac/wiki) 
> which usually provides a more up-to-date and bugfree version of X11 than 
> Apple does.

One caveat, however: If you ever plan to upgrade to Snow Leopard later 
on, then do not install an xquartz version newer than 2.3.3.2, in 
particular, do not install version 2.4.0.

-- 
Martin


More information about the CMake mailing list