goodstyle
Joined: 27 Oct 2005 Posts: 393
小企鹅: 238
|
Posted: 2005-Dec-15 Thu, am11:16 |
|
Post subject: [讨论]为Zaurus编译要用到的SDK installation |
|
SDK installation
Introduction
First of all in order to program anything for the Zaurus you need to a have fair bit of knowledge about Linux programming in general and of course you need a computer(x86)with a Linux installed (you can also use http://www.knoppix.org/). The Linux distro must include at least glibc version 2.3.1 or newer.
If you'r new to Linux this "guide" http://www.lysator.liu.se/~forsberg/linux/ might help and the http://www.tldp.org/ might also help.
Please also look at the ZaurusUserGroup developing section found here where you find much info about programming relatedto the Zaurus especially.
Installation
1. Unpack pdaXrom-sdk(http://www.pdaxrom.org/index.php?showid=33&menuid=11) in /opt directory (you will need root access for install sdk)
How-to unpack:
su
mkdir /opt
cd /opt
tar jxf /somewhere/pdaXrom-sdk-1.0.tar.bz2
Unpacking will take a "long" time without any progress indication - so be patient.
2. Cross tools will then be in /opt/arm/3.3.2/ directory.
3. To setup the needed variables and pathes run /opt/arm/3.3.2/runzgcc.sh(run /opt/arm/runzgcc-vfp.sh in the VFP versions)
4. Now the SDK environment has been configured and setup
Usage
If you want to compile "old" sources then please notice that many new sources uses the configure utility, in order to use it with cross tools pleaseuse the following args:
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
Not all configure scripts correctly generates the libtool script. If you get errors about linking the try to clean sources (make clean), run configure (./configure) again and thanreplace generated libtool with one from /opt/arm/3.3.2/bin/libtool
If your working with old sources which uses Makefile only you can try compiling is using:
CC=armv5tel-linux-gcc CXX=armv5tel-linux-g++ make
If this fails, replace CC, CXX, LD, RANLIBvariables in Makefile for cross tools - just prefix armv5tel-linux- to it, like this:
gcc should be changed to armv5tel-linux-gcc.
When building Qt sources which uses .pro file for configuring, just run:
qmake and make
else check the Makefile for CFLAGS and CXXFLAGS, it must include arguments like -fno-exceptions -fno-rtti
Qt library for linking must be: -lqt-mt
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 |
|