[CMake] how to compile as 32bit on a 64bit Linux host ?

Martin Koller martin.koller at etm.at
Fri Feb 15 05:46:40 EST 2013


Hi all,

for the question above I found different answers on the web, so I'm puzzled
and wanted to know an authoritative answer from the cmake gurus.

What I found:
http://www.vtk.org/Wiki/CMake_Cross_Compiling#Information_how_to_set_up_various_cross_compiling_toolchains
=> "On mixed 32/64 bit Linux installations cross compilation cannot be used to build for 32/64 bit only."

but also:

http://stackoverflow.com/questions/4131158/how-to-cross-compile-for-linux-x86-with-linux-amd64-cmake-and-g
=> talking about using a toolchain file ...

so please tell me: what is the correct way or is there no way ?

-- 
Best Regards/Schöne Grüße

Martin Koller

-----------------------------------------------------------------
Ing. Martin Koller , mailto:martin.koller at etm.at , http://www.etm.at
ETM professional control GmbH, A Siemens Company
Phone:+43 2682/741-62603, Fax:+43 2682/741-52555
A-7000 Eisenstadt Marktstr. 3, VAT: ATU 61342924,  DVR 4000597
Register Number: FN 256655i at: Commercial Court Eisenstadt
-----------------------------------------------------------------


More information about the CMake mailing list