Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio/Compiling Libraries"

no edit summary
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 1: Line 1:
== Instructions for compiling the needed libraries for Visual Studio yourself ==
== Using vcpkg package manager ==


Building libraries for use with Visual Studio is a complicated process. Many libraries only feature out-dated project files or have incompatible configurations for their project files. On this page we give a general introduction of the settings we used for building the libraries with Visual Studio 2015 Community Edition. Afterwards, we give a more detailed view on the process of building each invidiual library.
If you're using Visual Studio 2015 or later, [https://github.com/Microsoft/vcpkg vcpkg] is the simplest way to get the libraries compiled. It works similar to Linux package managers, but everything is locally compiled from source, so you always get binaries for the specific compiler and architecture you're using.
 
After following their installation instructions, just run the following command from the vcpkg folder to build the libraries:
 
<pre>
vcpkg install curl faad2 fluidsynth freetype fribidi libflac libjpeg-turbo libmad libmpeg2 libogg libpng libtheora libvorbis sdl2 sdl2-net zlib discord-rpc
</pre>
 
Any missing libraries are optional and currently not available in vcpkg, so you will have to build them yourself if you want to enable them.
 
By default this will create x86 DLLs. If you want a different target, you can add "--triplet <triplet>" to the command, for example:
 
* '''x64-windows:''' x64 DLLs
* '''x86-windows-static-md:''' x86 static LIBs
 
Note not every library is compatible with every target, but they should all work as x86/x64 DLLs.
 
== Manually compiling the needed libraries for Visual Studio yourself ==
 
Building libraries for use with Visual Studio is a complicated process. Many libraries only feature out-dated project files or have incompatible configurations for their project files. On this page we give a general introduction of the settings we used for building the libraries with Visual Studio 2015 Community Edition. Afterwards, we give a more detailed view on the process of building each individual library.


We used the following settings when compiling the libraries:
We used the following settings when compiling the libraries:
68

edits