Qt - Raspberry Pi

Reference:

http://qt-project.org/wiki/Native_Build_of_Qt5_on_a_Raspberry_Pi

As described in above article, we want to install Qt5 in native R-Pi in order to develop software on it.

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install libfontconfig1-dev libdbus-1-dev libfreetype6-dev libudev-dev libicu-dev libsqlite3-dev libxslt1-dev libssl-dev libasound2-dev libavcodec-dev libavformat-dev libswscale-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev gstreamer-tools gstreamer0.10-plugins-good gstreamer0.10-plugins-bad libraspberrypi-dev libpulse-dev libx11-dev libglib2.0-dev libcups2-dev freetds-dev libsqlite0-dev libpq-dev libiodbc2-dev libmysqlclient-dev firebird-dev libpng12-dev libjpeg62-dev libgst-dev libxext-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-render-util0 libxcb-render-util0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-glx0-dev libxi-dev libdrm-dev

 

  1. git clone git://gitorious.org/qt/qt5.git qt5
  2. cd qt5
  3. ./init-repository

Edit qtbase/configure as described in above artile (diff attached below), and then

  1. ./configure --opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5 

This process tooks about 97min., to complete.  After this was done, just do make;

It tooks 2152min (without overclock).

 

In case you need to clean configuration, do following commandlet; (as discussed in http://qt-project.org/forums/viewthread/6120)

  1. git submodule foreach --recursive "git clean -dfx"

 

Materials:

Raspbian installed:  http://www.raspberrypi.org/downloads/

RASPBIAN

Debian Wheezy
Version:January 2014
Release date:2014-01-07
Default login:pi / raspberry
Kernel version:3.10
Release notes:Link

Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux

English
Attachment: 

User login