Author Topic: Porting Applictions  (Read 11119 times)

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« on: December 03, 2005, 01:10:47 am »
I have the rc10 verison for the sl-5500 working pretty well but i was wondering what is involved in porting applications over to it. Is it a matter of just recompiling or do they need recoded. I really need to figure out how to setup mouse clicks. Ive read that xmonobut will do what i want but theres no version in the rc10 feed for the sl-5500. Can i use packages for the OZ feeds? Any suggestions would be greatly appriceated.
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Porting Applictions
« Reply #1 on: December 05, 2005, 03:13:12 am »
Quote
i was wondering what is involved in porting applications over to it. Is it a matter of just recompiling or do they need recoded

It depends, most of the time it's just a matter of recompiling.
Some applications doesn't like the arm architecture, some needs some tweaking of the configure script/Makefile especially if you are cross compiling.

Quote
I really need to figure out how to setup mouse clicks.

you can also use xmodmap to modify the button like this :
Code: [Select]
xmodmap -e "pointer 1 2 3"
xmodmap -e "pointer 2 3 1"
xmodmap -e "pointer 3 1 2"

each line will set the "left click" to button 1 2 3 respectively.

not  a definitive solution I agree.
recompiling xmonobut is probably better.


Quote
Can i use packages for the OZ feeds? Any suggestions would be greatly appriceated.
probably no, OZ use newer glibc
« Last Edit: December 05, 2005, 03:14:17 am by pgas »
SLC-860 cacko / senao wifi

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #2 on: December 09, 2005, 12:59:28 am »
Are there any tutorials on how to recompile programs? Do i compile them on the sl-5500 or can i compile them on my linux box (gentoo)
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Porting Applictions
« Reply #3 on: December 09, 2005, 01:38:59 am »
Either the way are possible, even both at the same time.

To compile natively, the quickest way is to install http://mail.pdaxrom.org/rc10/Zaurus-Collie/zgcc-3.3.6.img

To install this you can drop it in /home/root and reboot or mount it manually with mount -o loop /opt/native/...  (you have to check the exact command which should be in /et/rc.d/rc.sysinit

Compiling natively is the same as compiling on a normal pc.

To cross compile use the  cross-sdk install instruction are in http://mail.pdaxrom.org/rc10/Zaurus-Collie/cross-sdk.txt

use ./configure --host=arm-cacko-linux --build=i686-linux instead of just ./configure (actually arm-cacko-linux might be wrong as I don't know if it is the right prefix for 55000).


you can search here for a thread about distcc "semi-native compilation".
SLC-860 cacko / senao wifi

ThirtyOne

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Porting Applictions
« Reply #4 on: December 09, 2005, 07:34:31 am »
pgas -

I just wanted to mention how helpful you are in these forums.  It is knowledgeable, patient posters like you that make this site (and the zaurus) so useful.

Thanks

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #5 on: December 09, 2005, 01:39:02 pm »
SO far so good! Fvwm is compileing. My next question is do i "make install" or do i copy the binarys and stuff to my sd card and link them manually (please god say no lol). Is there a set of tools to make ".ipk" files so i can add my package too the feed.
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Porting Applictions
« Reply #6 on: December 09, 2005, 01:54:22 pm »
@ThirtyOne thanks for the nice words.

Quote
y next question is do i "make install" or do i copy the binarys and stuff to my sd card and link them manually (please god say no lol).
No. :-)
Often you can use
Code: [Select]
mkdir /mnt/nfs/my_package/ipkg
make DESTDIR=/mnt/nfs/my_package/ipkg install
use strip ( or arm-linux-strip) on all the binaries (and .so). it reduces a lot their sizes

to create an ipk see:
http://www.pdaxrom.org/index.php?showid=35&menuid=1
and search a bit around. (check more than once the syntax of your control file architecture will be arm in your casse)

ipkg will create the links for you when you install your package
« Last Edit: December 09, 2005, 01:55:58 pm by pgas »
SLC-860 cacko / senao wifi

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #7 on: December 09, 2005, 11:12:04 pm »
Thank you! Thank you! Thank you! Fvwm is installed and running like a champ. If i can find a prog to take a screenshot ill post one.
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #8 on: December 10, 2005, 02:09:30 am »
Heres a screenshot of what i have so far. Nothing much fvwm 2.5.14, aterm, and i have nano installed. I hope to get feh, kismet, and a few other small programs compiled tomorrow. Then im going to start working on a custom fvwm setup. Im also hunting for a font that looks good at point 8. Im not sure how to install fonts like artwiz since theres no xfree or xorg config and i cant find a font directory.

Screenshot
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #9 on: December 10, 2005, 01:02:44 pm »
Quick update heres a list of packages i have compiled and have working
fetchmail_6.3.0
fvwm_2.5.14
mutt_1.5.10
nano_1.3.9
procmail_3.15.2
sudo_1.6.8

Heres a quick screenshot with xystray at the bottom corner. Screenshot 2
Next will be a cron daemon and postfix. For some reason i cant get imlib2 to install because im missing libttf.so.2 but when i install freetype it doesnt install it so ill work on that later.
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Porting Applictions
« Reply #10 on: December 10, 2005, 01:23:17 pm »
Quote
Im not sure how to install fonts like artwiz

maybe something like that in your .xinitrc?

xset +fp /usr/X11R6/lib/X11/fonts/artwiz
SLC-860 cacko / senao wifi

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #11 on: December 11, 2005, 11:38:04 am »
Quote
Quote
Im not sure how to install fonts like artwiz

maybe something like that in your .xinitrc?

xset +fp /usr/X11R6/lib/X11/fonts/artwiz
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Thats works fine. I changed it to xset +fp ~/.font so i didnt have to set permissions for it. Is there a way to add new modules? I installed the hostap modules from [a href=\"http://oz.pdai.org/official/unstable/3.5.3/feed/machine/collie/]HERE[/url] but theres no modules-update command so i cant get modprobe not notice them. The orinoco drivers that come in the kernel dont have the monitor mode patch so i cant use kismet.

I have one more question reguarding recomiling. Can i put the packages up on the net legally since i dont have the source with them?

Heres the latest screenshot. I now have battery status and 0/0 new/total mail status.
« Last Edit: December 11, 2005, 11:44:21 am by VoiDeR »
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Porting Applictions
« Reply #12 on: December 11, 2005, 02:17:35 pm »
Quote
I have one more question reguarding recomiling. Can i put the packages up on the net legally since i dont have the source with them?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106758\"][{POST_SNAPBACK}][/a][/div]

If they are (L)GPL, no
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Porting Applictions
« Reply #13 on: December 11, 2005, 02:20:57 pm »
hmm I don't know if you can use these modules with the pdaxrom kernel.....

you can perhaps try to use insmod mymodule.o to load the modules

also search here to find the files you need to modify.
to recompile the module and the kernel you might want to try the pdaxrom-builder..

It's probably not completely legal, but with a link to where you download the sources, I don't think you will have problem.
« Last Edit: December 11, 2005, 02:21:30 pm by pgas »
SLC-860 cacko / senao wifi

VoiDeR

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Porting Applictions
« Reply #14 on: December 15, 2005, 09:44:08 pm »
Rox-filer anyone! SCREENSHOT
I have ported a few applications over the last few days but i still cant figure out how to recomile the kernel so i can add either the hostap drivers or the patched orinoco ones. Could i use one of the 64-0 kernels from open zaurus and install the whole os on an SD card

Is there anyway to backup what i have done? I plan on getting a bigger SD card but i have moved alot of things around to  make alittle more room on / an di really dont want to have to start from scratch again.

Thanks VoiDeR
Zaurus model: None looking to buy.
Location: Eastern Standard Time Zone