Author Topic: Memory Shortage When Compiling Inside X/qt  (Read 18595 times)

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Memory Shortage When Compiling Inside X/qt
« Reply #15 on: April 09, 2006, 07:39:06 am »
Code: [Select]
export TMPDIR=/mnt/card/.tmpand it no longer bombs out.


Where did you put that line? No matter where I put it, either before croot (i.e. .xintrc) or after croot (i.e. startd), it still bombs out.
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Memory Shortage When Compiling Inside X/qt
« Reply #16 on: April 09, 2006, 09:57:01 am »
That doesn't work. Just run it from the command prompt before starting make or configue or whatever.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Memory Shortage When Compiling Inside X/qt
« Reply #17 on: April 10, 2006, 01:48:12 am »
Quote
That doesn't work. Just run it from the command prompt before starting make or configue or whatever.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122390\"][{POST_SNAPBACK}][/a][/div]

Nope, that doesn't work either. (I mounted my sd card into the chroot env. Then point the TMPDIR to there as you described.)
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Memory Shortage When Compiling Inside X/qt
« Reply #18 on: April 10, 2006, 02:37:51 am »
Quote
Nope, that doesn't work either. (I mounted my sd card into the chroot env. Then point the TMPDIR to there as you described.)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122460\"][{POST_SNAPBACK}][/a][/div]
I don't understand why you're doing what you're doing?

Why are you setting TMPDIR after chroot? Why are you chrooting? Are you compiling in debian?

Anyhow, you must do this in Qtopia, i.e. run a console, and do this. Then you can mount bind the card to a chrooted location, then chroot and compile, if this is what you're doing.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Memory Shortage When Compiling Inside X/qt
« Reply #19 on: April 10, 2006, 10:11:41 am »
I understand this is an Qtopia problem. I works for me now after putting the following line in the .xinitrc
Code: [Select]
export TMPDIR=/mnt/card/tmp
su -c 'mount /dev/mmcda1 `cat /etc/debroot`/mnt/card'

Interesting enough, previously it didn't work for me as I mount bind the card to a chrooted location /mnt/sd instead of /mnt/card. Seems the mount points need to be coherent inside and outside chroot enviroment, which is beyond my expectation.
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

DoTheDog

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Memory Shortage When Compiling Inside X/qt
« Reply #20 on: July 19, 2006, 12:05:28 pm »
Resurrecting an old post. I've been trying to compile a relatively large C++ package native in Pocketworkstation and I keep getting the dreaded Memory Status thing coming up. If I leave it it will crash Pocketworkstation.

I have tried:

In qtopia terminal "export TMPDIR=/mnt/card/tmp" on a 512MB sd card for both root and zaurus. Then "xlauncher debian". Still bombs out.

Also,
Code: [Select]
export TMPDIR=/mnt/card/tmp
su -c 'mount /dev/mmcda1 `cat /etc/debroot`/mnt/card'
in /home/zaurus/.xinitrc
then "xlauncher debian" and it still doesn't work.

I even tried Shiroikuma's open and close qt apps but it takes a long time to do and it eventually bombs out.

Any ideas? help? Meanie?
Z sl-c3100, Planex GW-CF11X Wifi, Home made docking station (4 port powered hub, 60GB 2.5" HD, Belkin Wired USB 10/100 Ethernet card), Belkin F8T003 ver 2.11 BT USB Dongle
Stock Sharp ROM, Tetsu's special kernel v18b, Lots of stuff gleaned off of Meanie's Incredible Site! Debian PocketWorkstation.
Z2 sl-c1000, OZ 3.5.4.1 GPE - Trying to make it a PlutoHome Orbiter

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Memory Shortage When Compiling Inside X/qt
« Reply #21 on: July 20, 2006, 06:49:45 am »
Quote
In qtopia terminal "export TMPDIR=/mnt/card/tmp" on a 512MB sd card for both root and zaurus. Then "xlauncher debian". Still bombs out.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135768\"][{POST_SNAPBACK}][/a][/div]
What does echo TMPDIR say after you chroot?

Is the card accessible under debian, have you bind mounted it?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

DoTheDog

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Memory Shortage When Compiling Inside X/qt
« Reply #22 on: July 20, 2006, 08:20:10 am »
Hi Shiroikuma,
How do you bind it in chroot? when I do "echo $TMPDIR" it comes back blank in Pocketworkstation. I can see the card though.

DoTheDog

EDIT:
In qt I tried
"mount -o bind /mnt/card /hdd2/debroot/mnt/card"
and it still comes up blank in pocketworkstation.

Edit2:
Looks like the card is already mounted in debian. mount in qt gives:
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw,noatime)

So I tried export TMPDIR=/mnt/card/tmp in Pocketworkstation.
Now in chroot echo $TMPDIR, gives /mnt/card/tmp AND in qt I get the same, but I still get the Qt Memory status thing.

Help?
« Last Edit: July 20, 2006, 03:02:02 pm by DoTheDog »
Z sl-c3100, Planex GW-CF11X Wifi, Home made docking station (4 port powered hub, 60GB 2.5" HD, Belkin Wired USB 10/100 Ethernet card), Belkin F8T003 ver 2.11 BT USB Dongle
Stock Sharp ROM, Tetsu's special kernel v18b, Lots of stuff gleaned off of Meanie's Incredible Site! Debian PocketWorkstation.
Z2 sl-c1000, OZ 3.5.4.1 GPE - Trying to make it a PlutoHome Orbiter