Skip to content

Commit

Permalink
setting for visual studio
Browse files Browse the repository at this point in the history
  • Loading branch information
j2doll committed Feb 3, 2019
1 parent 555b982 commit 266b7d6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Qlibxlsxwriter/Qlibxlsxwriter.pri
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# libxlsxwriter FreeBSD license https://github.com/jmcnamara/libxlsxwriter
#########################

msvc:QMAKE_CXXFLAGS += /utf-8

isEmpty(QLIBXLSXWRITER_PARENTPATH) {
message( 'QLIBXLSXWRITER_PARENTPATH is empty. use default value.' )
QLIBXLSXWRITER_PARENTPATH = ../libxlsxwriter/
Expand Down
23 changes: 16 additions & 7 deletions Setting.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@ pacman -S mingw-w64-x86_64-toolchain git gcc make zlib-devel
- See [https://github.com/j2doll/Qlibxlsxwriter/issues/1](https://github.com/j2doll/Qlibxlsxwriter/issues/1).

## Settings for Visual Studio 2017 with Qt5
- Install zlib using NuGet. You may build it yourself using zlib source code, but it will be a very cumbersome task.
- Go to Visual Studio 2017 Menu. 'Tools' > 'NuGet Package Manager' > 'Package Manager Console'
- Type installation command.
```powershell
Install-Package zlib-msvc-x64 -Version 1.2.11.8900
```
- See [https://www.nuget.org/packages/zlib-msvc-x64/](https://www.nuget.org/packages/zlib-msvc-x64/) for more information.

1. 'Qt VS Tools' / 'Open Qt Project File (*.pro)'

2. Save *.sln and *.vcxproj

3. 'Tools' / 'NuGet Package Manager' / 'Package Manager Console'

4. type 'Install-Package zlib-msvc-x64 -Version 1.2.11.8900' in 'Package Manager Console'.

- See https://www.nuget.org/packages/zlib-msvc-x64/ for more information.

:boom: If follwing Error Message is found, youe must install zlib-dev for Visual Studio.
- 'Cannot open include file: 'zlib.h': No such file or directory'

5. Build project

0 comments on commit 266b7d6

Please sign in to comment.