[CMake] how to compile cmake itself as 64bit exe on SunOS/x86 ?
Rolf Eike Beer
eike at sf-mail.de
Thu Dec 6 17:05:32 EST 2012
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
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121206/6f452be8/attachment.pgp>
More information about the CMake
mailing list