Martin Koller wrote:
> On Thursday 06 December 2012 20:27:27 Koller, Martin wrote:
> > Hi,
> > 
> > I compiled cmake itself on SunOS/x86
> > I want to compile my apps in 64 bit mode, however linking with X11 does
> > not work as cmake finds /usr/lib/libX11.so which is the 32bit version,
> > and the 64 bit version is in /usr/lib/64/libX11.so
> > 
> > SunOS/x86 is a 64 bit OS, but the stupid Sun CC compiler still defaults to
> > 32bit!
> > 
> > That means, cmake itself is now here a 32-bit exe. Is this the reason why
> > it does not look into the lib/64/ subdir ?
> > Setting the global property FIND_LIBRARY_USE_LIB64_PATHS does not help
> > either as cmake checks its internal CMAKE_SIZEOF_VOID_P property, which
> > is 4.
> > 
> > So I thought I compile cmake itself as 64 bit exe, which needs the -m64
> > flag for the compiler - but: How do I pass this option to the bootstrap
> > tool ?
> 
> I found out now that the bootstrap thingy is a shell script ... stupid me.
> So I found that I can set the CXXFLAGS and CFLAGS env vars beforehand.
> 
> ... still with a 64bit cmake exe, it finds only the 32bit libX11 - even when
> I set explicitely FIND_LIBRARY_USE_LIB64_PATHS to TRUE.
> 
> How can I tell cmake to find the 64bit X11 libs ?

That variable makes CMake search in "lib64" additionally whereever it finds a 
"/lib/" in any library search path. Try setting CMAKE_MODULE_PATH. Or try to 
compile it without the GUI at all.

Eike
-- 

Attachment: signature.asc
Description: This is a digitally signed message part.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to