QtOnTheZ.txt

From OESF

Revision as of 09:47, 3 July 2007 by XytFe5 (Talk | contribs)
Jump to: navigation, search
  • Setup of Qt Embeded on the Zaurus
  • by Jim Murff March 23, 2002
  • Re-creation of the original document - website no longer available

Background

I have been trying for a few weeks various things to get Qt to compile on the Zaurus. I was resigned to PyQt then I thought I'd give it one more try. Searching google for "Qt embedded" proved to be the thing that got me to the right resources. I found this: http://ftp.nl.debian.org/debian. It has everything you can ever imagine in debian package format which BusyBox on the Z happens to be able to unpack.

I was able to get qt-docs, qt-dev and support packages.The site has everything compiled already in many formats including ARM. Also it has lots of source.

Weirdly, using ARM compiled stuff, once I got everything in place it would compile fine but linker core-dumped right at the end of the link when it was close to dumping the executible. I thought i was done for. My goal was to minimally edit the Makefiles that came with the code so they would just work. But all the libraries listed were static. Then I realized - duh! - most of the libraries are already on the Z in dynamic format. So, I created links to them that the Makefiles were looking for (e.g. libqte.a -> to the libqte.so.x.x.x etc.) Then I added the two optional libraries listed in the makefiles (libpng, libmng)that were not on the Z -- And it worked!! The only other problem I found was on the more complicated tutorials and examples I needed some #defines. This required reading some of the header files.

I am not sure what I can legally distribute; so right now here are the just steps I took. I think a script would work fine for this but that's a later step.

My Zaurus

  • Rom 1.11
  • 128Mb SD card (fat16)
  • 512Mb CF card (fat16)
  • ZGCC installed on CF card.

Packages

1) Readme like file. Gave me a clue what else QT needed. (libpng, libmng, libz, libjpeg)

http://ftp.nl.debian.org/debian/pool/main/q/qt-embedded/qt-embedded_2.3.2-2.dsc 


2) The distrubution with all header files.

http://ftp.nl.debian.org/debian/pool/main/q/qt-embedded/libqt-emb-dev_2.3.2-2_arm.deb


3) The docs(man

Personal tools