[Spice-devel] cross compiling of spice client on ARM
=?gb2312?B?TW9uay5saXUgwfW98Nma?=
monk.liu at siliconmotion.com
Wed Nov 7 03:57:13 PST 2012
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/ff18e11e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 27701 bytes
Desc: Makefile
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20121107/ff18e11e/attachment-0001.obj>
More information about the Spice-devel
mailing list