From 114a878c64ce6f8223cfd22d76a20eb16d177e5e Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- doc/kdevelop/adv-build-management.docbook | 128 ++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 doc/kdevelop/adv-build-management.docbook (limited to 'doc/kdevelop/adv-build-management.docbook') diff --git a/doc/kdevelop/adv-build-management.docbook b/doc/kdevelop/adv-build-management.docbook new file mode 100644 index 00000000..e589a007 --- /dev/null +++ b/doc/kdevelop/adv-build-management.docbook @@ -0,0 +1,128 @@ + +Advanced Build Management +&automake; + + +Multiple Build Configurations +build configurationsmultiple + + +(... to be written ...) + + + + + + + +Cross-Compiling +cross compiling +compilingcross + + + +When you have suitable cross compilers available, you can cross compile your +programs for processors and operating systems different from the system where +&kdevelop; and the compiler is running. The &GNU; compiler collection &gcc; can +be configured and compiled as a cross compiler if you compile it yourself. +Consult the GCC info pages for +more information. Some &Linux; distributions also provide binary packages. + + + +An automake based package can easily be +cross-compiled by specifying the option to the +configure script and setting the CC and CXX +environment variables to the respective cross compiler binaries. Often you +want to switch between a the cross-compiled version of your application and +one compiled for your development system. For this, it is advantageous to +use &kdevelop; capability of creating multiple build configurations, as +explained in . Once you have created a +new build configuration for cross-compiling in the +ProjectProject +Options... dialog, add the option + + +platform + + +to the configure options. The platform name +is a tuple of the form + + +cpu-vendor-os +or +cpu-vendor-kernel-os + + +For many combinations, you can use a short form, for instance +i386-linux or arm-elf. + + + + + + + +Qt/Embedded +embeddedQt +Qt/Embedded +Qtopia +framebuffer + + +&qte; is a version of the &Qt; library that does not use the X window +system, but draws directly to the framebuffer on &Linux; systems. It is +therefore interesting for embedded systems which have tight restrictions +on the memory usage of the whole system. Its &API; is fully compatible with +the one of the X11 version. + + + +Developing an application for &qte; with &kdevelop; is not very different +from developing a program for the X11 version of &Qt;. In fact, you can use the +same codebase for both versions. If you use the autoproject project +management, you switch to the embedded version by passing the argument + to the configure script. You can set +this in the Project +Project Options... dialog under +Configure Options. With the option + you set the directory in which &qte; +is installed. + + + +After configuring and compiling your application with these options, it will +link with the libqpe.so library. This version of your +application will not normally run when you use X11. In order to test it, +run it under the control of the program qvfb +(&Qt; Virtual Frame Buffer). This is done by starting +qvfb and then starting your application with + + +app + + +Naturally, when you have a working version of your application, you +will want to use it on the target processor. For this, it will probably +be convenient to create multiple build configurations, as explained above, +so that you can quickly switch between the version running on your development +system and the version running on the target system. + + + +Applications for &qte; normally run as single applications on the +device they are designed for. Trolltech also supports Qtopia, which is a +collection of applications for PIM, web browsing and various other areas that +work together in a consistent manner. It is the standard environment for +instance on the Sharp Zaurus. You can write applications that integrate into +this environment by using the Qtopia SDK. This implies making your application +class a subclass of QPEApplication and linking to the +library libqpe.so. If you develop your application with +the autoproject project management, you have to add + to the configure options. + + + + + -- cgit v1.2.3