Hacking:Tools:QtCreator:Ubuntu: Difference between revisions
Content added Content deleted
(Improved phrase - Valentina build & run project window) |
Ronanletiec (talk | contribs) (Changing valentina to seamly / seamly2D) |
||
Line 10: | Line 10: | ||
** custom compiler kit |
** custom compiler kit |
||
** system environment library variables |
** system environment library variables |
||
* Configure |
* Configure Seamly2D project in Qt Creator to: |
||
** compile with custom compiler kit |
** compile with custom compiler kit |
||
** compile for Release or Debug |
** compile for Release or Debug |
||
Line 16: | Line 16: | ||
Qt Creator's definitions for a custom compiler, custom compiler kit, and custom library paths may be overwritten during an upgrade.<br /> |
Qt Creator's definitions for a custom compiler, custom compiler kit, and custom library paths may be overwritten during an upgrade.<br /> |
||
The custom compiler & custom compiler kit are required to take advantage of multiprocessors.<br /> |
The custom compiler & custom compiler kit are required to take advantage of multiprocessors.<br /> |
||
The library paths are required to enable libraries to be found at run-time during qmake and make steps when compiling |
The library paths are required to enable libraries to be found at run-time during qmake and make steps when compiling Seamly2D code.<br /> |
||
== Upgrade to Qt 5.7 == |
== Upgrade to Qt 5.7 == |
||
Line 95: | Line 95: | ||
* Click on '''Apply''' to save, then '''OK''' to close the window. |
* Click on '''Apply''' to save, then '''OK''' to close the window. |
||
== Configure |
== Configure Seamly2D with custom compiler kit == |
||
In Qt Creator, select '''File/Open File or Project'''. The |
In Qt Creator, select '''File/Open File or Project'''. The Seamly2D '''Build & Run''' project window will open, or the '''Configure Project''' window will open. <br /> |
||
If the '''Configure Project''' window opens:<br /> |
If the '''Configure Project''' window opens:<br /> |
||
* Check the box next to your custom compiler kit<br /> |
* Check the box next to your custom compiler kit<br /> |
||
* Click '''Configure Project''' at bottom of window to save and close. The '''Build & Run''' project window will open. <br /> |
* Click '''Configure Project''' at bottom of window to save and close. The '''Build & Run''' project window will open. <br /> |
||
In the |
In the Seamly2D '''Build & Run''' project window: <br /> |
||
* Click on '''Projects''' in left side menu. The |
* Click on '''Projects''' in left side menu. The Seamly2D '''Build & Run''' window will open. <br /> |
||
In the |
In the Seamly2D '''Build & Run''' window: <br /> |
||
* Click on the 'Build' half of the '''Build | Run''' button near the top of the window. The 'Build' half of the button will turn light grey. <br /> |
* Click on the 'Build' half of the '''Build | Run''' button near the top of the window. The 'Build' half of the button will turn light grey. <br /> |
||
* In '''Build Settings, Edit build configuration''' section, select '''Release''' from the picklist. (''"Release" is best for building the nightly code, "Debug" is used for debugging your code if you are a code contributor to |
* In '''Build Settings, Edit build configuration''' section, select '''Release''' from the picklist. (''"Release" is best for building the nightly code, "Debug" is used for debugging your code if you are a code contributor to Seamly2D'').<br /> |
||
* In '''General''' section, check the box next to '''Shadow build'''.<br /> |
* In '''General''' section, check the box next to '''Shadow build'''.<br /> |
||
* In '''Build Steps, Make''' section, click on '''Details'''.<br /> |
* In '''Build Steps, Make''' section, click on '''Details'''.<br /> |
||
Line 127: | Line 127: | ||
* Confirm that '''Compiler''' is your custom compiler and '''Qt Version''' is correct.<br /> |
* Confirm that '''Compiler''' is your custom compiler and '''Qt Version''' is correct.<br /> |
||
* Click the '''Make Default''' button. <br /> |
* Click the '''Make Default''' button. <br /> |
||
* Click '''Apply''' then '''OK''' to save and return to the |
* Click '''Apply''' then '''OK''' to save and return to the Seamly2D '''Build & Run''' window.<br /> |
||
In the |
In the Seamly2D '''Build & Run''' window:<br /> |
||
* Click on the '''Monitor''' icon in the lower left side menu. A dark box appears showing three columns '''Project''', '''Build''', '''Run'''. <br /> |
* Click on the '''Monitor''' icon in the lower left side menu. A dark box appears showing three columns '''Project''', '''Build''', '''Run'''. <br /> |
||
** Under 'Project' select ' |
** Under 'Project' select 'Seamly2D'<br /> |
||
** Under 'Build' select 'Release'<br /> |
** Under 'Build' select 'Release'<br /> |
||
** Under 'Run' select ' |
** Under 'Run' select 'Seamly2D'<br /> |
||
* Select '''File/Save All''' from QT Creator top bar menu.<br /> |
* Select '''File/Save All''' from QT Creator top bar menu.<br /> |
||