OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => User Request for Applications => Topic started by: snowfarthing on October 02, 2006, 03:50:21 pm

Title: Compilers For The Zaurus
Post by: snowfarthing 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!)
Title: Compilers For The Zaurus
Post by: adf on October 02, 2006, 03:53:34 pm
pdaxriom is pretty close to what you have in mind. not sure about the 5500, though.
Title: Compilers For The Zaurus
Post by: koen 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?
Title: Compilers For The Zaurus
Post by: snowfarthing 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!)
Title: Compilers For The Zaurus
Post by: koen 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] (http://index.php?act=findpost&pid=142874\")
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...
Title: Compilers For The Zaurus
Post by: Meanie 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 (http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?action=details&pnm=task-native-sdk) for its depencies

great! this is a big step forward. it will allow you to easily compile helloworld
Title: Compilers For The Zaurus
Post by: snowfarthing 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.)
Title: Compilers For The Zaurus
Post by: lardman 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
Title: Compilers For The Zaurus
Post by: snowfarthing 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.)
Title: Compilers For The Zaurus
Post by: hvontres 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 (http://ewi546.ewi.utwente.nl/tmp/hrw/fb/?action=details&pnm=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  
Title: Compilers For The Zaurus
Post by: lardman on October 16, 2006, 05:24:23 am
I've added this as a note in: http://wiki.openzaurus.org/HowTos/Native_Development (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
Title: Compilers For The Zaurus
Post by: Hrw 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
Title: Compilers For The Zaurus
Post by: snowfarthing 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.)