2016-04-18 23:16:06 +08:00
|
|
|
1. cd qtbase
|
2016-03-24 00:49:25 +08:00
|
|
|
./configure -opensource -no-openssl -no-securetransport -nomake examples -nomake tests -platform macx-clang-32
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
2.
|
2016-03-24 00:49:25 +08:00
|
|
|
nano ~/.profile
|
|
|
|
|
|
|
|
"
|
|
|
|
PATH=/usr/local/Qt-5.6.0/bin:$PATH
|
|
|
|
export PATH
|
|
|
|
"
|
|
|
|
После этого надо закрыть консоль и начать новую сессию
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
3. cd ../qtdeclarative
|
2016-03-24 00:49:25 +08:00
|
|
|
qmake
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
4. cd ../qttools
|
2016-03-24 00:49:25 +08:00
|
|
|
qmake
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
5. cd ../qtmacextras
|
2016-03-24 00:49:25 +08:00
|
|
|
qmake
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
6. Устанавливаем доки
|
2016-03-24 00:49:25 +08:00
|
|
|
|
|
|
|
cd ../qtbase
|
|
|
|
make docs
|
|
|
|
cd ../qttools
|
|
|
|
make docs
|
|
|
|
cd ../qtmacextras
|
|
|
|
make docs
|
|
|
|
|
|
|
|
sudo cp -f -r ../qtbase/doc /usr/local/Qt-5.6.0/
|
|
|
|
|
2016-04-18 23:16:06 +08:00
|
|
|
7. Создаем ZIP файл
|
2016-03-24 00:49:25 +08:00
|
|
|
|
|
|
|
cd /usr/local
|
|
|
|
zip -r ~/Desktop/qt5.6.0_mac.zip Qt-5.6.0/*
|
|
|
|
|
|
|
|
Установка
|
|
|
|
- повторяем пункт 1, command line tools ставим в зависимости от операционки разработки
|
|
|
|
- Распаковываем
|
|
|
|
- повторяем пункт 4
|