Author Topic: Compiling on the Zaurus under Cacko  (Read 6682 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« on: July 06, 2004, 07:34:30 am »
Okay, this may seem a slightly reoccuring theme of mine. I would like to be able to compile files directly on my Zaurus...  I have found zgcc, installed it and have it working.

What other stuff do i need? The following files were mentioned to me, but where do i get them?  Well i have the zports version of SDL installed, so that should do. Can someone write a couple of files (links too?) that are needed for example to compile X stuff, SDL stuff, Qtopia stuff so that people can look here (including me!) and see exactly what they need to get.

Suggested to me where: libSDL, qte (qt/embedded), qpe (qtopia)

Thanks all.  
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #1 on: July 06, 2004, 08:51:21 pm »
If you already have pre-built binaries for sdl, qte and qpe (which you should have for the last two at least if you're running cacko), you will only need the headers.  These can be obtained from the source packages at libsdl.org (for SDL), and trolltech.com (for qte/qpe).  Other useful libraries are zlib and libpng.

My advice, however, is to setup an appropriate cross-compiling environment, as all these libraries can consume a LOT of space, and the actual compilation process can be memory/cpu intensive.

Dave

Ashitaka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • http://leiber.free.fr
Compiling on the Zaurus under Cacko
« Reply #2 on: July 07, 2004, 12:26:50 am »
Big programs can take hours to compile on correct computers, this means days on the Zaurus. And ususally you have a problem at the end of the compilation and find out that you have to run it all over again...
It is true that on-zaurus compilation can be tempting, but it really isn't that practical...
Zaurus SL-C760, SL-C860 and SL-6000
Sharp ROM 1.20 JP and pdaXrom RC8
512 MB SD Card, other memory, wireless and ethernet CF cards
www.nautilus6.org/operation/zaurus.html

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #3 on: July 08, 2004, 10:10:00 am »
Quote
Big programs can take hours to compile on correct computers, this means days on the Zaurus. And ususally you have a problem at the end of the compilation and find out that you have to run it all over again...
It is true that on-zaurus compilation can be tempting, but it really isn't that practical...
I disagree, compiling large programs maybe strategically done better on a fast desktop machine (I ssh into my debian from my Z in that case) but otherwise, unless you are in some kind of hurry, do it.  This is a 400MHz ARM based machine we are talking about, I ran a BSD/RISCOS RISC PC for ages as a development platform and that was only a 233 StrongARM, before that I was running GCC on an Acorn A7000, and before that an Acorn A3010, all ARM based and compared to the Z, only a fraction of the power.

When compiling, for playing (ahem!) and stuff I use my Z, if it's a beefy program or a port of something I scp the files to my Debian, ssh into it, compile (using a cross-compiler), scp it back and run.

I find the dev-img works very well on the Z, it's a pleasure to use and I find myself compiling in the strangest of places  
« Last Edit: July 08, 2004, 10:14:08 am by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #4 on: July 08, 2004, 10:29:03 am »
the dev-img link from sourceforge doesn't work at the moment from prdownloads?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #5 on: July 08, 2004, 10:37:34 am »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #6 on: July 08, 2004, 10:53:07 am »
thanks, that link works...
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #7 on: July 08, 2004, 11:34:40 am »
It was oh too easy to faff the install, by passing the wrong parameters, but once you get it working, it's not too bad.  You can build QT apps on it, which is quite nifty.  That with a cross compiler on the desktop and you're away!  If you do faff it the first few times, be sure to remove the superflous (spell check) entries from /etc/fstab. The image needs to be on a ext2 fs, I use a 64MB MMC, and it doesn't automount it after a reboot, so su to root and mount it.
« Last Edit: July 08, 2004, 11:36:49 am by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #8 on: July 08, 2004, 11:39:50 am »
padish while you're at it, did you find any instructions anywhere?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

Ashitaka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • http://leiber.free.fr
Compiling on the Zaurus under Cacko
« Reply #9 on: July 08, 2004, 11:42:03 pm »
Well you got a point, but I'm used to compiling some programs which really take a lot of time to compile on my desktop computer (P4 3GHz). And I had too many problems when trying to use the developpment image, maybe I should try again... But it also really does take some place on the Zaurus when you need to have many libraries and headers installed for compilation
Zaurus SL-C760, SL-C860 and SL-6000
Sharp ROM 1.20 JP and pdaXrom RC8
512 MB SD Card, other memory, wireless and ethernet CF cards
www.nautilus6.org/operation/zaurus.html

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #10 on: July 09, 2004, 09:36:35 am »
http://www.zaurususergroup.com/modules.php...Developer_Image

Setup instructions:
1. Unzip and copy contents of the file onto CF or SD card.
2. Run image_setup.sh script as root: image_setup.sh full_path_to_dev_image mount_point where "mount_point" is any folder, for exmaple /mnt/dev
3. When script finishes, relogin as zaurus

 
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #11 on: July 09, 2004, 10:05:01 am »
Quote
Well you got a point, but I'm used to compiling some programs which really take a lot of time to compile on my desktop computer (P4 3GHz). And I had too many problems when trying to use the developpment image, maybe I should try again... But it also really does take some place on the Zaurus when you need to have many libraries and headers installed for compilation
Yes but as I tried to explain, small programs, experimentation - the kind of things you may want to try when you suddenly get an idea on the toilet or in bed at 2AM, that's when the Z can be used, but if you're compiling something the size of GNOME's source, you'd want a big machine for that, with a cross compiler.  It's like anything, you can use the appropriate tool for the appropriate job. It's ALL good    
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #12 on: July 09, 2004, 11:53:32 am »
The simplest and fastest compile to set up on the zaurus that I've found is zzgcc (http://s91215199.onlinehome.us/zaurus/)

Only 2 files and they are cramfs so you can mount them on the Z rather than install anything, you only have to mount the zgcc cramfs manually once - after that use the mnt script provided to mount it.

I had problems with dev_img 1.3 , found zgcc and have never seen found anything better than it (although I haven't tried dev_img 1.5)

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #13 on: July 09, 2004, 12:35:56 pm »
Quote
The simplest and fastest compile to set up on the zaurus that I've found is zzgcc (http://s91215199.onlinehome.us/zaurus/)

Only 2 files and they are cramfs so you can mount them on the Z rather than install anything, you only have to mount the zgcc cramfs manually once - after that use the mnt script provided to mount it.

I had problems with dev_img 1.3 , found zgcc and have never seen found anything better than it (although I haven't tried dev_img 1.5)

Stu
Hi Stu, can you compile QT apps on it?
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Compiling on the Zaurus under Cacko
« Reply #14 on: July 10, 2004, 03:18:23 am »
Yep, has all the qt includes included

I just finished compiling tkcTrump on it as there were a couple of minor things I wanted to try - worked a charm.

Generally I use my cross-compiler set-up or the OE set-up I'm trying to get to compile with gcc-2.95 but its good to be able to test something on the Z - although it takes ages sometimes

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card