Author Topic: help with sdk  (Read 6364 times)

nianderson

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
help with sdk
« Reply #15 on: July 19, 2004, 09:08:20 pm »
Yeah i did that it changed my shell but i still get
Code: [Select]
sh-2.05b# make
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"newvox\" -DVERSION=\"1.0\"  -I. -I.     -g -O2 -I/opt/arm/3.3.2/armv5tel-cacko-linux/include/SDL -D_REENTRANT -MT newvox.o -MD -MP -MF ".deps/newvox.Tpo" \
  -c -o newvox.o `test -f 'newvox.c' || echo './'`newvox.c; \
then mv ".deps/newvox.Tpo" ".deps/newvox.Po"; \
else rm -f ".deps/newvox.Tpo"; exit 1; \
fi
gcc  -g -O2 -I/opt/arm/3.3.2/armv5tel-cacko-linux/include/SDL -D_REENTRANT  -Wl,-rpath-link,/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib -o 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.2/../../../../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.2/../../../../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.2/../../../../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.2/../../../../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.2/../../../../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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
help with sdk
« Reply #16 on: July 20, 2004, 06:31:26 am »
Try running 'export' and see what PATH says.

Then, assuming it has worked okay, you need to look at which path the shell script is trying to put on the front. For my toolchain I set various env vars:

CC=arm-linux-gcc
CXX=arm-linux-g++
CCX=arm-linux-gcc
CXXX=arm-linux-g++
COMPILER=arm-linux-gcc
LINKER=arm-linux-g++
G77=arm-linux-g77
F77=arm-linux-g77
PATH=/usr/local/arm/3.3.2/bin:/usr/local/arm/3.3.2/arm-linux/bin:$PATH

Now I've also added /usr/local/arm/3.3.2/arm-linux/bin which contains (for example) a file called gcc which is linked to ../../bin/arm-linux-gcc and the same for the rest. This means that even if the compiler just tries to call gcc, it'll get the cross toolchain version.

It looks like your script only adds the one containing the commands with prefixes (like arm-linux-gcc, etc.) to the path, this means that when make tries to call gcc, it'll get your default version.

Therefore, either edit the script to add the extra bin directory, or set the CC, CXX, etc. env vars in the script (and they will/should be picked up in the configure and Makefile scripts).

Regards,


Simon
« Last Edit: July 20, 2004, 06:32:45 am by lardman »
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 #17 on: July 20, 2004, 10:02:52 am »
Hi  
lardman:
We solved the problem over irc.
The configure script didn't work right, so the Makefile had to be edited
GCC = armv5tel-cacko-linux-gcc
instead of
GCC = gcc
and
LDFLAGS = [...] -L/usr/X11R6/lib [...]
replaced, by
LDFLAGS = [...] -L/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib [...]

i think, that was all... have been a bit dizzy yesterday... (solved the problem at about 2am)

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

fabianE

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
help with sdk
« Reply #18 on: August 26, 2004, 04:57:30 pm »
Hello,

I also tried to get the sdk 1.05 newvox sample to compile.

I got the same error as mentioned in this thread and then changed the CC to your suggestion. Now I have a new error:

/opt/arm/3.3.2/lib/gcc-lib/armv5tel-cacko-linux/3.3.2/../../../../armv5tel-cacko-linux/bin/ld: warning: libX11.so.6, needed by /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so, not found (try using -rpath or -rpath-link)
/opt/arm/3.3.2/lib/gcc-lib/armv5tel-cacko-linux/3.3.2/../../../../armv5tel-cacko-linux/bin/ld: warning: libXext.so.6, needed by /opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so, not found (try using -rpath or -rpath-link)
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMProtocols'
/opt/arm/3.3.2/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMIconName'
and more undefined references.

My LDFLAGS was empty, adding the LDFLAGS = [...] -L/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib [...] didn't help.

Any ideas?

With best regards,

Fabian