Author Topic: Need help with setting up zgcc on cacko/crow ROM  (Read 3520 times)

gargoyle

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • http://
Need help with setting up zgcc on cacko/crow ROM
« on: February 09, 2004, 10:43:13 pm »
Does anyone have experience with using the cacko/crow ROM on an SL5500 who has successfully installed zgcc.

I\'m trying to work with the packages found at.
http://www.cacko.biz/index.php?showid=8&menuid=11

I tried the cross compiler, and it seems to compile my \"hello world\" app,
however when I moved it to the Zaurus I got the error: \"illegal instruction\"
I also compiled a basic X11 app, that compiled too, however on the zaurus I get: ... error while loading shared libraries: libX11.so.6 ... no such file or directory... mmm...  I thought the cacko ROM includes X11-devel    ... I\'m a newbie (to Linux too) so please help me out.
Is there someone who could help me set up, so I can get X11 up and running on my SL5500 and compile X apps for it?

I\'d also like to compile on the zaurus so I got the zgcc package at the address above.
Now in a Faq I ran across the not-too-verbose instructions:
\"Q: How do i setup gcc compiler on Zaurus?
A: Just copy zgcc-3.3.1.img from the feed to /home/root directory and reboot Zaurus. Then install needed packages and needed headers, also found in the feed \"

Could someone tell me what is supposed to happen after the reboot?
where is gcc supposed to be? it\'s not found from the command prompt.

All help is appreciated.
Many thanks
G.

fu-ga-zi

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Need help with setting up zgcc on cacko/crow ROM
« Reply #1 on: February 10, 2004, 10:21:18 am »
Gargoyle,

to get the zgcc pack runing you have to mount it (create a mount point first), as it is an image of a compressed cramfs:

mount -t cramfs /mnt/card/zgcc-3.3.1.img /usr/local/lib/arm -o loop

There are sources that suggest using a hidden mount point (starting with a dot) as the file thingy would not search it then.

Then expand your .profile resp .bashrc with these entries:

export ZGCCPATH=/home/root/usr/local/lib/arm/3.3.1                  # you can omit the \"/home/root\" portion if you like
export GCC_EXEC_PREFIX=$ZGCCPATH/lib/gcc-lib/arm-linux/3.3.1/
export COMPILER_PATH=$ZGCCPATH/bin:$ZGCCPATH/lib/gcc-lib/arm-linux/3.3.1/
export CPATH=$ZGCCPATH/include/
export LIBRARY_PATH=$ZGCCPATH/lib/:$ZGCCPATH/lib/gcc-lib/arm-linux/3.3.1/:/lib/:/home/QtPalmtop/lib/
export CPLUS_INCLUDE_PATH=$ZGCCPATH/include/g++-3/
export PATH=$ZGCCPATH/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ZGCCPATH/lib
ln -sf /lib/libc.so.6 /usr/lib/libc.so
ln -sf /lib/libm.so.6 /usr/lib/libm.so
ln -sf $ZGCCPATH/bin/libstdc++-3-libc6.1-2-2.10.0.so /home/QtPalmtop/lib/libstdc++-libc6.2-2.so.3

I\'m not sure about the last three entries, though, as I currently don\'t have the script on my Z, and the backup is at home, o check if they apply at all.

If you have enough space you could alos mount it to a different directory and copy its contents to /usr/local/lib/arm (if I remember correctly it continues then with 3.3.1/)

Some environments ae set up for this path. I was able to compile lout with this setup on a Cacko Qtopia ROM, and of course it also works with his X11 ROM.

Hope that helps.

Peter