Hacking:Tools:QtCreator:Windows10: Difference between revisions
improve About section |
Ronanletiec (talk | contribs) Changing valentina to seamly / seamly2D |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
* Install Qt 5.8 on 64-bit 4-processor desktop with Windows 10. ''Note that Qt 5.8 contains Qt Creator 4.2.0.'' |
* Install Qt 5.8 on 64-bit 4-processor desktop with Windows 10. ''Note that Qt 5.8 contains Qt Creator 4.2.0.'' |
||
* Confirm Qt installation of MinGW |
* Confirm Qt installation of MinGW |
||
* Configure |
* Configure Seamly2D project with compiler build options for Release and Debug |
||
Qt Framework and Qt Creator are built to work with 32-bit MinGW ('''Min'''imalist '''G'''NU C/C++ compiler for '''W'''indows). |
Qt Framework and Qt Creator are built to work with 32-bit MinGW ('''Min'''imalist '''G'''NU C/C++ compiler for '''W'''indows). |
||
''Note: There are projects which have built Qt using the 64-bit MinGW compiler, but these don't seem to be kept up to date. And they may produce unexpected results for |
''Note: There are projects which have built Qt using the 64-bit MinGW compiler, but these don't seem to be kept up to date. And they may produce unexpected results for Seamly2D.'' |
||
== Install Qt 5.8 == |
== Install Qt 5.8 == |
||
Line 21: | Line 21: | ||
During installation you may accept the defaults for components to install, or you may select what you need but '''do not change any options for MinGW.''' . In this case I deselected all Qt versions except 5.8. Under the '''Tools''' section '''QtCreator''' is unselectable -- it will always be installed. |
During installation you may accept the defaults for components to install, or you may select what you need but '''do not change any options for MinGW.''' . In this case I deselected all Qt versions except 5.8. Under the '''Tools''' section '''QtCreator''' is unselectable -- it will always be installed. |
||
[[File:QtComponents.png|none|thumb|Installation components]] |
|||
== Confirm C++ compiler |
== Confirm C++ compiler == |
||
Open Qt Creator and select '''Tools''' from the top bar menu. Select '''Options''' from the picklist. Select '''Build & Run''' from the left side menu. |
Open Qt Creator and select '''Tools''' from the top bar menu. Select '''Options''' from the picklist. Select '''Build & Run''' from the left side menu. |
||
Select the '''Compilers''' tab. |
Select the '''Compilers''' tab. |
||
[[File:QtProjectBuildSettings.png|none|thumb|800x800px|Confirm compiler was detected]] |
|||
The '''Auto-detected''' section should list the C++ compiler as '''MinGW 5.8.0 32bit2'''. Note the directory for the C++ compiler.<br /> |
|||
⚫ | |||
[[File:QtToolsOptionsBuild&Run.png|700x700px]] |
|||
⚫ | |||
⚫ | |||
⚫ | |||
The '''Auto-detected''' section should list '''Qt 5.8.0 MinGW 32bit'''. Note the directory for qmake. |
|||
⚫ | |||
[[File:QtProjectBuildSettingsQMake.png|none|thumb|800x800px|Confirm qmake was detected]] |
|||
== Confirm compiler kit == |
|||
⚫ | |||
[[File:QtProjectBuildSettingsKit.png|none|thumb|800x800px|Confirm compiler kit was detected]] |
|||
⚫ | |||
⚫ | |||
⚫ | In the Directory field, select the directory containing your local clone of |
||
Select the '''General''' tab. |
|||
⚫ | |||
⚫ | In the '''Directory''' field, select the directory containing your local clone of Seamly2D, or if you have multiple Qt projects select the parent directory of your projects.<br />Check the '''Open Compile Output pane when building''' option, leave all other options at default settings.<br />Click '''Apply''' and '''OK''' to close the '''Tools/Options''' window. |
||
⚫ | |||
[[File:QtProjectBuildSettingsGeneral.png|alt=|none|thumb|800x800px|Select Seamly2D directory, check Open Compile Output pane when building]] |
|||
⚫ | |||
<br /> |
|||
Click the green '''Welcome''' icon in the left side menu. |
|||
[[File:Projectbuildsettings.png|frameless|500x500px]] |
|||
[[File:QtProjectWelcomeIcon.png|none|thumb|Select Welcome icon]] |
|||
⚫ | The '''Projects''' Window will appear, click the '''Open Project''' button, browse to your local clone of Seamly2D and select the '''Seamly2D''' file.<br />The '''Configure Project''' window opens, click the '''Configure Project''' button.<br />Click on the '''Projects''' wrench icon in the left side menu, then select the '''Build''' hammer icon to open the '''Build Settings''' options. |
||
Select the '''Run''' green triangle icon to open the '''Run Settings''' options.<br />Next to '''Run Configuration''' select '''valentina''' from the picklist.<br /> |
|||
[[File:QtProjectBuildSettingsHammerIcon.png|none|thumb|420x420px|Select Projects, Build]] |
|||
Next to '''Edit Build Configuration''', select '''Debug''' from the picklist. |
|||
[[File:QtProjectRunSettings.png|frameless|500x500px]] |
|||
[[File:QtProjectBuildSettingsEditBuildDebug.png|none|thumb|300x300px|Select Debug from picklist]] |
|||
⚫ | |||
[[File:QtProjectBuildSettingsDebug.png|none|thumb|800x800px|Debug Build settings]] |
|||
Go back to '''Edit Build Configuration''', select '''Release''', and enter '''-j2''' in '''Make Arguments''' field of '''Make'''/'''Details''' section. |
|||
⚫ | |||
[[File:QtProjectBuildSettingsEditBuildRelease.png|none|thumb|Select Release from picklist]] |
|||
⚫ | |||
[[File:QtProjectBuildSettingsRunIcon.png|none|thumb|Select Run green triangle icon]] |
|||
Next to '''Run Configuration''' select '''Seamly2D''' from the picklist. |
|||
[[File:QtProjectRunSettingsValentina.png|none|thumb|Select Seamly2D from picklist]] |
|||
⚫ | |||
Select '''File''' from the main top bar menu and select '''Save All'''. |
Select '''File''' from the main top bar menu and select '''Save All'''. |
||
⚫ | |||
⚫ | |||
⚫ | |||
[[File:QtBuildMenu.png|none|thumb|Build menu]] |
|||
⚫ |
Latest revision as of 19:08, 13 April 2018
About this page[edit | edit source]
This page contains steps to:
- Install Qt 5.8 on 64-bit 4-processor desktop with Windows 10. Note that Qt 5.8 contains Qt Creator 4.2.0.
- Confirm Qt installation of MinGW
- Configure Seamly2D project with compiler build options for Release and Debug
Qt Framework and Qt Creator are built to work with 32-bit MinGW (Minimalist GNU C/C++ compiler for Windows).
Note: There are projects which have built Qt using the 64-bit MinGW compiler, but these don't seem to be kept up to date. And they may produce unexpected results for Seamly2D.
Install Qt 5.8[edit | edit source]
Create a Qt account at https://account.qt.io/, then login.
Go to https://www.qt.io/download-open-source/ and click on the Download button. The correct file to download for your operating system will be downloaded, in this case the file qt-unified-windows-x86-2.0.4-online was downloaded..
Open your Downloads folder, right click on the file, and select Run as administrator. Follow the install instructions.
During installation you may accept the defaults for components to install, or you may select what you need but do not change any options for MinGW. . In this case I deselected all Qt versions except 5.8. Under the Tools section QtCreator is unselectable -- it will always be installed.
![](http://static.miraheze.org/seamlywiki/d/de/QtComponents.png)
Confirm C++ compiler[edit | edit source]
Open Qt Creator and select Tools from the top bar menu. Select Options from the picklist. Select Build & Run from the left side menu.
Select the Compilers tab.
![](http://static.miraheze.org/seamlywiki/thumb/9/9d/QtProjectBuildSettings.png/800px-QtProjectBuildSettings.png)
The Auto-detected section should list the C++ compiler as MinGW 5.8.0 32bit2. Note the directory for the C++ compiler.
Confirm qmake[edit | edit source]
Select the Qt Version tab.
The Auto-detected section should list Qt 5.8.0 MinGW 32bit. Note the directory for qmake.
![](http://static.miraheze.org/seamlywiki/thumb/9/95/QtProjectBuildSettingsQMake.png/800px-QtProjectBuildSettingsQMake.png)
Confirm compiler kit[edit | edit source]
Select the Kits tab.
The Auto-detected kit should be Desktop Qt 5.8 MinGW 32bit (default). Note the directory for the compiler kit.
![](http://static.miraheze.org/seamlywiki/thumb/c/ce/QtProjectBuildSettingsKit.png/800px-QtProjectBuildSettingsKit.png)
Configure the Seamly2D project[edit | edit source]
Select the General tab.
In the Directory field, select the directory containing your local clone of Seamly2D, or if you have multiple Qt projects select the parent directory of your projects.
Check the Open Compile Output pane when building option, leave all other options at default settings.
Click Apply and OK to close the Tools/Options window.
![](http://static.miraheze.org/seamlywiki/thumb/b/be/QtProjectBuildSettingsGeneral.png/800px-QtProjectBuildSettingsGeneral.png)
Click the green Welcome icon in the left side menu.
![](http://static.miraheze.org/seamlywiki/thumb/d/d0/QtProjectWelcomeIcon.png/300px-QtProjectWelcomeIcon.png)
The Projects Window will appear, click the Open Project button, browse to your local clone of Seamly2D and select the Seamly2D file.
The Configure Project window opens, click the Configure Project button.
Click on the Projects wrench icon in the left side menu, then select the Build hammer icon to open the Build Settings options.
![](http://static.miraheze.org/seamlywiki/thumb/2/28/QtProjectBuildSettingsHammerIcon.png/300px-QtProjectBuildSettingsHammerIcon.png)
Next to Edit Build Configuration, select Debug from the picklist.
![](http://static.miraheze.org/seamlywiki/thumb/e/e0/QtProjectBuildSettingsEditBuildDebug.png/300px-QtProjectBuildSettingsEditBuildDebug.png)
Click on the Details button for the Make section under Build Steps.
Enter -j2 in the Make Arguments field to enable use of 2 processors (change this to match your system - don't use all your processors!).
![](http://static.miraheze.org/seamlywiki/thumb/a/aa/QtProjectBuildSettingsDebug.png/800px-QtProjectBuildSettingsDebug.png)
Go back to Edit Build Configuration, select Release, and enter -j2 in Make Arguments field of Make/Details section.
![](http://static.miraheze.org/seamlywiki/thumb/b/bb/QtProjectBuildSettingsEditBuildRelease.png/300px-QtProjectBuildSettingsEditBuildRelease.png)
Select the Run green triangle icon to open the Run Settings options.
![](http://static.miraheze.org/seamlywiki/thumb/c/cc/QtProjectBuildSettingsRunIcon.png/300px-QtProjectBuildSettingsRunIcon.png)
Next to Run Configuration select Seamly2D from the picklist.
![](http://static.miraheze.org/seamlywiki/thumb/d/d6/QtProjectRunSettingsValentina.png/300px-QtProjectRunSettingsValentina.png)
Save configuration and build Seamly2D[edit | edit source]
Select File from the main top bar menu and select Save All.
From the Build menu, select Run qmake followed by Build Seamly2D.
Subsequent builds require Clean Project Seamly2D, Run qmake, Rebuild Project Seamly2D.
![](http://static.miraheze.org/seamlywiki/thumb/f/f1/QtBuildMenu.png/300px-QtBuildMenu.png)
Now smile and relax, you're done!