OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: enki on November 30, 2003, 12:27:13 am

Title: Cross-compiling for the x11 ROM
Post by: enki 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
Title: Cross-compiling for the x11 ROM
Post by: lardman 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
Title: Cross-compiling for the x11 ROM
Post by: sashz 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.
Title: Cross-compiling for the x11 ROM
Post by: enki on December 08, 2003, 11:05:01 am
how about an x11-includes.ipk for native compilation?
Title: Cross-compiling for the x11 ROM
Post by: Anonymous 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 (http://linux.cacko.biz/~sash/feed/xrom-devel_4.3.0_arm.ipk)
Title: Cross-compiling for the x11 ROM
Post by: Anonymous 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.
Title: Cross-compiling for the x11 ROM
Post by: sashz on December 08, 2003, 12:39:42 pm
its was me
Title: Cross-compiling for the x11 ROM
Post by: enki 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?

Title: Cross-compiling for the x11 ROM
Post by: sashz 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  
Title: Cross-compiling for the x11 ROM
Post by: enki 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
Title: Cross-compiling for the x11 ROM
Post by: sashz on December 15, 2003, 09:00:08 am
crosscompiler for X11 ROM  available from www.cacko.biz  :-)
Title: Cross-compiling for the x11 ROM
Post by: enki on December 15, 2003, 09:16:03 am
YES!!!!!!!!!!!!!!!
Title: Cross-compiling for the x11 ROM
Post by: Foxdie on December 15, 2003, 09:19:17 am
I think someones happy
Title: Cross-compiling for the x11 ROM
Post by: crazy-b on December 15, 2003, 10:16:07 am
Cherrs! I\'m happy, too. Great work!
Title: Cross-compiling for the x11 ROM
Post by: ScottYelich on December 15, 2003, 03:56:42 pm
I\'m going to download it now ...
Title: Cross-compiling for the x11 ROM
Post by: offroadgeek on December 16, 2003, 05:55:14 pm
fyi - I\'ve mirrored the Cross gcc-3.3.1 and Native gcc-3.3.1 in the ZUG downloads section...