Author Topic: Cross Compile For Pdaxii13  (Read 3694 times)

flavien

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://
Cross Compile For Pdaxii13
« 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

1.1.0beta4
http://distro.ibiblio.org/pub/linux/distri...ftfloat.tar.bz2

1.1.0.r121
http://distro.ibiblio.org/pub/linux/distri...ftfloat.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

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
« Last Edit: August 15, 2007, 07:15:04 am by flavien »
SL-C3000 aka spitz / Linksys Wireless CF / Sandisk 512Mo SD

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Cross Compile For Pdaxii13
« Reply #1 on: August 14, 2007, 05:07:11 pm »
The Beta 1 SDK is the one you want, unless Meanie has made a custom one that I'm not aware of.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

flavien

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://
Cross Compile For Pdaxii13
« Reply #2 on: August 14, 2007, 05:17:59 pm »
Quote
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.
SL-C3000 aka spitz / Linksys Wireless CF / Sandisk 512Mo SD

flavien

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://
Cross Compile For Pdaxii13
« Reply #3 on: August 15, 2007, 06:56:49 am »
################################################################################

# 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
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
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
-------------------------------------------------------------------------------------------
SL-C3000 aka spitz / Linksys Wireless CF / Sandisk 512Mo SD

flavien

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://
Cross Compile For Pdaxii13
« Reply #4 on: August 15, 2007, 07:04:39 am »
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 :

Code: [Select]
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 ?
SL-C3000 aka spitz / Linksys Wireless CF / Sandisk 512Mo SD

nauj27

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://nauj27.com/
Cross Compile For Pdaxii13
« Reply #5 on: August 22, 2007, 07:50:35 am »
Quote
################################################################################

# 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.