OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Cross-compiling for the x11 ROM
enki
post Nov 29 2003, 09:27 PM
Post #1





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



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
Go to the top of the page
 
+Quote Post
lardman
post Nov 30 2003, 08:43 AM
Post #2





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
sashz
post Dec 7 2003, 11:32 PM
Post #3





Group: Members
Posts: 388
Joined: 7-December 03
Member No.: 1,058



cross tools package will ready soon... today probably smile.gif

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. smile.gif
Go to the top of the page
 
+Quote Post
enki
post Dec 8 2003, 08:05 AM
Post #4





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



how about an x11-includes.ipk for native compilation?
Go to the top of the page
 
+Quote Post
post Dec 8 2003, 09:31 AM
Post #5





Group:
Posts: 0
Joined: --
Member No.: 0



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
Go to the top of the page
 
+Quote Post
post Dec 8 2003, 09:36 AM
Post #6





Group:
Posts: 0
Joined: --
Member No.: 0



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.
Go to the top of the page
 
+Quote Post
sashz
post Dec 8 2003, 09:39 AM
Post #7





Group: Members
Posts: 388
Joined: 7-December 03
Member No.: 1,058



its was me
Go to the top of the page
 
+Quote Post
enki
post Dec 8 2003, 10:13 AM
Post #8





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



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 smile.gif 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?

tongue.gif
Go to the top of the page
 
+Quote Post
sashz
post Dec 8 2003, 11:50 AM
Post #9





Group: Members
Posts: 388
Joined: 7-December 03
Member No.: 1,058



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?

tongue.gif


1) you need swap file smile.gif
2) hmm.... logout from X and kill xdm smile.gif
Go to the top of the page
 
+Quote Post
enki
post Dec 8 2003, 11:53 AM
Post #10





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



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 tongue.gif
Go to the top of the page
 
+Quote Post
sashz
post Dec 15 2003, 06:00 AM
Post #11





Group: Members
Posts: 388
Joined: 7-December 03
Member No.: 1,058



crosscompiler for X11 ROM available from www.cacko.biz :-)
Go to the top of the page
 
+Quote Post
enki
post Dec 15 2003, 06:16 AM
Post #12





Group: Members
Posts: 35
Joined: 2-July 03
From: Str8 N0rth C4k4l4ky
Member No.: 232



YES!!!!!!!!!!!!!!! biggrin.gif
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 15 2003, 06:19 AM
Post #13





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



I think someones happy wink.gif
Go to the top of the page
 
+Quote Post
crazy-b
post Dec 15 2003, 07:16 AM
Post #14





Group: Members
Posts: 31
Joined: 10-December 03
Member No.: 1,129



Cherrs! I'm happy, too. Great work!
Go to the top of the page
 
+Quote Post
ScottYelich
post Dec 15 2003, 12:56 PM
Post #15





Group: Members
Posts: 992
Joined: 9-October 03
From: NYC
Member No.: 609



I'm going to download it now ...
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th November 2014 - 07:15 AM