Author Topic: "make Install" In Pdax86 Fails?  (Read 2490 times)

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
"make Install" In Pdax86 Fails?
« on: May 03, 2007, 11:00:12 pm »
the /usr folder is read-only and not mounted in the RW "lazydisk", how can i install things ??
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
"make Install" In Pdax86 Fails?
« Reply #1 on: May 03, 2007, 11:04:14 pm »
'make DESTDIR=/x/y/z install'?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
"make Install" In Pdax86 Fails?
« Reply #2 on: May 03, 2007, 11:15:09 pm »
but what if its a Library ?? will it work-in with the system and other apps installed that way ?? (or ./configure --prefix=DESTDIR)
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
"make Install" In Pdax86 Fails?
« Reply #3 on: May 03, 2007, 11:20:22 pm »
Quote
but what if its a Library ?? will it work-in with the system and other apps installed that way ?? (or ./configure --prefix=DESTDIR)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160413\"][{POST_SNAPBACK}][/a][/div]
First you do your ./configure --prefix=/usr (or wherever you want it INDEPENDENT OF WHERE YOU WANT TO INSTALL IT FOR PACKAGING), then you make it, then make DESTDIR=/x/y/z install ('z' is usually a dir called Data), which will add /x/y/z to the prefix FOR THIS INSTALL ONLY.

So if you had /usr/lib/x.so and you make DESTDIR=/x/y/z install'd it, you would have dir /x/y/z/usr/lib/x.so, but the prefix would still be /usr, if that makes sense, so when you turn the stuff in /x/y/z into a data.tar.gz file, it will install/uninstall correctly.

Hope that makes enough sense and isn't TOO repetitive. It's late...
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
"make Install" In Pdax86 Fails?
« Reply #4 on: May 03, 2007, 11:25:01 pm »
Quote
but what if its a Library ?? will it work-in with the system and other apps installed that way ?? (or ./configure --prefix=DESTDIR)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160413\"][{POST_SNAPBACK}][/a][/div]

are you trying to cross compile something for your Zaurus or compiling natively for pdaX86?

you don't want to put your arm libraries under /usr/lib on your X86 system anyway... and if you want to compile for X86, you are better off extracting the pdaX86 system into VMware and run the whole thing there and you can mount your partitions rw and allocate as much space as you want...
if you are booting off the pdaX86 cdrom, then there is an option to save your changes to the first parition of your harddisk on the PC, but that option didn't work properly in the earlier versions of pdaX86 which you are probably using...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
"make Install" In Pdax86 Fails?
« Reply #5 on: May 03, 2007, 11:37:11 pm »
Meanie: both, initially im trying to compile naitvely for pdax86, to test and also while waiting for cross-sdk to dl ...

i did do the setup thingy and it work but doesnt include /usr in the list of directories it "saves"

can i use some of the later versions of pdax86 with 5500 cross sdk or do i need the image from that "tree".

can i get mroe info about the vmware extraction, ive used vm before and it sounds good, as then i dont need to be rebooting to do compiling  (and i can have full RW system ??)

ps- i was going to write before reading your post meanie about capn's, that you could install your libraries some where RW and the when you compile your apps, specify that location for the libraies they need, but itd be some more work and possibly prone to problems...

ALSO : CAN i test/exec arm compile binaries within pdax86 ?>
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
"make Install" In Pdax86 Fails?
« Reply #6 on: May 04, 2007, 12:57:16 am »
Quote
Meanie: both, initially im trying to compile naitvely for pdax86, to test and also while waiting for cross-sdk to dl ...

i did do the setup thingy and it work but doesnt include /usr in the list of directories it "saves"

can i use some of the later versions of pdax86 with 5500 cross sdk or do i need the image from that "tree".

can i get mroe info about the vmware extraction, ive used vm before and it sounds good, as then i dont need to be rebooting to do compiling  (and i can have full RW system ??)

ps- i was going to write before reading your post meanie about capn's, that you could install your libraries some where RW and the when you compile your apps, specify that location for the libraies they need, but itd be some more work and possibly prone to problems...

ALSO : CAN i test/exec arm compile binaries within pdax86 ?>
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160417\"][{POST_SNAPBACK}][/a][/div]

The cross sdk does not depend on a specific linux OS, but it would help to have one that has all the packages installed that it needs/depends on. I have tried both pdaX86 and DSL (damn small linux) and mainly used DSL for cross compiling since pdaX86 wouldn't boot in all of my laptops whereas DSL did.

If i remember correctly, there is a pre-made pdaX86 image for vmware which should work fine.

You will always run into problems with libraries and executables when cross compiling. Some programs compile their own little build utilitisies and run them to generate more stuff, ie mplayer and firefox, which will cause some troubles cross-compiling...
In general, if a program depends on some libraries, you will need to cross compile those libraries and place them somewhere where the cross compiler can access them, but pdaX86 should not load/run them since its the wrong architecture for pdaX86. pdaX86 cannot run arm binaries

There is however a arm emulator written for linux (search for vm-arm-se) which runs on debian 3.0 and suse 9.2 which you could potentially use to test command line binaries with, but that emulator was written primarily for testing Sharp ROM (Qtopia) binaries which use hard float rather than soft-vfp and also the glibc version is slightly different...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K