Author Topic: Compilers For The Zaurus  (Read 13316 times)

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Compilers For The Zaurus
« on: October 02, 2006, 03:50:21 pm »
Zaurus seems to lack straightforward tools for development.

This last couple of weeks I tried to compile an altered version of IRK (so that I could type Dvorak on my Targus and experiment with the layout).  I didn't get very far, though, because I couldn't figure out what I needed to set up a compiling environment in a timely manner.  I'm not even sure whether I could use Bitbake, or how to set up a non-2.95 cross-compiler (since I use OpenZaurus 3.5.4)!

It would be very nice if a tarball could be made that will set up all the needed tools immediately, all in one go, so that all that would be necessary would be to type something like
Code: [Select]
./configure
zmake

or something like
Code: [Select]
gcc-zaurus myprog.cppto cross-compile something for the Zaurus.

Furthermore, I would really like to be able to compile things in OpenZaurus directly, in an emulator, using a native compiler toolchain.  I know from experience that it is very discouraging to try to set up such an environment!  It would be really nice to be able to install a zaurus-compiler.ipk package that will give a hobbyist make, gcc, and so forth, the ability to try to compile whatever programs that tickles their fancy (particularly math programs in my case).

When I originally got my Zaurus, I looked forward to being able to do things like this.  It's a little frustrating that doing this is just out of my reach!  (But I still like my Zaurus; between Python and the fact that I can request something like this makes my Zaurus much closer to that ideal than a Palm or my old Windows-CE Cassiopeia!)
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Compilers For The Zaurus
« Reply #1 on: October 02, 2006, 03:53:34 pm »
pdaxriom is pretty close to what you have in mind. not sure about the 5500, though.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Compilers For The Zaurus
« Reply #2 on: October 02, 2006, 04:22:51 pm »
Quote
Zaurus seems to lack straightforward tools for development.

This last couple of weeks I tried to compile an altered version of IRK (so that I could type Dvorak on my Targus and experiment with the layout).  I didn't get very far, though, because I couldn't figure out what I needed to set up a compiling environment in a timely manner.  I'm not even sure whether I could use Bitbake, or how to set up a non-2.95 cross-compiler (since I use OpenZaurus 3.5.4)!

It would be very nice if a tarball could be made that will set up all the needed tools immediately, all in one go, so that all that would be necessary would be to type something like
Code: [Select]
./configure
zmake

or something like
Code: [Select]
gcc-zaurus myprog.cppto cross-compile something for the Zaurus.

Furthermore, I would really like to be able to compile things in OpenZaurus directly, in an emulator, using a native compiler toolchain.  I know from experience that it is very discouraging to try to set up such an environment!  It would be really nice to be able to install a zaurus-compiler.ipk package that will give a hobbyist make, gcc, and so forth, the ability to try to compile whatever programs that tickles their fancy (particularly math programs in my case).

When I originally got my Zaurus, I looked forward to being able to do things like this.  It's a little frustrating that doing this is just out of my reach!  (But I still like my Zaurus; between Python and the fact that I can request something like this makes my Zaurus much closer to that ideal than a Palm or my old Windows-CE Cassiopeia!)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142868\"][{POST_SNAPBACK}][/a][/div]

ipkg install gcc-symlinks binutils-symlinks make automake autoconf m4 libc6-dev

that wasn't too hard, right?
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Compilers For The Zaurus
« Reply #3 on: October 04, 2006, 11:08:02 am »
Quote
ipkg install gcc-symlinks binutils-symlinks make automake autoconf m4 libc6-dev

that wasn't too hard, right?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142874\"][{POST_SNAPBACK}][/a][/div]
I'll be sure to try this, as soon as I get an emulator up and running (or slowly shuffling forward, as my computer is rather old!).

Nonetheless, it would still be nice to have it all in a single gcc-eveything-you-need.ipk to make it obvious as to what needs to be installed! (In particular, it would be helpful for the poor soul--like me--who has to download the files and install them manually due to lack of Zaurus network access...although I personally will remedy that eventually.)

Similarly, it would still be nice to have a gcc-latest-cross-compiler.tar.gz (or even an .rpm and/or .deb) that would allow for easy cross-compile setup!  (Since I'd rather spend time compiling programs rather than trying to figure out how to set the compiler up!)
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Compilers For The Zaurus
« Reply #4 on: October 04, 2006, 11:44:54 am »
Quote
Quote
ipkg install gcc-symlinks binutils-symlinks make automake autoconf m4 libc6-dev

that wasn't too hard, right?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I'll be sure to try this, as soon as I get an emulator up and running (or slowly shuffling forward, as my computer is rather old!).

Nonetheless, it would still be nice to have it all in a single gcc-eveything-you-need.ipk to make it obvious as to what needs to be installed! (In particular, it would be helpful for the poor soul--like me--who has to download the files and install them manually due to lack of Zaurus network access...although I personally will remedy that eventually.)

ipkg install task-native-sdk

See [a href=\"http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?action=details&pnm=task-native-sdk]http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?a...task-native-sdk[/url] for its depencies

Quote
Similarly, it would still be nice to have a gcc-latest-cross-compiler.tar.gz (or even an .rpm and/or .deb) that would allow for easy cross-compile setup!  (Since I'd rather spend time compiling programs rather than trying to figure out how to set the compiler up!)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143058\"][{POST_SNAPBACK}][/a][/div]

Sounds like you want to use OpenEmbedded...
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Compilers For The Zaurus
« Reply #5 on: October 05, 2006, 09:15:30 am »
Quote
ipkg install task-native-sdk

See http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?a...task-native-sdk for its depencies

great! this is a big step forward. it will allow you to easily compile helloworld
« Last Edit: October 05, 2006, 09:16:04 am by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Compilers For The Zaurus
« Reply #6 on: October 06, 2006, 11:39:25 am »
Unfortunately, I haven't yet been able to try to install task-native-sdk; in particular, I'm finding that my computer is too slow for Zaurus emulation  and I haven't yet found the time to install it directly to my Zaurus.

Quote
Sounds like you want to use OpenEmbedded...
That's what I thought, but when I installed bitbake, things didn't work as I expected.  (I'm trying to compile the source of irk-0.11.0.tgz downloaded from the 3.5.4 feed).  Just today, I found myself trying to install other packages (texi2html and tmake) and am now getting missing qpe errors (I haven't yet figured out what package that is).

Things are made even more frustrating in that I'm generally doing this while I'm supposed to be studying!

I am somehow doing blatantly wrong, and blaming it on a "lack" of tools, when I'm just having a difficult time ferreting out the correct documentation.

(I still have a sense that it shouldn't be this complicated, though! especially if it's my fault that it's been so.)
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compilers For The Zaurus
« Reply #7 on: October 09, 2006, 06:51:22 am »
Quote
Just today, I found myself trying to install other packages (texi2html and tmake) and am now getting missing qpe errors (I haven't yet figured out what package that is).

It should all be built automatically for you when you issue (in your case): bitbake irk


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

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Compilers For The Zaurus
« Reply #8 on: October 09, 2006, 05:23:01 pm »
Quote
It should all be built automatically for you when you issue (in your case): bitbake irk
It took me a while to figure this out, but it should be bitbake irk-targus.  I had to google a little bit and look at stuff/org.openembedded.dev/packages to figure this out.

Nonetheless, I really appreciate the help!  It's taking a while, but bitbake is happily compiling now.
------------------------
Update:  bitbake didn't finish compiling.  It ran into an error, and put out the following output:
Code: [Select]
| make[2]: arm-linux-gcc-2.95: Command not found
| make[2]: *** [constants.h] Error 127
| make[2]: Leaving directory `/home/am9385/open_embedded/tmp/work/collie-linux/openzaurus-sa-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools'
| make[1]: *** [dep] Error 2
| make[1]: Leaving directory `/home/am9385/open_embedded/tmp/work/collie-linux/openzaurus-sa-2.4.18-rmk7-pxa3-embedix-r23/linux/arch/arm/tools'
| make: *** [archdep] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /home/am9385/open_embedded/tmp/work/collie-linux/openzaurus-sa-2.4.18-rmk7-pxa3-embedix-r23/temp/log.do_compile.18311
NOTE: package openzaurus-sa-2.4.18-rmk7-pxa3-embedix-r23: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package openzaurus-sa-2.4.18-rmk7-pxa3-embedix: failed
ERROR: Build of irk-targus failed
Do I need to install the gcc-2.95 compiler then?  It was my understanding that OpenZaurus had moved on to a later version of gcc.  (I'll have to check the documentation when I have the time.)
« Last Edit: October 11, 2006, 11:01:08 am by snowfarthing »
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

hvontres

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • http://
Compilers For The Zaurus
« Reply #9 on: October 15, 2006, 03:26:17 am »
Quote
Quote
ipkg install task-native-sdk

See http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?a...task-native-sdk for its depencies

great! this is a big step forward. it will allow you to easily compile helloworld
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143183\"][{POST_SNAPBACK}][/a][/div]
If you want to install task-native-sdk to a location other than root make sure to install the following on your root:
- sed
- grep
- gawk
- libgcc-s-dev

these packages don't relocate well...sed and gawk are really bad, since installing them in another location breaks ipkg-link  
[span style=\'font-size:10pt;line-height:100%\']Henry von Tresckow[/span]
--------------------------------------
SL-5600, OZ 3.5.4.2 (Hentges), Kernel 2.6.17 :)
1gb Kingston SD (ext2), 5Gb Seagate ST1 (3.03 Fw, fat32)
256 MB Kingston SD (ext2),256MB Viking CF,32MB CF (vfat),
homebuilt GPS unit (Based on RFMD RF 8000)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compilers For The Zaurus
« Reply #10 on: October 16, 2006, 05:24:23 am »
I've added this as a note in: http://wiki.openzaurus.org/HowTos/Native_Development

If anyone feels like updating this page now that task-native-sdk is available (removing some of the packages that it's suggested are installed, and listing those included in the task-native-sdk ipk explicitly) then please feel free.


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

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Compilers For The Zaurus
« Reply #11 on: October 16, 2006, 11:11:30 am »
Quote
Code: [Select]
| make[2]: arm-linux-gcc-2.95: Command not found
NOTE: package openzaurus-sa-2.4.18-rmk7-pxa3-embedix: failed
ERROR: Build of irk-targus failed
Do I need to install the gcc-2.95 compiler then?  It was my understanding that OpenZaurus had moved on to a later version of gcc.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143581\"][{POST_SNAPBACK}][/a][/div]

2.4.x sHarp kernels need gcc 2.95
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Compilers For The Zaurus
« Reply #12 on: November 02, 2006, 12:54:10 pm »
It helps to know why I need gcc-2.95, which is also why I should probably upgrade to 3.4.5.2-rc1.      (I've decided to wait for >1GB SD card support, though.)

Unfortunately, it turns out that I already have gcc-2.95 installed, which means that I'll now have to hunt down the problem when I get the chance!  (I think this process would be less frustrating if I had more time to devote to it.  As it is, it feels kindof weird to take a week to discover a problem, then another to solve it.)
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...