Различия
Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
dev:qt:build_qt_from_sources [2015/05/06 15:49] denis |
dev:qt:build_qt_from_sources [2015/06/16 08:53] (текущий) alexeyb [compiling] |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== Build Qt from sources on Ubuntu 14.04 ====== | ====== Build Qt from sources on Ubuntu 14.04 ====== | ||
| [[https://wiki.qt.io/Building_Qt_5_from_Git|source]] | [[https://wiki.qt.io/Building_Qt_5_from_Git|source]] | ||
| + | |||
| + | ===== preparing ===== | ||
| sudo apt-get build-dep qt5-default | sudo apt-get build-dep qt5-default | ||
| Строка 10: | Строка 12: | ||
| sudo apt-get install libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev | sudo apt-get install libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev | ||
| | | ||
| - | git clone git://code.qt.io/qt/qt5.git | + | ===== downloading ===== |
| - | cd qt5 | + | Assuming downloading version is 5.5. |
| + | cd /home/denis/asutp/tools/qt | ||
| + | git clone git://code.qt.io/qt/qt5.git 5.5 | ||
| + | or | ||
| + | git clone http://code.qt.io/qt/qt5.git 5.5 | ||
| + | cd 5.5 | ||
| git checkout 5.5 | git checkout 5.5 | ||
| perl init-repository --no-webkit | perl init-repository --no-webkit | ||
| | | ||
| + | ===== configuring ===== | ||
| + | ./configure -developer-build -opensource -nomake examples -nomake tests -debug-and-release -c++11 -confirm-license | ||
| + | | ||
| + | ===== compiling ===== | ||
| + | make -j4 | ||
| + | |||
| + | ===== АХТУНГ ===== | ||
| + | может быть легкий achtung, флаг -j следует сопоставлять с мощностью машины | ||
| + | проверено на 4 ядрах, -j4 вызывает легкий ступор. | ||
| + | Полный achtung на -j без числа. | ||
| + | | ||
| + | ===== adding to qt creator ===== | ||
| + | - Tools / Options / Qt Versions / Add: ''/home/denis/asutp/tools/qt/5.5/Src/qtbase/bin/qmake'' | ||
| + | - Kits / Clone / Qt Version: ''5.5'' | ||
| + | |||