OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: pgas on March 06, 2005, 06:10:33 pm

Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas 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)
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: philo 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
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: alan 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.
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: Hrw 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"
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas 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 (https://www.archei.com/macgimp/)  is my model)  
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: LadyBug 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(
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: Laze on March 07, 2005, 03:51:39 pm
I will be putting the site up now..
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog 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 (http://www.pdaxrom.org/index.php?showid=40&menuid=11)
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas on April 18, 2005, 04:47:08 am
for rc9.1:

http://mirror1.pdaxrom.org/rc9.1/developer/ (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.
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog 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
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas 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
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog 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
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas 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.
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog 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?
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas 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 (http://www.gnu.org/software/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
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog on April 19, 2005, 03:59:48 am
i have installed libiconv to PC-linux
i have  run the code: touch src/marshallers.h
./configure ...
make

but the error-message is still display:
alignment.h ) > xgen-gtbc \
&& cp xgen-gtbc enumerations.c \
&& rm -f xgen-gtbc
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
make[2]: *** [marshallers.c] Error 127
make[2]: Leaving directory `/opt/cross/arm/3.3.2-xscale-softvfp/criawips-0.0.8a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/cross/arm/3.3.2-xscale-softvfp/criawips-0.0.8a'
make: *** [all] Error 2
[root@localhost criawips-0.0.8a]#
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas on April 19, 2005, 04:43:19 am
hmm, I don't understand why make tries to recreate marshallers.h.
another solution is to copy marshallers.h in the src directory and to comment out or delete the line corresponding to glib-genmarshal --header --prefix=cria_marshal marshallers.list > marshallers.h in the Makefile.

Also glib-genmarshal should not try to load /opt/cross/arm/3.3.2-xscale-softvfp/lib/

Did you put this path in /etc/ld.conf ? in LD_LIBRARY_PATH?

If you did so , remove it because the libraries in this directory are for arm and the system should not search this directory for shared library.

If you libiconv.so for x86 is installed in /usr/local/lib you might have to add /usr/local/lib to your /etc/ld.cong followed by a ldconfig.
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: Christoph on April 19, 2005, 04:52:10 am
Hi,

there is a new major version of kdepim (2.1.0).
Perhaps someone has the time to build it?  

Christoph
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog on April 19, 2005, 05:00:46 am
i don't find the path in /etc/ld.so.conf<---PC-linux
i don't find ld.cong(or ld.so.conf)  <------cross/.../armv5tel...

maybe it is wrong that run:#  /opt/cross/arm/~~/runsdk.sh in / ?

or to do? :
cd /opt/cross/arm/3.3.2-xscale-softcfp/
./runsdk.sh
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas on April 19, 2005, 05:01:00 am
@ cristoph

ehe the instructions are there

otherwise I will have time this we.

@badog
hmm, I don't think runsdk is the problem. Try to start again from a clean src tree (ie delete rm -rf criawips-0.0.8a , tar zxvf)
add the path to libiconv.so (the one for x86) to /etc/ld.so.conf issue ldconfig
and do
Code: [Select]
./configure --host=armv5tel-cacko-linux --build=i686-linux
make


Note there is no ld.so.conf in /opt are we don't run arm binaries on x86/
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog on April 19, 2005, 06:18:08 am
the error yet is  exist.
maybe reboot OS.
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: pgas on April 19, 2005, 11:16:07 am
well I don't know what I could add....I'll make an ipk for criawips-0.0.8a this week end...
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog on April 19, 2005, 10:51:55 pm
i can't make it yet.
wait your ipk :heheh
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: badog on April 23, 2005, 12:22:32 am
wait
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: Martin on August 03, 2005, 06:16:41 am
Hi :-)

... any news about kdepim ipk >=2.1.x ??? ... some more people waiting and will be very happy to get it ...

Martin
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: danr on August 03, 2005, 11:25:49 am
Quote
Hi :-)

... any news about kdepim ipk >=2.1.x ??? ... some more people waiting and will be very happy to get it ...

Martin
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90597\"][{POST_SNAPBACK}][/a][/div]

Give this a go.  I haven't entirely sorted out the icons, so you'll have to type 'kopi', or 'kapi' from the command line, but it should work :-)

Dan
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: gromituk on August 04, 2005, 05:27:03 am
Someone do a "top" while ka/pi is running and see if it still eats 14% CPU constantly!
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: magicbb on September 10, 2005, 06:48:45 am
when i try to run Ka/pi
it said it can't find libmicrokabc_sharpdtm.so
what should i do?
please help
Title: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
Post by: bazmi on September 10, 2005, 01:24:08 pm
Quote
when i try to run Ka/pi
it said it can't find libmicrokabc_sharpdtm.so
what should i do?
please help
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95307\"][{POST_SNAPBACK}][/a][/div]

i have the same problem with this version but 1.9.5 runs ok even though it complains of the same library missing.

if i do a ps i can see that kapi is running but no display comes up.

cheers

/bazmi.