[Spice-devel] 答复: cross compiling of spice client on ARM
=?gb2312?B?TW9uay5saXUgwfW98Nma?=
monk.liu at siliconmotion.com
Wed Nov 7 04:04:17 PST 2012
Hi guys, again it¡¯s me
error of make :
make all-recursive
make[1]: Entering directory `/home/monk/spice-0.10.0-arm'
Making all in common
make[2]: Entering directory `/home/monk/spice-0.10.0-arm/common'
make[3]: Entering directory `/home/monk/spice-0.10.0-arm/common'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/monk/spice-0.10.0-arm/common'
make[2]: Leaving directory `/home/monk/spice-0.10.0-arm/common'
Making all in server
make[2]: Entering directory `/home/monk/spice-0.10.0-arm/server'
make all-recursive
make[3]: Entering directory `/home/monk/spice-0.10.0-arm/server'
Making all in .
make[4]: Entering directory `/home/monk/spice-0.10.0-arm/server'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/monk/spice-0.10.0-arm/server'
Making all in tests
make[4]: Entering directory `/home/monk/spice-0.10.0-arm/server/tests'
CCLD test_just_sockets_no_ssl
libtool: link: warning: library `/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/libjpeg.la' was moved.
libtool: link: warning: library `/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/libpixman-1.la' was moved.
libtool: link: warning: library `/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/libjpeg.la' was moved.
libtool: link: warning: library `/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/libpixman-1.la' was moved.
/usr/lib/libcelt051.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[4]: *** [test_just_sockets_no_ssl] Error 1
make[4]: Leaving directory `/home/monk/spice-0.10.0-arm/server/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/monk/spice-0.10.0-arm/server'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/monk/spice-0.10.0-arm/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/monk/spice-0.10.0-arm'
make: *** [all] Error 2
sorry if it troubles you
Best Regards
monk.liu (Áõ½ðÙ)
SiliconMotion ShangHai office Linux Team R&D
»Û¹ú£¨ÉϺ££©Èí¼þ¿Æ¼¼ÓÐÏÞ¹«Ë¾£¬Ñз¢£¨linux×飩
telephone: 65107780
ext: 7143
fax:65107821
·¢¼þÈË: Monk.liu Áõ½ðÙ
·¢ËÍʱ¼ä: 2012Äê11ÔÂ7ÈÕ 19:57
ÊÕ¼þÈË: 'spice-devel at lists.freedesktop.org'
Ö÷Ìâ: cross compiling of spice client on ARM
Hi guys
Firstly thanks all you developers working on spice, I tried it on x86 system ,and it really awesome !!
I ¡®m now porting spice-client-0.10.0 to an ARMV6 based platform
Now I was stuck at the building stage ¡
I have already used ELDK 5.2 environment successfully building done all dependency packaged, but the same configure parameter seems failed in spice client (./configure ¨Chost=arm-linux-gnueabi ¨Cbuild=i686-linux ¨Cprefix=/usr)
the error occurred at spice-0.10.0/server/ folder ,it try to link libcelt051.so ,which is confirmed successfully cross compiled to my eldk folder (/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/libcelt051.so )
But obviously it link the wrong celt051, it linked to my x86 system¡¯s /usr/lib/libcelt051.so ¡
before configure, I use source to export the ELDK¡¯s environment variable:
export PATH=/opt/eldk-5.2.1/armv6/sysroots/i686-eldk-linux/usr/bin:/opt/eldk-5.2.1/armv6/sysroots/i686-eldk-linux/usr/bin/armv6-vfp-linux-gnueabi:$PATH
export PKG_CONFIG_SYSROOT_DIR=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi
export PKG_CONFIG_PATH=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi/usr/lib/pkgconfig
export CONFIG_SITE=/opt/eldk-5.2.1/armv6/site-config-armv6-vfp-linux-gnueabi
export CC=arm-linux-gnueabi-gcc
export LD=arm-linux-gnueabi-ld
export CXX=arm-linux-gnueabi-g++
export GDB=arm-linux-gnueabi-gdb
export TARGET_PREFIX=arm-linux-gnueabi-
export CONFIGURE_FLAGS="--target=arm-linux-gnueabi --host=arm-linux-gnueabi --build=i686-linux --with-libtool-sysroot=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export CFLAGS=" -march=armv6 -mthumb-interwork -mfloat-abi=softfp --sysroot=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export CXXFLAGS=" -march=armv6 -mthumb-interwork -mfloat-abi=softfp --sysroot=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export LDFLAGS=" --sysroot=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export CPPFLAGS=" -march=armv6 -mthumb-interwork -mfloat-abi=softfp --sysroot=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export OECORE_NATIVE_SYSROOT="/opt/eldk-5.2.1/armv6/sysroots/i686-eldk-linux"
export OECORE_TARGET_SYSROOT="/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi"
export OECORE_ACLOCAL_OPTS="-I /opt/eldk-5.2.1/armv6/sysroots/i686-eldk-linux/usr/share/aclocal"
export OECORE_DISTRO_VERSION="5.2.1"
export OECORE_SDK_VERSION="5.2.1"
export DESTDIR=/opt/eldk-5.2.1/armv6/sysroots/armv6-vfp-linux-gnueabi
Attachment is the Makefile in spice-0.10.0 top folder generated by beyond configure
Could you please give me some advise on it?? or show me the site where I can get some cross-compiling for spice-client ?
Thank you very much indeed !
Best Regards
monk.liu (Áõ½ðÙ)
SiliconMotion ShangHai office Linux Team R&D
»Û¹ú£¨ÉϺ££©Èí¼þ¿Æ¼¼ÓÐÏÞ¹«Ë¾£¬Ñз¢£¨linux×飩
telephone: 65107780
ext: 7143
fax:65107821
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20121107/18978901/attachment-0001.html>
More information about the Spice-devel
mailing list