David C Thompson wrote:
Gonzalo Garramuño wrote:
Alexander Neundorf wrote:
On Monday 17 December 2007, Gonzalo Garramuño wrote:
Bill Hoffman wrote:
Gonzalo Garramuño wrote:
    * good for cross-compilation.
CVS CMake (and the coming 2.6 CMake) have extensive support for cross
compilation.

http://www.cmake.org/Wiki/CMake_Cross_Compiling
I'm still having a lot of problems with it.  Even cross-compiling on a
64-bit machine for 32-bit builds is, afaik, not really possible without
major hacking of Platform/UnixPaths.
Ok, what are you doing exactly, what are the problems ?
First, trying simple 32-bit compiles on a 64-bit machine (Ubuntu OS).

For 32-bit compiles on a 64-bit machine, the problem is that UnixPaths does not change the location where it searches for files.

Are you using "setarch i386 cmake" ? That should help by forcing uname
to advertise the architecture as 32-bit.


No, I'm not. But using it does not seem to improve things that much. Still lots of paths get picked up wrong due to bad UnixPaths.cmake.

In my case, X11 and GL get picked from the 64-bit paths instead of 32-bits (and yes, I have 32-bits versions in /usr/lib32).

For example:

-- Found X11: /usr/lib64/libX11.so---
It is impossible to order the linker search path in such a way that libraries specified as full paths will be picked by the linker.
Directories and libraries involved are:
Directory: /usr/lib32 contains:
Library: /usr/lib64/libGL.so
Library: /usr/lib64/libGLU.so

Directory: /usr/lib64 contains:
Library: /usr/lib32/libz.so
Library: /usr/local/lib32/libHalf.a
Library: /usr/local/lib32/libIex.a
Library: /usr/local/lib32/libIlmImf.a
Library: /usr/local/lib32/libImath.a


--
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to