OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: flavien on August 14, 2007, 05:03:12 pm
-
I would like to know which cross compiler archive I need to crosscompile to make binaries for a spitz on pdaXii13 ?
I found this :
1.1.0beta1
http://distro.ibiblio.org/pub/linux/distri...ftfloat.tar.bz2 (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0beta1/Zaurus-7x0-860/cross-sdk-armv5tel-cacko-linux-3.4.5-2.2.5-softfloat.tar.bz2)
1.1.0beta4
http://distro.ibiblio.org/pub/linux/distri...ftfloat.tar.bz2 (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0beta4/Zaurus-7x0-860/cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2)
1.1.0.r121
http://distro.ibiblio.org/pub/linux/distri...ftfloat.tar.bz2 (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0r121/Zaurus-7x0-860/cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2)
I am thinking that I need use 1.1.0beta1 but I would like a confirmation of "advanced" cross compiler guys.
I find this document to install it.
https://www.oesf.org/index.php?title=Pdaxro...oss_Compilation (https://www.oesf.org/index.php?title=Pdaxrom:_Cross_Compilation)
I choose a Ubuntu 7.04 and I hope write a small document for newbie (if cross compile doesn't make crazy)
If someone has some good advice dealing with LDFLAGS, libdir and x-includes etc .., i will be very happy.
Thank you
-
The Beta 1 SDK is the one you want, unless Meanie has made a custom one that I'm not aware of.
-
The Beta 1 SDK is the one you want, unless Meanie has made a custom one that I'm not aware of.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=166237\"][{POST_SNAPBACK}][/a][/div]
Thank you very much. I will working on it now.
-
################################################################################
# UBUNTU PACKAGE AFTER FRESH INSTALL
################################################################################
apt-get install openssh-server
apt-get install libc6-dev g++ gcc
################################################################################
# DOWNLOAD AND DECOMPRESS SDK
################################################################################
cd ~
wget http://distro.ibiblio.org/pub/linux/distri...ftfloat.tar.bz2 (http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0beta1/Zaurus-7x0-860/cross-sdk-armv5tel-cacko-linux-3.4.5-2.2.5-softfloat.tar.bz2)
cd /
tar jxvf ~/cross-sdk-armv5tel-cacko-linux-3.4.5-2.2.5-softfloat.tar.bz2
################################################################################
# INSTALL LIBICONV
################################################################################
# Download Libiconv and compile it
cd ~
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz (http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz)
tar zxvf libiconv-1.11.tar.gz
cd libiconv-1.11
./configure
make && make install
# Add libiconv to SDK
cp /usr/local/lib/libiconv.so.2 /opt/cross/arm/3.4.5-xscale-softvfp/lib/libiconv.so.2
chmod a+x /opt/cross/arm/3.4.5-xscale-softvfp/lib/libiconv.so.2
# Modify rushsdk.sh
vi /opt/cross/arm/3.4.5-xscale-softvfp/runsdk.sh
# Add at the line 9
export LD_LIBRARY_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/lib
-------------------------------------------------------------------------------------------
result :
-------------------------------------------------------------------------------------------
#!/bin/bash
. /etc/profile
export PATH=/opt/cross/arm/3.4.5-xscale-softvfp/bin:$PATH
export QTDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/qt
export KDEDIR=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/qt
export X11INC=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/include
export X11LIB=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib
export PKG_CONFIG_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/pkgconfig
export LD_LIBRARY_PATH=/opt/cross/arm/3.4.5-xscale-softvfp/lib
echo "Type exit for leave armv5tel-cacko-linux cross environment."
/bin/bash
-------------------------------------------------------------------------------------------
################################################################################
# TEST
################################################################################
echo -e '#include "stdio.h"\n int main(){ printf("Hello World\\n"); }' > hello.c
armv5tel-cacko-linux-gcc -o hello hello.c
file hello
-------------------------------------------------------------------------------------------
result :
-------------------------------------------------------------------------------------------
hello: ELF 32-bit LSB executable, ARM, version 1, for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped
-------------------------------------------------------------------------------------------
-
I would like to compile latest matchbox from SVN
after download build, i try to launch autogen.sh to build makefile.in for libmatchbox
I have this error :
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/libxslt.m4:14: warning: underquoted definition of AM_PATH_XSLT
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/libgnutls.m4:12: warning: underquoted definition of AM_PATH_LIBGNUTLS
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/libgnutls-extra.m4:12: warning: underquoted definition of AM_PATH_LIBGNUTLS_EXTRA
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal-1.9/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/libxslt.m4:14: warning: underquoted definition of AM_PATH_XSLT
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/libgnutls.m4:12: warning: underquoted definition of AM_PATH_LIBGNUTLS
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/libgnutls-extra.m4:12: warning: underquoted definition of AM_PATH_LIBGNUTLS_EXTRA
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/opt/cross/arm/3.4.5-xscale-softvfp/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
autom4te: need GNU m4 1.4 or later: /opt/native/i686/3.4.5-2.2.5/bin/m4
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Someone knows the solution ?
-
################################################################################
# UBUNTU PACKAGE AFTER FRESH INSTALL
################################################################################
apt-get install openssh-server
apt-get install libc6-dev g++ gcc
################################################################################
# DOWNLOAD AND DECOMPRESS SDK
################################################################################
[...]
Thank you for the guide! Used successfully on Debian Etch compiling znester.