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 revision | ||
development:compiling:player:windows:visual-studio [2014/02/28 18:33] – Removed library versions, this document has not been updated. fdelapena | development:compiling:player:windows:visual-studio [2022/12/28 16:19] (current) – removed outdated guide carstene1ns | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compiling Player on Visual Studio ====== | ====== Compiling Player on Visual Studio ====== | ||
- | ===== Things Needed ===== | + | This guide has been updated and moved to the forums: |
- | ====EasyRPG Source Code==== | + | https://community.easyrpg.org/ |
- | Kind of obvious as you can't compile something you haven' | + | |
- | + | ||
- | ====Visual C++ 2010/ | + | |
- | You can find Visual Studio 2010 and 2012 on the [[http:// | + | |
- | Visual Studio Express is the free version. | + | |
- | + | ||
- | ====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 [[ | + | |
- | https://github.com/Ghabry/easyrpg-win32-libs|git repository]] with needed dependencies (maintained by Ghabry). | + | |
- | + | ||
- | === Compiling with Visual Studio 2010 === | + | |
- | To compile open a Visual Studio Command Prompt (32 or 64 bit) and execute '' | + | |
- | + | ||
- | == Compiling with Visual Studio 2012 == | + | |
- | '' | + | |
- | + | ||
- | 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==== | + | |
- | '' | + | |
- | + | ||
- | If you want to compile by yourself: | + | |
- | + | ||
- | * DirectX SDK (February 2010) | + | |
- | * expat | + | |
- | * freetype | + | |
- | * libjpeg | + | |
- | * libmad | + | |
- | * libmikmod | + | |
- | * libogg | + | |
- | * libpng | + | |
- | * libvorbis | + | |
- | * libvorbisfile (included with libvorbis) | + | |
- | * native_midi (included with SDL_mixer) | + | |
- | * Pixman | + | |
- | * SDL2 | + | |
- | * SDL2_mixer (WAV, MOD, MP3, OGG and MID support) | + | |
- | * zlib | + | |
- | + | ||
- | ===== Compiling Player ===== | + | |
- | + | ||
- | You need to place the [[https:// | + | |
- | + | ||
- | Open the solution file in '' | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | ==== LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt ==== | + | |
- | + | ||
- | Press compile again, then linking should succeed, if not: | + | |
- | + | ||
- | This error happens because of conflict of two versions of cvtres.exe if you have Visual Studio 2010 and 2012 installed on same PC. To fix it, go to the bin directory of Visual Studio 2010 (usually C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\) and rename cvtres.exe to cvtres0.exe. It will not break the linker of 2010. | + |
development/compiling/player/windows/visual-studio.1393612419.txt.gz · Last modified: 2014/02/28 18:33 by fdelapena