OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Cross Compile For Pdaxii13, problem with M4 and autom4te
flavien
post Aug 14 2007, 01:03 PM
Post #1





Group: Members
Posts: 42
Joined: 22-August 05
From: Versailles - France
Member No.: 7,920



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.
http://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
Go to the top of the page
 
+Quote Post
Capn_Fish
post Aug 14 2007, 01:07 PM
Post #2





Group: Members
Posts: 2,350
Joined: 30-July 06
Member No.: 10,575



The Beta 1 SDK is the one you want, unless Meanie has made a custom one that I'm not aware of.
Go to the top of the page
 
+Quote Post
flavien
post Aug 14 2007, 01:17 PM
Post #3





Group: Members
Posts: 42
Joined: 22-August 05
From: Versailles - France
Member No.: 7,920



QUOTE(Capn_Fish @ Aug 14 2007, 10:07 PM)
The Beta 1 SDK is the one you want, unless Meanie has made a custom one that I'm not aware of.
*

Thank you very much. I will working on it now.
Go to the top of the page
 
+Quote Post
flavien
post Aug 15 2007, 02:56 AM
Post #4





Group: Members
Posts: 42
Joined: 22-August 05
From: Versailles - France
Member No.: 7,920



################################################################################

# 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
-------------------------------------------------------------------------------------------
Go to the top of the page
 
+Quote Post
flavien
post Aug 15 2007, 03:04 AM
Post #5





Group: Members
Posts: 42
Joined: 22-August 05
From: Versailles - France
Member No.: 7,920



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
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 ?
Go to the top of the page
 
+Quote Post
nauj27
post Aug 22 2007, 03:50 AM
Post #6





Group: Members
Posts: 7
Joined: 19-July 05
Member No.: 7,625



QUOTE(flavien @ Aug 15 2007, 11:56 AM)
################################################################################

# 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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st August 2014 - 05:58 PM