Updated prerequisites and build instructions. Updated Windows install.

This commit is contained in:
Jim Evins
2017-12-13 17:09:20 -05:00
parent 25872eb32c
commit 5e9f8355b9
4 changed files with 120 additions and 28 deletions
+48 -7
View File
@@ -15,27 +15,35 @@ MSYS/MINGW
- MSYS/MINGW, including the following packages
+ mingw32-gcc-g++
+ mingw32-libz
- CMake 2.8.12+
- Qt5 5.4+ for MINGW
- CMake 3.2+
- Qt5 5.9+ for MINGW
Make sure that Qt tools are in your executable search path. For example, add something like this to your .profile file:
Make sure that Qt tools and CMake are in your executable search path. For example, add something like this to your .profile file:
```
export PATH=/c/Qt/Qt5.6.0/5.6/mingw49_32/bin:${PATH}
export PATH=/c/Qt/5.9.3/mingw53_32/bin:${PATH}
export PATH="/c/Program Files/CMake/bin":${PATH}
```
The exact path will depend on the version of Qt and MINGW you have installed.
The exact paths will depend on the version of Qt and CMake you have installed.
### Compile and Install
gLabels uses the CMake meta build system. From the MSYS shell, type the following commands:
From an MSYS shell, type the following commands:
<pre>
$ cd <i>glabels_source_directory</i>
$ mkdir build
$ cd build
$ cmake -G "MSYS Makefiles" ..
$ make
</pre>
To install glabels, run an MSYS shell `as administrator`, and type the following commands:
<pre>
$ cd <i>glabels_source_directory</i>/build
$ make install
</pre>
@@ -44,4 +52,37 @@ $ make install
Visual Studio
-------------
TBD
### Prerequisites
- Visual Studio (these instructions are for _Visual Studio 15 2017 Win64_)
- CMake 3.2+
- Qt5 5.9+ for your version of Visual Studio
Make sure that CMake and the Qt tools are in your executable search path. For example, you may need to add something like the following to your PATH environment variable:
```
c:\Program Files\CMake\bin
c:\Qt\5.9.3\msvc2017_64\bin
```
The exact paths will depend on the version of Qt and CMake you have installed.
### Compile and Install
From a Windows Power Shell, use CMake to create and build a Visual Studio Solution:
<pre>
&gt; cd <i>glabels_source_directory</i>
&gt; mkdir build
&gt; cd build
&gt; cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_PREFIX_PATH="c:\qt\5.9.3\msvc2017_64" ..
&gt; cmake --build . --config Release
</pre>
To install, run a Windows Power Shell `as administrator`, and type the following commands:
<pre>
&gt; cd <i>glabels_source_directory</i>/build
&gt; cmake --build . --config Release --target INSTALL
</pre>