development:compiling:player:windows:visual-studio
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
development:compiling:player:windows:visual-studio [2013/03/17 08:09] – fix headers rikki-mongoose | development:compiling:player:windows:visual-studio [2016/10/26 17:13] – Update to 2015 ghabry | ||
---|---|---|---|
Line 6: | Line 6: | ||
Kind of obvious as you can't compile something you haven' | Kind of obvious as you can't compile something you haven' | ||
- | ====Visual C++ 2010/2012==== | + | ====Visual C++ 2015==== |
- | You can find Visual Studio | + | You can find Visual Studio |
- | Visual Studio | + | Visual Studio |
+ | |||
+ | Older compilers won't work because they don't support C++11. If you have already installed Visual Studio 2015 make sure that you update it to Update 2. | ||
====Precompiled libraries==== | ====Precompiled libraries==== | ||
EasyRPG Player needs several libraries for compiling. It would be a bit tedious getting all those libraries one by one, so we have prepared a [[ | EasyRPG Player needs several libraries for compiling. It would be a bit tedious getting all those libraries one by one, so we have prepared a [[ | ||
- | https:// | + | https:// |
- | === Compiling with Visual Studio | + | === Compiling with Visual Studio |
- | To compile open a Visual Studio Command Prompt (32 or 64 bit) and execute '' | + | |
- | ==== Known problems ==== | + | Follow the instructions in the '' |
- | ==== “Already defined” linker error ==== | + | |
- | It happens because of because of standart C++ templates, that are released in Visual Studio libs and in additional UNIX libs too. So, you have to exclude one of them to use another. | + | == Before compiling == |
- | Just add one of them, go to Project Properties | + | Create an environment variable EASYDEV_MSVC that points |
- | === LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt === | + | == Compiling |
- | This error happens because of conflict of two versions of cvtres.exe if you have Visual Studio 1010 and 2012 isntalled on same PC. To fix it, go to the bin directory of Visual Studio | + | To compile open a Visual Studio |
- | It willn’t break linker of 2010, | + | ''' |
- | + | powershell | |
- | == Compiling with Visual Studio 2012 == | + | build v140 |
- | '' | + | ''' |
- | + | ||
- | To compile open a Visual Studio Command Prompt (32 or 64 bit). The Command Prompt can be found in the start menu. | + | |
- | + | ||
- | The precompiled libraries are only tested with VS2010 and don't compile directly using VS2012. Possible workarounds: | + | |
- | + | ||
- | - Install Visual Studio 2010 too and follow the instructions above. | + | |
- | - Install the [[https:// | + | |
- | - Compile using '' | + | |
- | - Install [[https:// | + | |
- | + | ||
- | === After compiling === | + | |
- | The resulting files appear in vs2010. | + | |
- | + | ||
- | The boost ([[http:// | + | |
- | + | ||
- | You will need to manually add the EASYDEV_MSVC enviroment variable and target the path vs2010 otherwise the EasyRPG solution file can't find the libraries. | + | |
- | + | ||
- | To create new environment variables enter the " | + | |
====Used libraries==== | ====Used libraries==== | ||
Line 56: | Line 38: | ||
If you want to compile by yourself: | If you want to compile by yourself: | ||
- | | + | * expat |
- | | + | * freetype |
- | * freetype | + | * harfbuzz |
- | * libjpeg 9 | + | * icu4c |
- | * libmad 0.15.1b | + | * libmodplug |
- | * libmikmod 3.2.0 | + | * libogg |
- | * libogg | + | * libpng |
- | * libpng | + | * libsndfile |
- | * libvorbis | + | * libvorbis |
- | * libvorbisfile | + | * libvorbisfile (included with libvorbis) |
+ | * mpg123 | ||
* native_midi (included with SDL_mixer) | * native_midi (included with SDL_mixer) | ||
- | * Pixman 0.28.2 | + | * pixman |
- | * SDL 1.2.15 | + | * SDL2 |
- | * SDL_image 1.2.12 (BMP, GIF, JPG, PNG support) | + | * SDL2_mixer |
- | * SDL_mixer 1.2.12 (WAV, MOD, MP3, OGG and MID support) | + | * speexdsp |
- | * SDL_ttf 2.0.11 | + | * zlib |
- | * zlib 1.2.7 | + | |
===== Compiling Player ===== | ===== Compiling Player ===== | ||
- | You need to place the [[https:// | + | You need to place the [[https:// |
- | Open the solution file in '' | + | Open the solution file in '' |
The Player executable should be in the folder '' | The Player executable should be in the folder '' | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== " | ||
+ | |||
+ | This usually happens if you link against the wrong visual studio runtime and shouldn' | ||
+ | |||
+ | If you got the libraries from other sources make sure that their runtime library (Project Properties -> C++ -> Code generation) is set to " | ||
+ |
development/compiling/player/windows/visual-studio.txt · Last modified: 2022/12/28 16:19 by carstene1ns