Author Topic: Compiling Octave on RC5  (Read 3780 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Octave on RC5
« on: October 11, 2004, 09:03:48 am »
Can someone please help me getting a fortran compiler or f2c installed on pdaxrom? i can't seem to understand how to get f2c working, do i compile it?
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 Octave on RC5
« Reply #1 on: October 11, 2004, 09:45:18 am »
i got it working... now complaining no readline support...
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 Octave on RC5
« Reply #2 on: October 11, 2004, 10:58:19 am »
Octave never used to like being compiled with f2c.

I'm pretty sure the pdaXrom toolchain had f77 (presuming that you're talking about pdaXrom rc5 here).

You'll need libncurses, libreadline (otherwise editing the commands is painful) and GCC 3.xx for v.2.1.57


Si

P.S. Slightly OT: I have this compiling fine in OE, but am having troubles packaging it (because I don't understand much about .oe files yet...)
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

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Octave on RC5
« Reply #3 on: October 12, 2004, 09:52:39 am »
Can you please tell me what i need to do with the onboard toolkit gcc.img to set it up properly? I understand about -t cramfs with mount but what else? I love compiling but it's a pain to get around everything. I have gnuplot working lovely from source but still struggling in RC5 with OCTAVE 2.1.57
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 Octave on RC5
« Reply #4 on: October 12, 2004, 12:38:45 pm »
Might work, depends on your version of libc:

http://sgp.zaurii.net/binaries/octave_2.1....rm4_libc2.2.ipk


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

vputz

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Compiling Octave on RC5
« Reply #5 on: November 02, 2004, 10:57:35 pm »
Incidentally, the latest OpenEmbedded has Octave in it; I did a build using OpenZaurus 3.5.1 and installed Octave to my SL-5000D, and the darn thing works.  Of course, visualization isn't there yet, but it at least works, which is impressive enough to me...

-->VPutz

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Octave on RC5
« Reply #6 on: November 03, 2004, 06:39:38 am »
Quote
Incidentally, the latest OpenEmbedded has Octave in it; I did a build using OpenZaurus 3.5.1 and installed Octave to my SL-5000D, and the darn thing works. Of course, visualization isn't there yet, but it at least works, which is impressive enough to me...

I know, I submitted it via Mickeyl (actually it's a trivial .oe file, no changes needed at all, so it's not all that impressive ;-)).

Glad it works; next stop R....


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

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Octave on RC5
« Reply #7 on: November 04, 2004, 06:50:21 am »
i'm pretty sure that i tried that before lardman... it used to work in cacko, but it was complaining about a symbol or something (does it not need to be recompiled for the vector floating point?)
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.

vputz

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Compiling Octave on RC5
« Reply #8 on: November 04, 2004, 09:51:03 am »
> next stop R....

Hmm... maybe GnuPlot and friends could use the assistance earlier, so I could also PLOT from Octave!  (or I could just be missing something there).

R looks useful too, of course.  I've just never used it.  (let's face it, I've barely used Octave, but since I'm teaching a computational physics class next semester in Matlab, having a mostly-compatible language like Octave on the ol' Z sounds like a good plan...)

-->VPutz

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Octave on RC5
« Reply #9 on: November 04, 2004, 10:18:23 am »
vputz - I got gnuplot to compile very easily.... so that means if you're using pdaxrom rc5 there's not much more to making it compile than getting the source... and typing ./configure and make i think on your zaurus.    

i haven't used it much either, but i used gnuplot and octave on cacko and when i threw some 3d waveform files i had from matlab it did them all... should be even faster now in pdaxrom with the vector floating point.
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 Octave on RC5
« Reply #10 on: November 04, 2004, 12:03:51 pm »
Quote
Hmm... maybe GnuPlot and friends could use the assistance earlier, so I could also PLOT from Octave! (or I could just be missing something there).

what's the problem? If you;re using an X based ROM then it works fine, it also works with XQt, or spit out the graph to a png and display it, or use QtPlot which is a Qt frontend to gnuplot.

All this is on the forum already, try a search for gnuplot.

For example: https://www.oesf.org/forums/inde...1458&hl=gnuplot


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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Octave on RC5
« Reply #11 on: November 04, 2004, 12:06:26 pm »
Quote
i'm pretty sure that i tried that before lardman... it used to work in cacko, but it was complaining about a symbol or something (does it not need to be recompiled for the vector floating point?)

Yes probably. Octave it actually very easy to compile (no configure switches required other than --host=arm-linux; needs GCC 3.xx though), so assuming you have a pdaXrom toolchain setup go for it. The OZ version won't work for you as it uses a later version of libc.


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