Author Topic: Cross-compiling for the x11 ROM  (Read 7199 times)

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« on: November 30, 2003, 12:27:13 am »
i dont know about you guys, but i am personally VERY interested in compiling some more apps for this cacko rom ... cuz i dunno about you, but the other roms are way less cool. (cacko-upd17 english is good and stable, but apps are BLAH, oz is unstable as shit (ie when syslog jumps to front on top of opie, you know it\'s got issues)) ... so i really want to build more apps for the cacko-x11 rom, maybe get something of a feed with a decent selection of apps...

just a few problems...

there isnt much out there in the way of cross-compiling for embedded linux/x11 ...
 i\'ve done some experimenting trying to cross-compile some packages, and ran into ld erroring out because the library objects it\'s supposed to link against (.so/.a) are always built for x86 ...

look on the net and you\'ll find next to nothing, with the exception of some stuff i found on handhelds.org (http://www.handhelds.org/minihowto/building-x-clients.html). but if someone would come forward with some information, i would be much obliged.

my best guess is that im supposed to build my own set of these various libraries ...

obviously this is a pretty daunting task ... someone mustve done it already, as far as i can tell (sash comes to mind) .. i wonder what exactly they would have done ... and do you think sash or someone will release a cacko-x11 cross-compile kit?

heck ill put one together myself...i just dont know where to start...you would have to practically build an entire system yourself to get all of the dependencies down ...

any ideas would be greatly appreciated
Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Cross-compiling for the x11 ROM
« Reply #1 on: November 30, 2003, 11:43:08 am »
Surely you\'ve already got all of the libs on your Z...? The thing you may not have are the include files. Take a look at your native compiler and how its directory structure is arranged, then create the same sort of structure in your cross chain (need to add in an X11 or XFree directory under lib or something like that, and stick the X libs in it).


Simon
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

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #2 on: December 08, 2003, 02:32:14 am »
cross tools package will ready soon... today probably

for native compilation:

copy zgcc-3.3.1.img to /home/root or on card and create symlink to /home/root/zgcc-3.3.1.img, than reboot Z.
install *-devel*.ipk with headers (i install it on card or network nfs disk). All ready.
unpack need sources - and ./configure and|or make
some sources will need another libs, so compile it from sources too.

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #3 on: December 08, 2003, 11:05:01 am »
how about an x11-includes.ipk for native compilation?
Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

Anonymous

  • Guest
Cross-compiling for the x11 ROM
« Reply #4 on: December 08, 2003, 12:31:26 pm »
Quote
how about an x11-includes.ipk for native compilation?

in feed:

http://linux.cacko.biz/~sash/feed/xrom-dev...l_4.3.0_arm.ipk

Anonymous

  • Guest
Cross-compiling for the x11 ROM
« Reply #5 on: December 08, 2003, 12:36:51 pm »
also
i install devel files on network nfs disk or cf/sd card, so internal memory free, and when gcc not need, just eject card or unmount nfs.

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #6 on: December 08, 2003, 12:39:42 pm »
its was me

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #7 on: December 08, 2003, 01:13:16 pm »
thanks alot sash, your contributions will not go unheard...

so speaking a compiling issue for the Z, im trying to native compile visualboyadvance (my favorite emulator along with snes9x  and im getting a compile error that says something like:

cc1plus: out of memory allocating 31766328 bytes after a total of 3707068 bytes

so im guessing this error is a result of me running out of ram? what could i possibly do to correct the issue? a swap partition on my CF card? try to run it out of X from console... speaking of which, is there a way to get back to the console, outside of x11?

Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #8 on: December 08, 2003, 02:50:40 pm »
Quote
cc1plus: out of memory allocating 31766328 bytes after a total of 3707068 bytes

so im guessing this error is a result of me running out of ram? what could i possibly do to correct the issue? a swap partition on my CF card? try to run it out of X from console... speaking of which, is there a way to get back to the console, outside of x11?


1) you need swap file
2) hmm.... logout from X and kill xdm  

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #9 on: December 08, 2003, 02:53:58 pm »
how do you kill xdm? i couldnt get ctrl+alt+backspace to work ...

i tried just killing the processes from aterm...when i killed xdm then logged out, it locked me into the \"blank\" x11 screen with no cursor movement... ie froze ... i tried killing xdm then killing X, and that just froze the zaurus in place ...
hmmm

updatE: btw it was TOTALLY a coincidence that i happened to post 3 mins after sash
Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #10 on: December 15, 2003, 09:00:08 am »
crosscompiler for X11 ROM  available from www.cacko.biz  :-)

enki

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #11 on: December 15, 2003, 09:16:03 am »
YES!!!!!!!!!!!!!!!
Sharp SL-C760
Cacko-X11 13Dec03
256 MB Sandisk CF
64 MB Sandisk CF

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Cross-compiling for the x11 ROM
« Reply #12 on: December 15, 2003, 09:19:17 am »
I think someones happy
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

crazy-b

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Cross-compiling for the x11 ROM
« Reply #13 on: December 15, 2003, 10:16:07 am »
Cherrs! I\'m happy, too. Great work!
C760 | Sandisk 256MB SD | Sandisk CF WLAN

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Cross-compiling for the x11 ROM
« Reply #14 on: December 15, 2003, 03:56:42 pm »
I\'m going to download it now ...