Changes

Jump to navigation Jump to search

Compiling ScummVM/Visual Studio/Compiling Libraries

1,100 bytes added, 14:28, 2 January 2015
Update with libfaad instructions
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)PNG support.
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]
 
* [https://github.com/gypified/libfaad libfaad] for AAC support.
You need the latest libfaad source code.
== Building the libraries ==
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,419

edits

Navigation menu