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

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« on: November 05, 2004, 08:53:29 am »
Hi, I started another thread months ago about compiling stuff under Cacko but here we go for pdaxrom (current version RC5)

I have compiling some things easily with the dev img... However other stuff seems to want an endless stream of depends that always want something else as well!

My first tip to us all that want to compile but just need some tips is from one of lardmans posts:

Quote
Octave is 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. 

I was not aware of the --host=arm-linux requirement.

I think that anyone else with tips / problems should post together making it easier for us all to become familiar with the problems that arise and their template solutions thus creating a wider availability of compiled programs for all.  If a body of information develops here, i suggest that it then be turned into a FAQ.  If such a faq exists, i apologise and could i humbly be pointed in the direction of such!
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.

philo

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #1 on: November 05, 2004, 09:49:21 am »
i'd like to have that info as well.  i've never tried to compile anything for the zaurus before, and i'd really like to get evolution compiled to see if it's feasible to be running it on the z.  so please give us any tips and pointers you have.

philo
c760 | pdaxrom 1.1.0 rc9.1
symbol spectrum24 wifi | sdg aerlink for motorola v66
pny 512mb sd

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #2 on: November 05, 2004, 09:57:12 am »
Actually the --host=arm-linux is only needed to cross-compile (perhaps I misread the thread where I originally replied).

Octave should compile natively without any configure switches.


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 Natively on PDAXROM
« Reply #3 on: November 05, 2004, 10:00:41 am »
Ah.   I'm having problems with no mkoctfile....  where do i get? I found it before somewhere.

Another tip to people: i used to use my sd card for compiling stuff (vfat)... today i'm using a samba share to my windows 2000 machine.  Let's me keep a load of stuff there...
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 #4 on: November 05, 2004, 10:23:28 am »
Quote
Ah. I'm having problems with no mkoctfile.... where do i get? I found it before somewhere.

It comes in the tarball (or is created by the configure script or main Makefile).


Si

Edit: I just read that you're using a Windows machine to hold the files - I wonder if you're actually having a permissions problem, mkoctfile should be in the same directory as the configure script.
« Last Edit: November 05, 2004, 10:25:25 am by lardman »
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 Natively on PDAXROM
« Reply #5 on: November 05, 2004, 11:43:31 am »
Lardman - sorry i was using an older version of octave. got 2.1.57....  it configures without a problem.   says found f2c but not libf77.a?  

when i type make then it craps out immediately.. What options can i pass to make??

got readline installed...

I went to make bison for it, that wants m4, when i go to compile m4 it wants autoconf, when i go to compile autoconf it wants m4....  yawn -please help.
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 #6 on: November 05, 2004, 12:08:19 pm »
bison is in the stable feed ... (m4 also)
« Last Edit: November 05, 2004, 12:09:52 pm by pgas »
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #7 on: November 05, 2004, 12:14:41 pm »
pgas - i thought that too...

but neither are listed under www.pdaxrom.org/feed
/unstable


or in the website list....
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 #8 on: November 05, 2004, 12:23:17 pm »
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #9 on: November 05, 2004, 12:28:52 pm »
thanks pgas
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.

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
Compiling Natively on PDAXROM
« Reply #10 on: November 05, 2004, 01:13:16 pm »
I've also been trying to get the this to work.. so I downloaded the octave source (same version as omega used) so that I can compare apples to apples.

I thought I had gcc and gcc-headers installed (the package manager said they were), but I kept getting errors on no gcc.  So I reinstalled them, and now I'm getting this error:

Code: [Select]
checking for C compilor default output file name... configure: error: C compiler cannot create executables
am I missing any other packages that need to be installed?
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Compiling Natively on PDAXROM
« Reply #11 on: November 05, 2004, 03:41:38 pm »
I applogize for the feed confusion - hopefully we soon can make the final 1.1.0 and get "rid" of the old version. And at the same time i will hopefully get my own server setup with much better developer stuff.
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

blakeyez

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #12 on: November 05, 2004, 03:44:21 pm »
Quote
used to use my sd card for compiling stuff (vfat)... today i'm using a samba share to my windows 2000 machine.

Using a fat-based file system (including a samba share) is bound to cause you no end of headache when compiling.  Many build scripts, etc, depend on the ability to use symbolic links, unix file permissions, etc, which will often break on FAT filesystems.  Your best bet if you want to do a network-mounted drive is NFS...

You may not have had any problems yet, but I can almost guarantee that you will if you start trying to build more packages.

Dave

gretchen

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • http://www.gretchenann.com
Compiling Natively on PDAXROM
« Reply #13 on: November 05, 2004, 06:45:03 pm »
Is it better to install gcc make etc from the feed or to download the sdk?  What's the difference?
Zaurus SL-3200 Being Shipped
AmbiCom WL1100C Wireless Card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #14 on: November 07, 2004, 07:19:15 am »
Quote
Lardman - sorry i was using an older version of octave. got 2.1.57.... it configures without a problem. says found f2c but not libf77.a?

If you use f2c, you require the run-time libs which are provided (iirc) by libf77.a/so.

That said, the Octave compile used to fall over when I tried it with f2c; I'd use f77 if I were you.


Si

P.S. Why not use the cross toolchain (it's very simple)? This compile takes quite a while...
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