So finally I remove from CMakeLists.txt
Thanks Levente.After searching & trying finally I've passed this problem by:mv /usr/bin/gcc /usr/bin/real.gccand then creating /usr/bin/gcc :#!/bin/shexec real.gcc -m32 $@and chmod +x /usr/bin/gccNow I have:[ 94%] Built target vm-display-nullScanning dependencies of target vm-display-X11[ 94%] Building C object vm-display-X11/CMakeFiles/vm-display-X11.dir/root/securedvm/platforms/unix/vm-display-X11/sqUnixX11.c.o[ 95%] Building C object vm-display-X11/CMakeFiles/vm-display-X11.dir/root/securedvm/platforms/unix/vm-display-X11/sqUnixMozilla.c.oLinking C shared library /root/securedvm/results/vm-display-X11/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libSM.so when searching for -lSM/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../libSM.a when searching for -lSM/usr/bin/ld: skipping incompatible /usr/lib/libSM.so when searching for -lSM/usr/bin/ld: skipping incompatible /usr/lib/libSM.a when searching for -lSM/usr/bin/ld: cannot find -lSMcollect2: ld returned 1 exit statusLaurent��On Sat, Aug 13, 2011 at 4:36 PM, Levente Uzonyi <leves@elte.hu> wrote:
On Sat, 13 Aug 2011, laurent laffont wrote:
(no quotes thx to gmail...)
This issue was discussed several times. The simplest solution is to define CC as "gcc -m32" (and optionally CXX as "g++ -m32" if you need g++). Another solution is to check how cmake supports cross compilation. IIRC autotools has some flags for this.
Levente