- Platform Construction
- QT Library Compilation
- Desktop applications
- Prepare before compiling
- Installation:sudo apt-get install g++ libx11-dev libxext-dev Libxtst-dev
- Configuration
- ./configure-fontconfig-prefix directory (Note: fontconfig is a font configuration, prefix is the location of the QT library installation)
- Compile and install: Perform make install after make is completed
- Embedded applications
- preparation before compilation
- installation: sudo Apt-get install G++ libx11-dev Libxext-dev libxtst-dev
- Install: automake, Libtool: sudo apt-get install automake autoconf libtool M4
- Install the cross-compilation tool: Unzip the cross-compilation toolchain to the directory you want to place
- Compiling tslib
- Run ./autogen.sh
- Configuration: ./configure CC=ARM-LINUX-GCC cxx=arm-linux-g++-host=arm-linux-prefix=/home/share/tslib/tslib_install AC_CV _func_malloc_0_nonnull=yes
- Compile and install: Perform make install after make
- Tslib configuration (I use the configuration is)
- ./configure \
-prefix/home/bps \ (qt installation directory)
-release \
-opensource \
-static \
-qconfig dist \
-no-exceptions \
-no-accessibility \
-NO-STL \
-no-qt3support \
-no-xmlpatterns \
-no-multimedia \
-no-audio-backend \
-no-phonon \
-no-phonon-backend \
-no-svg \
-no-webkit \
-no-javascript-jit \
-no-script \
-no-scripttools \
-no-declarative \
-no-declarative-debug \
-qt-zlib \
-qt-freetype \
-no-gif \
-qt-libpng \
-NO-LIBMNG \
-no-libtiff \
-qt-libjpeg \
-NO-OPENSSL \
-nomake Tools \
-nomake demos \
-nomake examples \
-nomake docs \
-nomake translations \
-no-nis \
-no-cups \
-no-iconv \
-NO-PCH \
-no-dbus \
-embedded arm \
-platform qws/linux-x86-g++ \
-xplatform qws/linux-arm-g++ \
-no-gtkstyle \
-no-nas-sound \
-NO-OPENGL \
-NO-OPENVG \
-NO-SM \
-no-xshape \
-no-xvideo \
-no-xsync \
-no-xinerama \
-no-xcursor \
-no-xfixes \
-no-xrandr \
-no-xrender \
-NO-MITSHM \
-no-fontconfig \
-no-xinput \
-NO-XKB \
-no-glib \
-QT-GFX-LINUXFB \
-qt-mouse-tslib \
-qt-kbd-linuxinput
- Compile and install: make and make install
- Porting to the development platform
- Configure the root file system under the/etc/profile file
- Put the compiled QT library file lib and tslib respectively into the corresponding directory of the tag
- Compiling tools
- Unzip: Unzip the cross-compilation tool to the directory you want to place
- Setting environment variables
- To set the path of the cross compiler under/etc/profile
- Run command at Terminal: Source/etc/profile, make set cross compiler effective
- Qtcreator
- Platform Configuration
- Setting environment variables
- Set the bin file and Lib file path for the compiled QT library (as shown)
- Set the Cross compiler (as shown)
- Configure Qtcreator
- Qtcreator version is 2.5.0
- Set up QT libraries and compile chains
- Set up a desktop or embedded program
- After opening the program, click "Project", if you want to compile the embedded program, click the "+" button, add the relevant configuration of compiling the embedded program
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
QT Learning Path "0": Building and configuration of the platform