Specifications
SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 3/63
TABLE OF CONTENTS
Introduction ...........................................................................................................................................5
SL-series Zaurus Product Overview......................................................................................................................5
SL-Series Zaurus Architecture Overview ..............................................................................................................5
SL-5500 and SL-5600 Difference Summary ........................................................................................6
Hardware Specifications Differences.....................................................................................................................6
Software Specifications Differences......................................................................................................................7
Target Reader of this Programming Guide............................................................................................................8
Overview of this Guidebook ..................................................................................................................................8
Reference and URLs.............................................................................................................................9
1. Qt Application Development Tools and Compiler Setup...............................................................10
1.1. Building Development Environment for Qt/Embedded Applications ......................................................10
1.1.1. PC-Linux .........................................................................................................................................................10
1.1.2. Setting up the cross-compiler for ARM/XScale................................................................................................10
1.1.3. Qt/Embedded / Qtopia Build Environment ......................................................................................................12
1.1.4. Configuring Your Compiler Environment .........................................................................................................12
1.1.5. tmake, a cross-platform makefile tool..............................................................................................................13
1.1.6. Confirming Installation of the tools ..................................................................................................................14
1.2. Testing the cross compiler......................................................................................................................15
1.2.1. Check compiler setup for x86..........................................................................................................................15
1.2.2. Check compiler setup for ARM........................................................................................................................16
2. Qt/Embedded Application Development Overview.................................................................17
2.1. Application Development Workflow........................................................................................................17
2.2. Useful Tools for the Development ..........................................................................................................18
2.2.1. The Qt Designer..............................................................................................................................................18
2.2.2. uic ...................................................................................................................................................................19
2.2.3. moc .................................................................................................................................................................19
2.2.4. qvfb (Qtopia Virtual Frame Buffer)...................................................................................................................20
2.2.5. progen.............................................................................................................................................................20
2.2.6. Tools for multi-language support .....................................................................................................................21
2.3. Special Recommendations for the SL-series Zaurus Applications.........................................................22
2.3.1. Operation of “Menu” Key.................................................................................................................................22
2.3.2. Operation of “OK” and “Cancel” key................................................................................................................26
2.3.3. Access to the device VRAM ............................................................................................................................26
2.4. Qtopia Development Tutorial..................................................................................................................27
2.4.1. Hello World!!....................................................................................................................................................27
2.4.2. Creating the Project File..................................................................................................................................27
2.4.3. Creating the Makefile ......................................................................................................................................28
2.4.4. Executing make to build the application ..........................................................................................................28
2.4.5. Running Hello World on the “qvfb” ..................................................................................................................29
2.4.6. Running Hello World on Qtopia environment ..................................................................................................29
2.5. Providing help file with your application .................................................................................................31
2.6. Converting character code (for local language support) ........................................................................31
2.7. Event handling: SIGNAL and SLOT .......................................................................................................32
2.7.1. Using already-defined SIGNAL and SLOT ......................................................................................................32
2.7.2. Creating your own SLOT.................................................................................................................................32
2.8. Sample application source .....................................................................................................................34
2.9. Development with the QtDesigner .........................................................................................................37