Installation Guide
- Download
- Visit Qt downloads page an download a 32-bit or 64-bit Linux installation [qt-project.org] depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.Example:
- wget http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86-offline.run
- qt install
Adjust permission, run the installer and follow the instruction to complete the installation.
Qt: Creating a new project
This document describes how to install Qt for Embedded Linux in your development environment:
Please see the cross compiling and deployment documentation for details on how to install Qt for Embedded Linux on your target device.
Note also that this installation procedure is written for Linux, and that it may need to be modified for other platforms.
Qt Downloads
=======================================================================
original
./configure -prefix/usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples-nomake tools -nomake docs -make demos -xplatformqws/linux-arm-gnueabihf-g++ -embedded arm -little-endian -no-pch-v
corrected
./configure -prefix /usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples -nomake tools
-nomake docs -make demos -xplatform qws/linux-arm-gnueabihf-g++ -embedded arm -little-endian
-no-pch -v
=======================================================================
./configure -prefix /opt/qt5.1.1-arm -release -make libs -make examples -make tools -xplatform linux-arm-gnueabihf-g++ -no-opengl -confirm-license -opensource -xcb -no-pch -no-kms -v -no-icu
=======================================================================
http://www.arm-designcontest.com.tw/cortexm/?menu=03
=======================================================================
=======================================================================
original
./configure -prefix/usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples-nomake tools -nomake docs -make demos -xplatformqws/linux-arm-gnueabihf-g++ -embedded arm -little-endian -no-pch-v
corrected
./configure -prefix /usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples -nomake tools
-nomake docs -make demos -xplatform qws/linux-arm-gnueabihf-g++ -embedded arm -little-endian
-no-pch -v
=======================================================================
QT5 Cross Compiled from linux-x86 to linux-arm
=======================================================================
[Qt-creator] Cross-compiling for ARM with qt creator
==============================================
Linaro toolchain
ARM CONTEST
http://www.arm-designcontest.com.tw/cortexm/?menu=03
=======================================================================
Cross-Compiling Qt for Embedded Linux Applications
./configure -embedded arm -xplatform qws/linux-arm-g++ <other options>
Qt Cross Compiling for ARM platforms
Create new mkspec
We can create a new mkspec using linux-g++ as template.
$ cd qt/mkspecs
$ cp -R linux-g++ linux-arm-g++
Then edit the qmake.conf in the linux-arm-g++ directory, add following settings before "load(qt_config)".
Build Qt
A shadow build directory can be created to make the source directory clean.
$ cd qt && mkdir build
$ cd build && ./buildqt.sh
The content of buildqt.sh is given below:
#!/bin/bash
export CROSS_COMPILE=arm-linux-gnueabi
export ROOTFS=<path to the armel rootfs>
export QTDIR=<path to the qt source tree>
export PKG_CONFIG_PATH=$ROOTFS/usr/lib/pkgconfig
export PKG_CONFIG_SYSROOT=$ROOTFS
$QTDIR/configure -arch arm -xplatform linux-arm-g++ -force-pkg-config -prefix <install_prefix> -prefix-install -opengl es2
make
Note:
The "-prefix" and "-prefix-install" configure options are used for development build, and if you want to enable OpenGL ES2.0 for the opengl graphics system, please add "-opengl es2" option.
安装Synaptic PackageManager
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic
启动Synaptic (sudo synaptic)
使用Synaptic 管理套件
- Ubuntu - 『系統』(System) -> 『管理』(Administrative) -> 『Synaptic 套件管理程式』(Synaptic Package Manager)
3.安装zlib,png,jpeg 在搜索栏中输入png,mark libpng 12-0 为安装,点击apply,
[root@localhost softs]# tar xf libpng-1.6.6.tar.gz -C /usr/src/
[root@localhost softs]# cd /usr/src/libpng-1.6.6/
[root@localhost libpng-1.6.6]# ./configure --prefix=/usr/local/png --enable-shared
[root@localhost libpng-1.6.6]# make && make install






沒有留言:
張貼留言