Help - Search - Members - Calendar
Full Version: Ipkg - Package Making
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Zumi
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:
http://www.oesf.org/index.php?title=Pdaxro...Building_an_ipk

Make your comments here and if you find some error or typo, correct it in the Wiki!

Zumi smile.gif
Laze
Zumi keep up the execellent work and i look forward to getting you on the web team for the new homepage.
Zumi
Hehe, thanks. smile.gif
SSG
need says for postinstal script
Zumi
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 smile.gif
waalkman
QUOTE(Zumi @ Mar 21 2005, 01:56 PM)
Make your comments here and if you find some error or typo, correct it in the Wiki!

Zumi smile.gif
*


I made a few edits, see if you like them.

Enjoy.
Zumi
QUOTE(waalkman @ Mar 24 2005, 09:14 AM)
I made a few edits, see if you like them.

Enjoy.
*

Thank you for the corrections! The addition to the native/cross compile topic is also very nice. smile.gif

Zumi
waalkman
QUOTE(Zumi @ Mar 24 2005, 03:50 AM)
QUOTE(waalkman @ Mar 24 2005, 09:14 AM)
I made a few edits, see if you like them.

Enjoy.
*

Thank you for the corrections! The addition to the native/cross compile topic is also very nice. smile.gif

Zumi
*



My pleasure of course, and thanks smile.gif

Feel free to pass along anything else that you would like to have edited (well, no school work... laugh.gif )

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

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?
badog
mkipkg: command not found
why?

cd bin
./mkipkg ipkg_tmp

Please fix the above errors and try again

??
pgas
What are you using? cross sdk? native sdk?
which version?
badog
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?
pgas
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:
CODE
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 SDK installation and SDK tutorial. While brief it is still a good starting point
badog
/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?
pgas
-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] 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)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.