Update BuildGuideQtCreator.md

This commit is contained in:
Matt Feemster 2016-03-01 17:58:34 -08:00
parent 4cffd47f47
commit 2d19b8a948

View File

@ -1,25 +1,28 @@
#Building Guide for Fractorium Using MSVC2013 and Qt Creator (64 bit) #Building Guide for Fractorium Using MSVC2013 and Qt Creator (64 bit)
##Requirements ##Requirements
Install git. Install [git](https://git-scm.com/downloads).
Install Microsoft Visual Studio 2013 or later, then install the latest updates. Install [Microsoft Visual Studio 2013 or later](https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx), then install the latest updates.
Install Qt for Windows 64-bit (VS 2013) 5.4 or later (http://www.qt.io/download/). Install Qt for Windows 64-bit (VS 2013) 5.4 or later (http://www.qt.io/download/).
##Get this project ##Get this project
Open up the Visual Studio x64 Native Tools Command Prompt Open up the Visual Studio x64 Native Tools Command Prompt
Create a folder named fractorium: Create a new folder in your development area named fractorium:
`mkdir fractorium `mkdir fractorium`
`cd fractorium
`git clone https://github.com/mfeemster/fractorium.git `cd fractorium`
`git clone https://github.com/mfeemster/fractorium.git`
##Prerequisites ##Prerequisites
There are six prerequisite dependencies. Two of them must be downloaded manually, and the rest can be cloned from git. There are six prerequisite dependencies. Two of them must be downloaded manually:
[libjpeg](http://www.ijg.org/)
[libjpeg](http://www.ijg.org/)
[tbb](https://www.threadingbuildingblocks.org/download) [tbb](https://www.threadingbuildingblocks.org/download)
Extract them into the folder you created such that they are arranged like so: Extract them into the folder you created such that they are arranged like so:
@ -31,26 +34,12 @@ Extract them into the folder you created such that they are arranged like so:
├─tbb ├─tbb
``` ```
Go into the fractorium folder and run this script which will get the rest of the prerequisites and build them: Go into the fractorium folder and run this script which will get the rest of the prerequisites from git and build them:
`cd fractorium `cd fractorium
`makedeps.bat `makedeps.bat
Now you should already have these files in the folder: This will download and build `glm libpng libxml zlib`. You will have a folder structure like this:
```
libjpeg.lib
libpng.lib
libxml2.lib
libxml2.dll
tbb.dll
tbb.lib
zlib.lib
```
**All Done!**
<a id="folder-structure"></a>
You shuold have a folder structure like this:
``` ```
[YOUR ROOT FOLDER] [YOUR ROOT FOLDER]
@ -61,15 +50,24 @@ You shuold have a folder structure like this:
├─libxml2 ├─libxml2
├─tbb ├─tbb
└─fractorium └─fractorium
├─Deps
├─libjpeg.lib
├─libpng.lib
├─libxml2.lib
├─libxml2.dll
├─tbb.dll
├─tbb.lib
├─zlib.lib
``` ```
##Begin to build ##Begin build with Qt Creator:
Open Qt Project `fractorium/main.pro` using Qt Creator with config like *Desktop Qt 5.5.1 MSVC2013 OpenGL 64bit* Open the Qt Project `fractorium/main.pro` using Qt Creator with config like *Desktop Qt 5.5.1 MSVC2013 OpenGL 64bit*
Select "shadow build" in "Edit build configuration" for both `Debug` and `Release` Select "shadow build" in "Edit build configuration" for both `Debug` and `Release`
Switch to `Release` configuration for all projects and Build. Switch to `Release` configuration for all projects and build.
You can find outputs under `fractorium\Bin\release` several minutes later if no error occurs. The outputs will be placed in `fractorium\Bin\release` several minutes later if no error occurs.
``` ```
Ember.dll Ember.dll
@ -83,6 +81,14 @@ embergenome.exe
emberrender.exe emberrender.exe
fractorium.exe fractorium.exe
``` ```
##Begin build with Visual Studio:
Open the file Fractorium.sln under Builds/MSVC/2013
Set the configuration to release, and build all.
The outputs will be the same and will be placed in:
`Bin/x64/Release
To run it, just double click any of the .exe files. To run it, just double click any of the .exe files.