Author Topic: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk  (Read 14316 times)

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« on: March 06, 2005, 06:10:33 pm »
I've just uploaded kdepim 2.0.14 compile with RC9.1 sdk (which seems not so much up to date as gtk is 2.4, anyway..) to the unstable feed.

I ve adopted the naming scheme i suggested in another thread (ie name of the package is kdepim-unstable-1.10-rc9,1) so desinstall previous kdepim packages and install this one.

here is how I cross compile it:

- install the cross sdk, ie decompress in /

- run /opt/cross/arm/3.3.2-xscale-softvfp/runsdk.sh



- type : export QMAKESPEC="/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/qt   /mkspecs/default"
 

- extract kdepim somewhere (in my case /opt/cross/arm/)

- cd /opt/cross/arm/kdepim

- remove all Makefile (in subdirectories also)

- qmake

- make clean
- change /usr/lib/libpthread.so to /opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib/libpthread.so in /opt/cross/arm/kdepim/gammu/emb/gammu/Makefile  (line 22)

- change #include "/usr/local/qt/include/qdialog.h" to #include "/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/qt/include/qdialog.h" in /opt/cross/arm/kdepim/kmicromail/qpe/qdialog.h (line 11 and 27)

- change (add -liconv)

 LIBS     = $(SUBLIBS) -L/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib  -L$(QTDIR)/lib -L/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc -lqt-mt -lXext -lX11 -lm -Wl,-rpath-link,/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib to

to

LIBS     = $(SUBLIBS) -L/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib -liconv -L$(QTDIR)/lib -L/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc -lqt-mt -lXext -lX11 -lm -Wl,-rpath-link,/opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib

in /opt/cross/arm/kdepim/kmicromail/Makefile (line 22)

- make
- wait some time....
- hopefully everything is in /opt/cross/arm/kdepim/bin.

to make an ipk, read the sdk tutorial in the documentation, don't forget to strip what can be stripped . Untar (tar -zxvf) one of the previous ipk to see the control file, .desktop and where to put the files  (not sure if I used the best solution, i copied the structure of the suse package and linked everything in /opt/kdepimpi to /usr/lib/qt/bin so that the binaries are found in the pdaxrom default path)
« Last Edit: March 06, 2005, 06:20:08 pm by pgas »
SLC-860 cacko / senao wifi

philo

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #1 on: March 07, 2005, 06:16:38 am »
thanks a ton pgas.  the new version works like a charm on my z :)

i don't have a linux enviornment outside of my z, so compiling isn't an option for me at the moment.

it's so nice to finally have my outlook contacts on my z with pdaxrom.

thanks of course to zautrix for the program itself :)

philo
c760 | pdaxrom 1.1.0 rc9.1
symbol spectrum24 wifi | sdg aerlink for motorola v66
pny 512mb sd

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #2 on: March 07, 2005, 08:24:04 am »
I  really thank you pgas. I don't think i will use your prog, as i never send emails from my zaurus. Nevertheless, your description of the way you compiled it is very intersting. I hope i'll be able to understand it, to understand the general cross compiling process. It will be easier to do it with such an exemple.

It is a really great initiative, i once again thank you for it. Maybe someone could edit a wiki page with a step by step explamation about cross compiling with basic exemples and then, why not, some harder ones (compiling the needed libs, for exemple...). The pdaxrom community could this way get more and more developpers event though cross compiling is not as easy as a "./configure; make; make install" and requires some specific skills everyone do not have.

Once more, I see that you can always find someone to explain you what you don't understand in the linux community.

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #3 on: March 07, 2005, 08:28:05 am »
pdaXrom does not have automated way for doing it?

To build KDEPIM/PI under OpenEmbedded I use just "bitbake kdepimpi"
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #4 on: March 07, 2005, 08:33:26 am »
Quote
pdaXrom does not have automated way for doing it?

  Hey, don't try to make cross-compiling too easy, you'll ruin my plans to charge
20$ for future precompiled version (MacGimp  is my model)  
SLC-860 cacko / senao wifi

LadyBug

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #5 on: March 07, 2005, 02:13:41 pm »
Darn, just my luck that the pdaXrom site is now in the process of moving and the unstable feed is not available. 8(
C760, Symbol CF WiFi, Lexar 1GB SD, score of CFs
Currently running pdaXrom.

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #6 on: March 07, 2005, 03:51:39 pm »
I will be putting the site up now..
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.

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #7 on: April 18, 2005, 03:37:28 am »
What's included in the SDK
glibc2.2.5
zlib
jpeglib
libpng
X11
Atk-1.2.4
GLIB2.2.3
GTK2.2.4
Pango-1.2.0
OpenSSL
Startup-notification
libmb
ncurses
iconv
apmd
SDL
SDL-mixer
SDL-image
SDL-net
bluez

but can't seek it in cross-SDK,why?
meybe SDK version is a error? my SDK is 3.3.2-2.2..5(size is  103MB) it is form http://www.pdaxrom.org/index.php?showid=40&menuid=11
« Last Edit: April 18, 2005, 03:45:14 am by badog »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #8 on: April 18, 2005, 04:47:08 am »
for rc9.1:

http://mirror1.pdaxrom.org/rc9.1/developer/

what do you mean can't seek?
even if previous release the libs were there.

You must pass the correct path for include and lib directory (via options in the configure script adjusting variable like CFLAGS and the like).
If you run the script it will set some  environment variables like PKGCONFIG_PATH, so that the correct arguments for cross-compiling are returned with pkgconfig.

 (not this is from memory so I might make some spelling errors for the name of the variable/tools)

Note also that the variables set by the script are set only for the current shell ie for each new terminal you have to run the script again.
SLC-860 cacko / senao wifi

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #9 on: April 18, 2005, 08:52:02 am »
thank you for help.
i have installed new crossSDK. but i still don't find these files(or libs)  in crossSDK:
glibc2.2.5
zlib
jpeglib
libpng
X11
Atk-1.2.4
GLIB2.2.3
GTK2.2.4
Pango-1.2.0
OpenSSL
Startup-notification
libmb
ncurses
iconv
apmd
SDL
SDL-mixer
SDL-image
SDL-net
bluez

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #10 on: April 18, 2005, 09:03:04 am »
hmm, I can't access the cross compiler right now but the lib should be in /opt/cross/arm/3.3.2-softvfp/lib/ or /opt/cross/arm/3.3.2-softvfp/armv5tel-cacko-linux/lib/

try to use

Code: [Select]
find /opt/ -name libncurses*
and you should find some files like libncurses.so
SLC-860 cacko / senao wifi

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #11 on: April 18, 2005, 09:36:23 am »
thanks. i try to do it.
i have found these libs in /opt/cross/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib/.
hehe

but error message display again:
make[2]: Entering directory `/root/criawips-0.0.8a/src'
glib-genmarshal --header --prefix=cria_marshal marshallers.list > marshallers.h
glib-genmarshal: error while loading shared libraries: /opt/cross/arm/3.3.2-xscale-softvfp/lib/libiconv.so.2: ELF file OS ABI invalid
« Last Edit: April 18, 2005, 11:16:11 am by badog »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #12 on: April 18, 2005, 04:19:04 pm »
libiconv.so.2 must be installed for you system (ie for your linux box)

glib-genmarshal is a x86 binary, in your case it tries to load /opt/cross/arm/3.3.2-xscale-softvfp/lib/libiconv.so.2 which is compiled for arm.

Attach is the file generated on my system rename this file to marshallers.h and put it in
root/criawips-0.0.8a/src

Code: [Select]
./configure --host=armv5tel-cacko-linux --build=i686-linux
make

and it builds.
SLC-860 cacko / senao wifi

badog

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #13 on: April 19, 2005, 12:27:50 am »
error is still in it.
glib-genmarshal --header --prefix=cria_marshal marshallers.list > marshallers.h
glib-genmarshal: error while loading shared libraries: /opt/cross/arm/3.3.2-xscale-softvfp/lib/libiconv.so.2: ELF file OS ABI invalid

i find my libiconv.so.2 is not  in /3.3.2~softvfp/lib/ ,it is in /3.3.2~softvfp/armv5tel-cacko-linux/lib
--build=i686-host-linux-gnu not in i686-linux
howto?
LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib" ./configure --host=armv5tel-cacko-linux --build=i686-host-linux-gnu --x-includes=/opt/arm/3.3.2-xscale-softvfp-xscale-softvfp/armv5tel-cacko-linux/include --x-libraries=/opt/arm/3.3.2-xscale-softvfp/armv5tel-cacko-linux/lib --disable-debug --prefix=/usr/local?
« Last Edit: April 19, 2005, 12:34:02 am by badog »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
« Reply #14 on: April 19, 2005, 01:54:38 am »
./configure --host=armv5tel-cacko-linux --build=i686-linux was enough for me.

Did you put marshallers.h in  /criawips-0.0.8a/src (renaming the attachement to .h)?
If yes do
Code: [Select]
touch src/marshallers.hso that the date is correct and that make won't try to build it again.

or install libiconv  on your computer.

The libiconv.so you have in opt/cross/arm/3.3.2-xscale-softvfp/lib/ is the library compiled for arm (did you put opt/cross/arm/3.3.2-xscale-softvfp/lib/l in your ld.conf? if yes it's wrong). The .so in can only be used for cross-compiling.

What you need is libiconv for X86, because glib-genmarshal which is a x86 executable needs this library. I you compile this lib, be sure to compile it for x86 do not cross-compile it
SLC-860 cacko / senao wifi