Arm Community
Arm Community
  • Site
  • User
  • Site
  • Search
  • User
  • Groups
    • Arm Research
    • DesignStart
    • Education Hub
    • Graphics and Gaming
    • High Performance Computing
    • Innovation
    • Multimedia
    • Open Source Software and Platforms
    • Physical
    • Processors
    • Security
    • System
    • Software Tools
    • TrustZone for Armv8-M
    • 中文社区
  • Blog
    • Artificial Intelligence
    • Automotive
    • Healthcare
    • HPC
    • Infrastructure
    • Innovation
    • Internet of Things
    • Machine Learning
    • Mobile
    • Smart Homes
    • Wearables
  • Forums
    • All developer forums
    • IP Product forums
    • Tool & Software forums
    • Pelion IoT Platform
  • Activity
  • Support
    • Open a support case
    • Documentation
    • Downloads
    • Training
    • Arm Approved program
    • Arm Design Reviews
  • More
  • Cancel
System
  • Developer Community
  • IP Products
  • System
  • Jump...
  • Cancel
System
Embedded blog How to set up QT compiling environment for a single board computer
  • Blogs
  • Forums
  • Videos & Files
  • Mentions
  • Sub-Groups
  • Tags
  • Jump...
  • Cancel
  • New
More blogs in System
  • Embedded blog

  • SoC Design blog

Tags
  • Embedded Linux
  • linux development environment
  • qt
Actions
  • RSS
  • More
  • Cancel
Related blog posts
Related forum threads

How to set up QT compiling environment for a single board computer

Grace
Grace
October 9, 2016

How to set up QT compiling environment for a single board computer

How to set up QT compiling environment for a single board computer? Here we take Forlinx

single board computer for example.

Generally, a complete QT compiling environment in Forlinx single board computer cosists of

cross compiler installation and settings, tslib porting, qt porting and qtcreator

installation four parts.Let's learn about it step by step.

1. To install and configure a cross compiler

Users just need extract the compiler pack provided by Forlinx to the appointed path.

The cross compiler has two parts, arm-linux-gcc -v is for kernel compiling and arm-

2009q3.tar.bz2 is for QT compiling. Pls notice that arm-2009q3.tar.bz2 provided by Forlinx

should be 261.9M, if it's smaller than this, pls download a new one from Forlinx.

2.To port TSLIB

Someone may think that it's no need to port tslib if do not touching function, but pls

notice that without tslib, it may occur errors when compiling QT.So it's better for you to

port it no matter whether you need touching function.

Someone may fail to port it or get errors during installation, thus Forlinx provides a

compiled tslib pack named as tslib-sdk.tar.bz2 and users just need extract it to

/usr/local/arm directly.

note: tslib-1.4.tar.bz2 is a pack for source code, and tslib-sdk.tar.bz2 is the compiled

tslib pack.

3. To port QT

Forlinx provides compiled QT to their users. You just need extract qt4.8.5-sdk.tar.bz2  to

/usr/local/arm/, renamed the compiled qmake in /usr/local/arm/qt4.8.5/bin as arm-qmake, and

then copy it to /usr/bin

# cd /usr/local/arm/qt4.8.5/bin

# cp qmake /usr/bin/arm-qmake

# arm-qmake -v

QMake version 2.01a

Using Qt version 4.8.5 in /usr/local/arm/qt4.8.5/lib

Note: qt-everywhere-opensource-src-4.8.5.tar.bz2 is the QT source code pack, and qt4.8.5-

sdk.tar.bz2 is the compiled QT pack

4. to install qtcreator

Execute below command in Ubuntu

#apt-get install qtcreator

after installation, pls input below command in hyper terminal to open QT creator

#qtcreator&

Click as QT Creator-> Tools-> Options and select Build & Run, then click Tools Chains,

click Add to get GCCE, single click Compiler path Browse to add cross compiler

(/usr/local/arm/arm-2009q3/bin/arm-linux-g++) path.

Click Add to get /usr/local/arm/qt4.8.5/bin/qmake and then click Apply to finish

configuration.

At last port the compiled binary file to the board to run. (eg. the generated file is F11)

users just need copy F11 to SD or TF card, and insert the card to board to run

#vi /etc/init.d/qt.sh

in qt.sh, there is the executable binary file Matrix_gui, users just need rename it

accordingly and copy the executable file to /forlinx/qt/bin, then restart the board to get

QT interface.

Anonymous
Embedded blog
  • Embedded blog: Development of Arm based systems with Synopsys Virtual Prototyping: Anytime, Anywhere!

    Jason Andrews
    Jason Andrews
    Find out more about virtual prototyping from Synopsys as thousands of engineers around the world have been asked to work from home.
    • May 5, 2020
  • Embedded blog: Accelerating Innovation for Safety Systems with Arm Flexible Access

    Chet Babla
    Chet Babla
    Arm is proud to announce the addition of Arm Safety Packages for select IP within Arm Flexible Access, with the goal to make it easier for developers in the automotive and other safety-related industries…
    • February 19, 2020
  • Embedded blog: Functional Safety on Arm – Beyond Automotive

    Antonio Priore
    Antonio Priore
    Arm has moved a long way from the days where our only ‘safety’ requirement was to provide ECC or parity protections on CPU RAMs and we are now able to offer a number of System IP, GPUs, ISPs and NPUs as…
    • December 13, 2019