QT Learning Path "0": Building and configuration of the platform

Source: Internet
Author: User
Tags automake

  • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.