Author Topic: help with sdk  (Read 6377 times)

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« on: July 19, 2004, 09:57:19 am »
Im trying to get the sdk installed so i can start compiling and testing some apps on the z.
problem is it appears it dosnt want to work for me
I extract to /opt run the sh file then move over to the newvox test source and compiling get this output

Code: [Select]
newvox  newvox.o  -L/opt/arm/3.3.2/armv5tel-cacko-linux/lib -Wl,-rpath,/opt/arm/3.3.2/armv5tel-cacko-linux/lib -lSDL -lpthread
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so when searching for -lSDL
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libpthread.so when searching for -lpthread
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libpthread.a when searching for -lpthread
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libc.so.6 when searching for libc.so.6
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libc_nonshared.a when searching for libc_nonshared.a

then move the bin over to my Z and it cant run the binary obviously.

side note: anyone have an ipk of xkeymouse

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
help with sdk
« Reply #1 on: July 19, 2004, 10:34:15 am »
Did you source a script somewhere to set the PATH and various other env-vars (it used to be in /opt/arm/3.3.2/ I think)? It looks like you either didn't do this, or it didn't work.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #2 on: July 19, 2004, 10:45:58 am »
runzgcc.sh is what i ran and tried to compile with those enviorn vars set.

Code: [Select]
#!/bin/sh

export BASEDIR=/opt/arm/3.3.2

export X11DIR=$BASEDIR/armv5tel-cacko-linux/X11R6
export X11INC=$X11DIR/include
export X11LIB=$X11DIR/lib

export QTDIR=$BASEDIR/armv5tel-cacko-linux/qt
#export QMAKEDIR=$QTDIR/mkspecs
#export QMAKESPEC=linux-arm-g++
export PATH=$BASEDIR/bin:$QTDIR/bin:$X11DIR/bin:$PATH
export LD_LIBRARY_PATH=$BASEDIR/lib

export PKG_CONFIG_PATH=$BASEDIR/armv5tel-cacko-linux/lib/pkgconfig:$X11LIB/pkgconfig:$QTDIR/lib/pkgconfig

echo "pdaXrom cross developer tools v0.5"
echo "Type 'exit' for leave shell."
echo
echo

/bin/sh

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #3 on: July 19, 2004, 11:09:52 am »
Hi!
I don't know, how you started compiling...
If you used "make", do "LD=armv5tel-cacko-linux-gcc make" instead and it should compile fine.

grusz, jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #4 on: July 19, 2004, 11:52:47 am »
LD=armv5tel-cacko-linux-gcc make

gave the same output?

i must be doing something wrong.

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #5 on: July 19, 2004, 12:16:06 pm »
Could you write, what you did (step by step)?

Another possibility is, to edit the Makefile.. And to be sure, the binary is available, do the following:
Open the makefile in an editor.
Search for LD=
if the LD variable isn't set, add the following line:
LD=/opt/arm/3.3.2/armv5tel-cacko-linux/bin/gcc

then start compiling again, by doing "make"

If that doesn't work, please show me, what you've done excactly

grusz, jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
help with sdk
« Reply #6 on: July 19, 2004, 12:45:25 pm »
Quote
LD=armv5tel-cacko-linux-gcc make

What about:

LD=armv5tel-cacko-linux-ld make

???


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #7 on: July 19, 2004, 12:47:18 pm »
That should do the same as setting LD to gcc.
The problem is, that at the moment LD seems to be set as
/usr/i686-pc-linux-gnu/bin/ld

jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #8 on: July 19, 2004, 01:07:14 pm »
It looks like the script thats supposed to set the enviorn vars isnt working?
its using my gcc and make.conf settings i guess.
 exactly what i did
Code: [Select]
cd /opt
wget http://cacko.spy.org/downloads/pdaXrom-sdk-1.0.5.tar.bz2
tar jxf pdaXrom-sdk-1.0.5.tar.bz2
rm pdaXrom-sdk-1.0.5.tar.bz2
cd arm/3.3.2/
./runzgcc.sh
cd ~/
wget http://www.pdaxrom.org/downloads/misc/newvox-1.0.tar.gz
tar zxsfv newvox-1.0.tar.gz
rm newvox-1.0.tar.gz
cd newvox-1.0
//HERE IS MAKE PART
//I used the configure command from the tutorial
./configure --host=armv5tel-cacko-linux --build=i686-linux --x includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local
//all on one line of course
//then make
make
scp newvox root@ip:/root
//switch over to z
./newvox
//returns
cannot execute binary file

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #9 on: July 19, 2004, 01:12:36 pm »
What's the output of doing "file newvox"  on your PC?

jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #10 on: July 19, 2004, 01:14:52 pm »
also adding that path to the make file just created an error when i ran make

Code: [Select]
ipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libc_nonshared.a when searching for libc_nonshared.a
make: *** [newvox] Error 1

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #11 on: July 19, 2004, 01:15:56 pm »
Could you join #cacko on irc.freenode.net ?

thanks, jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #12 on: July 19, 2004, 01:16:32 pm »
Code: [Select]
file newvox

newvox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #13 on: July 19, 2004, 07:45:29 pm »
jabbath sorry about that earlier today Supervisor came breathing down my neck and had to end that shell. i tried those scripts copied over the file still dosnt run.
file output is same as above post. any more ideas why cross compiling isnt wanting to work out.

jabbath

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • http://
help with sdk
« Reply #14 on: July 19, 2004, 09:00:57 pm »
Do the following
Code: [Select]
# cd /opt
# rm -r arm
# wget http://cacko.spy.org/downloads/pdaXrom-sdk-1.0.5.tar.bz2
# tar xjvf pdaXrom-sdk-1.0.5.tar.bz2
# wget http://zaurus.spy.org/feeds/jabbath/pdaXrom
# mv pdaXrom /usr/local/bin;chmod +x /usr/local/bin/pdaXrom
# cd ~
# wget http://www.pdaxrom.org/downloads/misc/newvox-1.0.tar.gz
# tar xzvf newvox-1.0.tar.gz
# cd newvox-1.0
# wget http://zaurus.spy.org/feeds/jabbath/script
# reset;pdaXrom
Now your shell shoud look like this:
Code: [Select]
pdaXrom cross developer tools v0.5
Type 'exit' for leave shell.


sh-2.05b$
If it looks like this, do
Code: [Select]
# sh script
# make

If it doesn't look like this, look at the pdaXrom script (/usr/local/bin/pdaXrom) and copy the exports into the script file, then run "sh script&&make"

grusz, jabbath
Laptop: HP NX9005 Debian GNU/Linux sid
Zaurus:C760 pdaXrom - ASUS WL-110 - 256MB SD