Odroid: Difference between revisions
Jump to navigation
Jump to search
| Line 4: | Line 4: | ||
Moreover, you have to install the mesa packages: | Moreover, you have to install the mesa packages: | ||
sudo apt-get install mesa-utils mesa-common-dev libgl1-mesa-dev x11proto-xext-dev libxrender-dev | |||
sudo apt-get install mesa-utils mesa-common-dev libgl1-mesa-dev x11proto-xext-dev libxrender-dev | |||
missing this step, the build will fail on unknown OpenGL symbols, '''even if the OpenGL build has been explicitly disabled'''. | missing this step, the build will fail on unknown OpenGL symbols, '''even if the OpenGL build has been explicitly disabled'''. | ||
| Line 12: | Line 10: | ||
Clone the base repository: | Clone the base repository: | ||
cd | |||
cd | git clone git://gitorious.org/qt/qt5.git qt5 | ||
git clone git://gitorious.org/qt/qt5.git qt5 | |||
this is only a template repository, it is almost empty, we need to download the whole code using the initialization script | this is only a template repository, it is almost empty, we need to download the whole code using the initialization script | ||
cd qt5 | |||
cd qt5 | perl init-repository --no-webkit | ||
perl init-repository --no-webkit | |||
Next we have to configure, avoiding to compile examples and test programs, in order to shorten the build time: | Next we have to configure, avoiding to compile examples and test programs, in order to shorten the build time: | ||
./configure -developer-build -opensource -nomake examples -nomake tests -no-pch -qt-xcb | |||
./configure -developer-build -opensource -nomake examples -nomake tests -no-pch -qt-xcb | '''make -j8''' | ||
make -j8 | |||
If the build ends successfully, there is no need to install the package, it is enough use includes and libraries as found in ~/qt5/qtbase directory. | If the build ends successfully, there is no need to install the package, it is enough use includes and libraries as found in ~/qt5/qtbase directory. | ||
export PATH=~/qt5/qtbase/bin:$PATH | |||
export PATH=~/qt5/qtbase/bin:$PATH | |||
== Reference == | == Reference == | ||
[http://qt-project.org/wiki/Building_Qt_5_from_Git Building Qt 5 from Git on Qt Project web site] | [http://qt-project.org/wiki/Building_Qt_5_from_Git Building Qt 5 from Git on Qt Project web site] | ||
Revision as of 16:56, 3 January 2013
How to compile Qt5
In order to compile Qt5, is mandatory to start from a clean system, especially if you are using a 8 GB SD card. Moreover, you have to install the mesa packages:
sudo apt-get install mesa-utils mesa-common-dev libgl1-mesa-dev x11proto-xext-dev libxrender-dev
missing this step, the build will fail on unknown OpenGL symbols, even if the OpenGL build has been explicitly disabled.
Clone the base repository:
cd git clone git://gitorious.org/qt/qt5.git qt5
this is only a template repository, it is almost empty, we need to download the whole code using the initialization script
cd qt5 perl init-repository --no-webkit
Next we have to configure, avoiding to compile examples and test programs, in order to shorten the build time:
./configure -developer-build -opensource -nomake examples -nomake tests -no-pch -qt-xcb make -j8
If the build ends successfully, there is no need to install the package, it is enough use includes and libraries as found in ~/qt5/qtbase directory.
export PATH=~/qt5/qtbase/bin:$PATH