Help - Search - Members - Calendar
Full Version: Kdepim-unstable-1.10-rc9.1_2.0.14_armv5tel.ipk
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
pgas
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)
philo
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
alan
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
pdaXrom does not have automated way for doing it?

To build KDEPIM/PI under OpenEmbedded I use just "bitbake kdepimpi" wink.gif
pgas
QUOTE
pdaXrom does not have automated way for doing it?


mad.gif 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) wink.gif
LadyBug
Darn, just my luck that the pdaXrom site is now in the process of moving and the unstable feed is not available. 8(
Laze
I will be putting the site up now..
badog
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
pgas
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.
badog
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
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
find /opt/ -name libncurses*


and you should find some files like libncurses.so
badog
thanks. i try to do it. smile.gif
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
pgas
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
./configure --host=armv5tel-cacko-linux --build=i686-linux
make


and it builds.
badog
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?
pgas
./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
touch src/marshallers.h

so 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
badog
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]#
pgas
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.
Christoph
Hi,

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

Christoph
badog
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
pgas
@ cristoph

ehe the instructions are there wink.gif

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
./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/
badog
the error yet is exist.
maybe reboot OS.
pgas
well I don't know what I could add....I'll make an ipk for criawips-0.0.8a this week end...
badog
i can't make it yet.
wait your ipk :heheh
badog
wait
Martin
Hi :-)

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

Martin
danr
QUOTE(Martin @ Aug 3 2005, 10:16 AM)
Hi :-)

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

Martin
*


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
gromituk
Someone do a "top" while ka/pi is running and see if it still eats 14% CPU constantly!
magicbb
when i try to run Ka/pi
it said it can't find libmicrokabc_sharpdtm.so
what should i do?
please help
bazmi
QUOTE(magicbb @ Sep 10 2005, 03:48 PM)
when i try to run Ka/pi
it said it can't find libmicrokabc_sharpdtm.so
what should i do?
please help
*


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.
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-2014 Invision Power Services, Inc.