Author Topic: Ipkg - Package Making  (Read 5868 times)

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Ipkg - Package Making
« 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

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

Zumi
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Ipkg - Package Making
« Reply #1 on: March 22, 2005, 05:18:37 am »
Zumi keep up the execellent work and i look forward to getting you on the web team for the new homepage.
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Ipkg - Package Making
« Reply #2 on: March 22, 2005, 07:08:57 am »
Hehe, thanks.
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

SSG

  • Newbie
  • *
  • Posts: 16
    • View Profile
Ipkg - Package Making
« Reply #3 on: March 22, 2005, 04:29:33 pm »
need says for postinstal script

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Ipkg - Package Making
« Reply #4 on: March 22, 2005, 06:08:02 pm »
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
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Ipkg - Package Making
« Reply #5 on: March 24, 2005, 03:14:46 am »
Quote
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.
C860, SMC Model SMC2642W, various sized memory cards

Zumi

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • http://
Ipkg - Package Making
« Reply #6 on: March 24, 2005, 06:50:57 am »
Quote
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
SL-C860: pdaXrom 1.1.0beta1
SD: 1GB A-data, GPS: Haicom HI-303S, Bluetooth: Nokia DTL-1 CF, CF WiFi: ASUS SpaceLink WL-110
Browse user contributed packages for pdaXrom!

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Ipkg - Package Making
« Reply #7 on: March 29, 2005, 03:47:35 am »
Quote
Quote
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?
C860, SMC Model SMC2642W, various sized memory cards

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Ipkg - Package Making
« Reply #8 on: April 13, 2005, 12:56:10 pm »
mkipkg: command not found
why?

cd bin
./mkipkg ipkg_tmp

Please fix the above errors and try again

??
« Last Edit: April 13, 2005, 01:15:20 pm by badog »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Ipkg - Package Making
« Reply #9 on: April 13, 2005, 02:34:22 pm »
What are you using? cross sdk? native sdk?
which version?
SLC-860 cacko / senao wifi

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Ipkg - Package Making
« Reply #10 on: April 13, 2005, 11:00:08 pm »
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

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Ipkg - Package Making
« Reply #11 on: April 14, 2005, 01:55:18 am »
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: [Select]
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
SLC-860 cacko / senao wifi

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Ipkg - Package Making
« Reply #12 on: April 14, 2005, 06:18:02 am »
/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

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Ipkg - Package Making
« Reply #13 on: April 14, 2005, 06:53:33 am »
-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)
« Last Edit: April 14, 2005, 06:54:35 am by pgas »
SLC-860 cacko / senao wifi