Получение исходников (Git и Qt)

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
(новая документация)
(перевод в движении)
Строка 1: Строка 1:
-
=== Get the source code ===
+
=== Получение исходников ===
   
   
-
This section describes how to set up your local development environment, how to use git to get Qt's source code, and how to build the libraries on your machine.  
+
Эта статья описывает как настроить ваше локальное окружение для разработки, как использовать Git, чтобы получить исходный код Qt, и как собрать библиотеки на вашей машине.  
-
=== Setting up your machine ===
+
=== Настройка вашей машины ===
-
Qt can be built and developed on many different platforms. The operating systems for development are Mac OS X, Windows and Linux, with different requirements on compilers and third-party libraries. Developing Qt requires building it from source, therefore the standard requirements apply:  
+
Qt может быть собрана и использована на множестве различных платформ. Операционные системы для разработки - Mac OS X, Windows и Linux, с различными требованиями к компиляторам и библиотекам третьих чторон. Разработка с Qt требует сборки её из исходного кода, таким образом стандартными требованиями являются:  
-
Qt for Embedded Linux Requirements
+
Требования Qt для Embedded Linux
-
Qt for Mac OS X Requirements
+
Требования Qt для Mac OS X
-
Qt for Windows CE Requirements
+
Требования Qt для Windows CE
-
Qt for Windows Requirements
+
Требования Qt для Windows
-
Qt for X11 Requirements
+
Требования Qt для X11  
-
In addition you need to have Perl installed.  
+
Дополнительно, вам необходимо иметь установленный Perl.  
-
Qt's source code is developed using Git , an open source, distributed version control system. You need to have Git >= 1.6.x installed.  
+
Исходный код Qt разрабатывается с использованием Git - распределённой системы управления версиями с открытым исходным кодом. Вам необходимо иметь установленный Git >= 1.6.x.  
-
For more information please see the separate GitInstallation wiki page.  
+
Подробности смотрите на отдельной странице [[GitInstallation]].  
-
=== Cloning Qt ===  
+
=== Клонирование Qt ===  
After setting up your machine by installing the required tools and libraries for building Qt download the source code by cloning the Qt git repository, using the following commands:  
After setting up your machine by installing the required tools and libraries for building Qt download the source code by cloning the Qt git repository, using the following commands:  
git clone git://gitorious.org/qt/qt.git  
git clone git://gitorious.org/qt/qt.git  
cd qt  
cd qt  
-
=== Building Qt ===  
+
=== Сборка Qt ===  
Build Qt the same way you would for an official Qt release. The standard build/installation instructions apply:  
Build Qt the same way you would for an official Qt release. The standard build/installation instructions apply:  
Installing Qt for Embedded Linux  
Installing Qt for Embedded Linux  
Строка 31: Строка 31:
Installing Qt on X11 Platforms  
Installing Qt on X11 Platforms  
-
=== Generate the Documentation ===  
+
=== Создание документации ===  
Since the repository is just the source code rather than a complete package the HTML documentation pages are not include. If you use a repository for a previously released Qt version, then you can go to the online documentation or download a package .  
Since the repository is just the source code rather than a complete package the HTML documentation pages are not include. If you use a repository for a previously released Qt version, then you can go to the online documentation or download a package .  
Строка 39: Строка 39:
after running configure and building the libraries else.  
after running configure and building the libraries else.  
-
=== What's Next? ===  
+
=== Что дальше? ===  
To learn how to make changes to Qt and upload them for submission upstream see QtContributionGuidelines . If you would like to simply stay up-to-date with your sources and silently follow the development of Qt simply run git pull in your source code directory to pull in the latest changes.
To learn how to make changes to Qt and upload them for submission upstream see QtContributionGuidelines . If you would like to simply stay up-to-date with your sources and silently follow the development of Qt simply run git pull in your source code directory to pull in the latest changes.

Версия 18:33, 27 июня 2009

Содержание

Получение исходников

Эта статья описывает как настроить ваше локальное окружение для разработки, как использовать Git, чтобы получить исходный код Qt, и как собрать библиотеки на вашей машине.

Настройка вашей машины

Qt может быть собрана и использована на множестве различных платформ. Операционные системы для разработки - Mac OS X, Windows и Linux, с различными требованиями к компиляторам и библиотекам третьих чторон. Разработка с Qt требует сборки её из исходного кода, таким образом стандартными требованиями являются: Требования Qt для Embedded Linux Требования Qt для Mac OS X Требования Qt для Windows CE Требования Qt для Windows Требования Qt для X11

Дополнительно, вам необходимо иметь установленный Perl.

Исходный код Qt разрабатывается с использованием Git - распределённой системы управления версиями с открытым исходным кодом. Вам необходимо иметь установленный Git >= 1.6.x.

Подробности смотрите на отдельной странице GitInstallation.

Клонирование Qt

After setting up your machine by installing the required tools and libraries for building Qt download the source code by cloning the Qt git repository, using the following commands: git clone git://gitorious.org/qt/qt.git cd qt

Сборка Qt

Build Qt the same way you would for an official Qt release. The standard build/installation instructions apply: Installing Qt for Embedded Linux Installing Qt on Mac OS X Installing Qt on Windows Installing Qt on Windows CE Installing Qt on X11 Platforms

Создание документации

Since the repository is just the source code rather than a complete package the HTML documentation pages are not include. If you use a repository for a previously released Qt version, then you can go to the online documentation or download a package .

For documentation that is not yet available online or through a package you have to generate the documentation yourself. To do that, run

make docs 

after running configure and building the libraries else.

Что дальше?

To learn how to make changes to Qt and upload them for submission upstream see QtContributionGuidelines . If you would like to simply stay up-to-date with your sources and silently follow the development of Qt simply run git pull in your source code directory to pull in the latest changes.