This is an old revision of the document!
Compiling Orx dependencies for new Visual Studio editions
This document is a cheat sheet for compiling up orx dependencies for new editions of Visual Studio in order to contribute back the compiled libraries into the release versions of orx.
_This page is not for general use_, it is low traffic, and prone to frequent changes and errors. If you are looking for compiled orx dependancies, you can download a precompiled orx, or clone from the the regular repo.
Clone https://bitbucket.org/orx/orx-extern
Build libwebp
In a VS2015 console, go to the libwebp folder and: nmake /f Makefile.vc CFG=release-static RTLIBCFG=static OBJDIR=output
Ignore errors, locate the lib at: libwebp\output\release-static\x86\lib\webpdecoder.lib
Switch to 64 bit compiler mode with: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat
nmake /f Makefile.vc CFG=release-static RTLIBCFG=static OBJDIR=output
Ignore errors, locate the lib at: libwebp\output\release-static\x64\lib\webpdecoder.lib
Build OpenAL-Soft
Install CMake 2.6 or better
In the project root, create a VS2015 project with: cmake -DLIBTYPE=STATIC -G “Visual Studio 14 2015”
Open the OpenAL.sln into Visual Studio.
Switch to release, right click on the OpenAL32 project and select build to make the 32-bit static lib.
Find the 32 bit version in \Release\OpenAL32.lib
For 64bit: Select the dropdown that says win32
Click and select Configuration Manager
In the Active Solution Platform dropdown, click <New>
Select x64 and copy from win32 (leave all options default)
In the OpenAL32 project properties
- In C/C++→Code Generation
- - select Mulithreaded (/MT)
- In Librarian / Command Line
- - remove additional options relating to /machine:X86
In the common project properties
- In Librarian / Command Line
- - remove additional options relating to /machine:X86
Right click the OpenAL32 project and select build to make the 64-bit static lib.
Find the 64bit version in \openal-soft\x64\Release\OpenAL32.lib
Build freetype
Follow pretty much the same as OpenAL-Soft
Build Box2D
Copy build VC13 to VC14
Create a lib/msvs2014/32 and 64 folders
Open solution is VS2015
Allow it to convert the project
Convert the solution by selecting the solution in solution explorer, and save as over the top of the .sln
In both Win32 and x64 configurations, get properties on the Box2D project
Change C++ Code Generation / Enable C++ Exceptions (Yes/EHsc)
In General / Output Directory - change to your new lib path and add a trailing slash.
Compile both Win32 and x64 configurations.