Skip to content

Commit

Permalink
Fix compiling on Windows with Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Oct 15, 2021
1 parent 6901c5f commit c82ec8b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ CMakeDoxy*
compile_commands.json
*.apk
*.zip
# Visual Studio
*.vcxproj*
*.sln
.vs/

# Optional user provided library folder
lib/irrlichtmt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ It is highly recommended to use vcpkg as package manager.

After you successfully built vcpkg you can easily install the required libraries:
```powershell
vcpkg install zlib zstd curl[winssl] openal-soft libvorbis libogg sqlite3 freetype luajit gmp jsoncpp --triplet x64-windows
vcpkg install zlib zstd curl[winssl] openal-soft libvorbis libogg libjpeg-turbo sqlite3 freetype luajit gmp jsoncpp opengl-registry --triplet x64-windows
```

- **Don't forget about IrrlichtMt.** The easiest way is to clone it to `lib/irrlichtmt` as described in the Linux section.
Expand Down
1 change: 1 addition & 0 deletions src/client/imagefilters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <cmath>
#include <cassert>
#include <vector>
#include <algorithm>

// Simple 2D bitmap class with just the functionality needed here
class Bitmap {
Expand Down
1 change: 1 addition & 0 deletions src/filesys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace fs
#include <windows.h>
#include <shlwapi.h>
#include <io.h>
#include <direct.h>

std::vector<DirListNode> GetDirListing(const std::string &pathstring)
{
Expand Down

0 comments on commit c82ec8b

Please sign in to comment.