Author Topic: Compiling Natively on PDAXROM  (Read 11576 times)

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Compiling Natively on PDAXROM
« Reply #30 on: November 09, 2004, 06:08:25 am »
is it not possible to use the cross compiler to compile octave,
sadly for me octave doesnt even compile in linux

tovarish

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #31 on: November 09, 2004, 06:20:17 am »
Try turning the optimisation down (to -O1, or get rid completely) then re-run that command by hand, then re-run 'make install'.

In any case, when cross compiling using the pdaXrom toolchain (which used to work BTW with the pdaXrom 1.0.0 version) you couldn't run 'make install' (obviously) so the next step had to be done by hand.

Take a look in an existing octave package (assuming you can find one since my site went down), or at a desktop install and work out the structure.


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

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #32 on: November 09, 2004, 06:20:34 am »
do you need gendoc ?

if not you can edit the Makefile so that it is not build.

you could try g++ -g -O2 -o gendoc dendoc.cc in a console or to cross compile it...
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #33 on: November 09, 2004, 06:28:10 am »
thanks all... i just saw what happened.... lack of memory. My Z just crapped out, killing bash....

going to create a swap.  What do the optimisations do? Are they for speed or for file size?
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.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #34 on: November 09, 2004, 06:38:44 am »
Damnit again! ;-)

Just mounted my microdrive as swap... and wiped it. grrr! now i have to compile, and make, and make install octave all over again.
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.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #35 on: November 09, 2004, 06:59:23 am »
For reference install is in the coreutils-extra package in the unstable feed.  

Also,To make a swap file for anyone else needing to:

cd /mnt/cf
dd if=/dev/zero of=swp.img bs=1k count=90000
mkswap swp.img
swapon /mnt/cf/swp.img

gives me a 90meg swap... (without erasing my microdrive!)
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.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #36 on: November 09, 2004, 07:01:47 am »
using distcc might be another option if you have ram problem
(and a linux box)
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #37 on: November 09, 2004, 07:05:30 am »
thanks pgas... i want to bull on and use just my Z... matter of principle to get it working at this stage. Also i don't want to go to the trouble of setting up my box on linux now... don't currently have the time, even with knoppix.
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.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #38 on: November 09, 2004, 07:30:47 am »
gendoc creates the documentation iirc; you probably don't need it.

That said, the octave Makefile setup is quite complex, so you're probably better off not trying to edit it out.


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

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Compiling Natively on PDAXROM
« Reply #39 on: November 09, 2004, 09:29:04 am »
man

fear omega with a root prompt!

Scott

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #40 on: November 09, 2004, 10:44:24 am »
8-)    It's still compiling from before..............!

I've also noticed that because of the microdrive that the battery barely charges through the usb cable... (according to the datasheet, my ibm 340meg cf microdrive takes 300ma when writing).
« Last Edit: November 09, 2004, 10:46:22 am by omega »
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.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #41 on: November 09, 2004, 02:44:51 pm »
My memory bar applet is currently across the taskbar onto the desktop, as in the red bar extends onto the desktop! Memory usage 151%..  Perhaps this should be listed as a bug?  LOL.

Still compiling...... had some problems earlier, had to restart...
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.

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #42 on: November 09, 2004, 03:19:27 pm »
Somebody who compiled octave can make an ipkg from it?
I really don't want to struggle with it if somebody already made it.

Simple steps (I use these steps to create ipk-s from natively compiled apps):
  • make a directory called (for example) ipkg_tmp
  • install the program with the "$ make DESTDIR=ipkg_tmp install" command
  • make a control file as it is described here
  • strip the debug info from the binaries: "$ strip -g -S -d --strip-debug <binary name>"
  • do a "$ mkipkg ipkg_tmp"
  • upload the package in the unstable feed or request account from Laze to it.
Thank you in advance,
Zumi
« Last Edit: November 09, 2004, 03:49:17 pm by Zumi »
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #43 on: November 10, 2004, 05:54:11 am »
Zumi - AFAIK there isn't one available for RC5, hence i'm trying to compile. I was using one of lardmans one on cacko, no bothers but i think i got a undefined symbol on RC5.

Next, can lardman (or someone else who's around and knows) what is meant by this:

Quote
lardman: In any case, when cross compiling using the pdaXrom toolchain (which used to work BTW with the pdaXrom 1.0.0 version) you couldn't run 'make install' (obviously) so the next step had to be done by hand.

What is the next step that can be done by hand.  Last night when the compile finished (without any errors) there was no octave file and the octave symlink that was there before disappeared.  Octave-2.1.57

Next, i removed all the crap i could find from octave, and unpacked octave-2.1.59. I entered the command  ./configure ; make (the one with the flags in the install.octave file to remove all the debugging symbols (to try something different)) ; make install.  

I woke up this morning to find it still looping around the liboctave directory compiling, having never gotten to make install as there were no octave files placed on the system  (/usr/local...)

Can someone please advise? It's starting to get annoying.  I would suggest that the compile system is working okay as i compiled bison, flex, m4, lbreakout2, gputils, dosbox (omg! i just tested this after i wrote it...  dosbox works?!? no image needed?)...   As i said i'm using fort77, and perl for my fortran compiler...   The tests for it work grand, and the only thing is that octave doesn't find any fort77 libraries (they are not in the source file), but the fortran files appear to be created without any warnings).
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.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #44 on: November 10, 2004, 06:44:58 am »
Quote
What is the next step that can be done by hand

Manually copying the files to the appropriate locations on the Z (or to a directory structure which can be made into an ipk). However I note that Zumi has given a method which might allow 'make install' to work (and something like this is done with OE so it must be possible somehow).

Quote
Last night when the compile finished (without any errors) there was no octave file and the octave symlink that was there before disappeared

It should be in the bin directory (in the source directory), or perhaps it's in the /src directory. Try searching by modification date.

Quote
I woke up this morning to find it still looping around the liboctave directory compiling

It takes a long time to compile; hence my suggestion to use a cross-toolchain on a fast computer (and it takes a fair while there too!).

Quote
the only thing is that octave doesn't find any fort77 libraries (they are not in the source file), but the fortran files appear to be created without any warnings).

You can specify this location by passing a flag to configure (try ./configure --help).


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