OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Zumi on March 21, 2005, 04:56:43 pm
-
Ever compiled a program but you wasn't sure how to share with the community?
I wrote a detailed howto about ipk making, see this page:
https://www.oesf.org/index.php?title=Pdaxro...Building_an_ipk (https://www.oesf.org/index.php?title=Pdaxrom:_Development#Building_an_ipk)
Make your comments here and if you find some error or typo, correct it in the Wiki!
Zumi
-
Zumi keep up the execellent work and i look forward to getting you on the web team for the new homepage.
-
Hehe, thanks.
-
need says for postinstal script
-
Yeah, I never used them and haven't seen any package that used pre/postinstall scripts. Maybe I will add info about them later, but for simple use, they aren't necessary.
However, thanks for the remark.
Zumi
-
Make your comments here and if you find some error or typo, correct it in the Wiki!
Zumi
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71694\"][{POST_SNAPBACK}][/a][/div]
I made a few edits, see if you like them.
Enjoy.
-
I made a few edits, see if you like them.
Enjoy.[div align=\"right\"][a href=\"index.php?act=findpost&pid=72086\"][{POST_SNAPBACK}][/a][/div]
Thank you for the corrections! The addition to the native/cross compile topic is also very nice.
Zumi
-
I made a few edits, see if you like them.
Enjoy.[div align=\"right\"][a href=\"index.php?act=findpost&pid=72086\"][{POST_SNAPBACK}][/a][/div]
Thank you for the corrections! The addition to the native/cross compile topic is also very nice.
Zumi
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72104\"][{POST_SNAPBACK}][/a][/div]
My pleasure of course, and thanks
Feel free to pass along anything else that you would like to have edited (well, no school work... )
I've done editing in the past (technical manuals, an article for a tech magazine, and a miniscule contribution to the KDE project), and find it enjoyable. No, really
What I would like to suggest is to dictate the rough draft on an .mp3 (rather than taking the time to type it out) and post it somewhere. I'll transcribe it to SGML (or whatever) and send it back (CVS?). Or scribble it out in crayon and send it up as a jpeg. It ought to save quite a bit of time doing it either way.
Interested Laze? Anyone else?
-
mkipkg: command not found
why?
cd bin
./mkipkg ipkg_tmp
Please fix the above errors and try again
??
-
What are you using? cross sdk? native sdk?
which version?
-
cross SDK. V 3.3.2.
cross-arm5vtel-cacko-linux-3.3.2-2.2.5-softloat.tar.gz
i compiled gaim 1.2.1.after run ./runsdk.sh.
gaim 1.2.1 can be run in pc-linux!!! why?
-
Where did extract cross-arm5vtel-cacko-linux-3.3.2-2.2.5-softloat.tar.gz ?
You must extract this file in /.
After extracting the archive in / and run runsdk.sh. runsdk.sh starts a shell with some variables set for the sdk.
The fact that when you run mkipkg you get command not found leads me to think that maybe you didn't extract the archive in /.
How did you compile gaim? you must run the configure script with some arguments like:
LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib" ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local
(you will probably have to change the path from /opt/arm/3.3.2 to something like /opt/cross/arm... if you use the latest sdk).
The crosssdk does not provides a drag and drop replacement to the gcc you have installed in you linux box, if you run "gcc -v" you'll will see that it is the compiler from you linux box that is called. Hence if you don't specify to the configure script that you want to cross-compile it will build the application for your linux pc.
The cross compiler is named armv5tel-linux-gcc (or something like that) and the configure script normally find it thanks of the --host parameter.
Somethimes configure or other makefiles/build system doesn't not find the right compiler and you need to specify environement variable like CC=armv5tel-linux-gcc etc...
Take a look at the documentation on http://www.pdaxrom.org (http://www.pdaxrom.org) SDK installation and SDK tutorial. While brief it is still a good starting point
-
/opt/cross/arm/3.3.2-xscale-softvfp/lib/gcc-lib/armv5tel-cacko-linux/3.3.2/../../../../armv5tel-cacko-linux/bin/ld: cannot find -ledata-book
collect2: ld returned 1 exit status
make[3]: *** [gevolution.la] Error 1
make[3]: Leaving directory `/opt/gaim-1.2.1/plugins/gevolution'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gaim-1.2.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/gaim-1.2.1'
make: *** [all] Error 2
how to do?
-
-ledata-book means that you the program must be link with a lirbrary "edata-book" ie that you must have a file "libedata-book.so" on you library path. (ie in /opt/cross/arm/3.3.2-xscale-softvb/armv5tel-cacko-linux/lib irrc or in a path you have specified with -Wl,-rpath-link,/my/path).
A quick search [1] (http://www.google.com/search?q=libedata-book) helps to find out what is this library. In this case it seems like it is a "Backend library for evolution address books"
there are now several possibilities:
* the library exists somewhere in /opt/cross/.... and you need to add the path
* This library is required by gaim and is not existing in the sdk -> you need to compile it
* this library is only an option (check ./configure --help and readme files) and you can disable it as evolution is not available on pdaxrom.
(Note that sometimes the configure script is not well written for cross compilation and automatic tests for the availability of libraries are fooled, the script finds the native library/header file of your developement box and all seems fine until the real compilation/linking occurs)