Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Target is not working properly(video in Youtube)
Qt 6.11 is out! See what's new in the release blog

Target is not working properly(video in Youtube)

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 764 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    I took a video on my target after i download the target.
    My video has been published at http://youtu.be/LIgq7m1fU5A

    Below is my build process

    Building and setting up QT environment for IMX 6

    1. Set cross compile path

    export PATH=$PATH:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/

    arm-none-linux-gnueabi-gcc -v

    You will see “gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20)” at last line
    2. In your qt-everywhere-opensource-src-4.7.4
    Modify mkspecs/qws/linux-arm-g++/qmake.conf
    QMAKE_CC = arm-none-linux-gnueabi-gcc
    QMAKE_CXX = arm-none-linux-gnueabi-g++
    QMAKE_LINK = arm-none-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++
    QMAKE_AR = arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
    QMAKE_STRIP = arm-none-linux-gnueabi-strip
    3. In your qt-everywhere-opensource-src-4.7.4

    ./configure -embedded arm -qt-zlib -qt-libpng -qt-gif -qt-libtiff -qt-libmng -qt-libjpeg -qt-freetype -no-openssl -static -prefix /media/jt_disk2/QT

    “/media/jt_disk2/QT” is my QT install path
    4. make
    5. make install
    Building your code to target board

    1. Set environment variable

    export QTDIR=/media/jt_disk2/QT/

    export PATH=$QTDIR/bin:$PATH

    export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

    qmake -version

    You will see QT version and QT in your install path
    2. In your code dir

    qmake -project

    qmake

    make

    1. Copy binary file to target board
    2. Copy ${QT install}/lib/fonts to target board's /usr/lib/
    3. export QT_QWS_FONTDIR=/usr/lib/fonts
    4. Run QT binary file

    ./Your_QT -qws

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved