Open main menu

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

Update with libfaad instructions
(Update with libfaad instructions)
Line 27: Line 27:
Latest stable version at the time of writing this: [http://www.zlib.net/zlib125.zip 1.2.5]
Latest stable version at the time of writing this: [http://www.zlib.net/zlib125.zip 1.2.5]


* [ftp://ftp.simplesystems.org/pub/libpng/png/src/ libpng] (for ScummVM tools, in particular convert_dxa)
* [ftp://ftp.simplesystems.org/pub/libpng/png/src/ libpng] for PNG support.
You need the latest libpng source code.
You need the latest libpng source code.
Latest Windows stable version at the time of writing this: [ftp://ftp.simplesystems.org/pub/libpng/png/src/lpng155.zip 1.5.5]
Latest Windows stable version at the time of writing this: [ftp://ftp.simplesystems.org/pub/libpng/png/src/lpng155.zip 1.5.5]
* [https://github.com/gypified/libfaad libfaad] for AAC support.
You need the latest libfaad source code.


== Building the libraries ==
== Building the libraries ==
Line 203: Line 206:


Open the solution under projects\vstudio. You also need zlib to compile this library, which must be placed in a folder named "zlib" outside libpng's directory. You need to change the settings of zlib like you have done before (i.e. from "Multi-Threaded DLL (/MD)" to "Multi-Threaded (/MT)"). Check the zlib section for more information.
Open the solution under projects\vstudio. You also need zlib to compile this library, which must be placed in a folder named "zlib" outside libpng's directory. You need to change the settings of zlib like you have done before (i.e. from "Multi-Threaded DLL (/MD)" to "Multi-Threaded (/MT)"). Check the zlib section for more information.
=== libfaad ===
Open and compile the "libfaad" solution. You need to change the settings of libfaad like you have done before (i.e. from "Multi-Threaded DLL (/MD)" to "Multi-Threaded (/MT)"). Check the zlib section for more information.
'''Note for x64:''' When you want to build a x64 library for libfaad you will need to create your own x64 config for it. You can do so by easy conversion of the existing libfaad solution files for x86.
You will also need to apply the following patch to common.h, taken from [http://www.mixxx.org/wiki/doku.php/build_windows_dependencies mixxx's wiki]:
<source lang="diff">
--- common.h Fri Jan 02 14:19:06 2015
+++ common.h Fri Jan 02 14:19:06 2015
@@ -313,7 +313,9 @@ char *strchr(), *strrchr();
  }
-  #if defined(_WIN32) && !defined(__MINGW32__)
+  #if defined(_WIN64) && !defined(__MINGW64__)
+ // No LRINTF until someone writes an .asm file
+  #elif defined(_WIN32) && !defined(__MINGW32__)
    #define HAS_LRINTF
    static INLINE int lrintf(float f)
    {
</source>
1,502

edits