Changes

Jump to navigation Jump to search

Compiling ScummVM/Visual Studio/Compiling Libraries

712 bytes removed, 20:31, 3 January 2015
Merge the two different paragraphs for libmpeg2
* [http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12677 libFLAC] for FLAC support.
Latest stable version at the time of writing this: [http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12677&release_id=539981 1.2.1]
 
* [http://libmpeg2.sourceforge.net/downloads.html libmpeg2] for MPEG-2 support - '''no longer needed'''.
Get the latest mpeg2dec release from this page, libmpeg2 is included there.
Latest stable version at the time of writing this: [http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz 0.5.1]
* [http://www.zlib.net/ zlib]
'''Note''': When you do not include your ogg headers/libraries in your global MSVC path settings you will need to do the following: include the libogg include and library paths in VS. To do this, go to Tools->Options->Projects and solutions->VC++ directories and include the include directory of libogg as well as the directory with the compiled ogg library. You'll need vorbis, vorbisfile and also vorbisenc for ScummVM tools.
 
=== libmpeg2 ===
 
The VC6 solution files (inside the vc++ folder) need to be used for this library, but first they all need to be changed to DOS format, otherwise Visual Studio will complain that the project files are corrupted. Then, open file config.h inside the vc++ folder and comment out the following line, near the end of the file:
#define restrict __restrict
Open the solution and compile project "libmpeg2". After you compile it, go to its include directory, create a folder "mpeg2dec" in there and copy all files from the include folder in this subfolder. You will end up with 2 directories, "include" and "include\mpeg2dec" with the same files. This is needed, as ScummVM includes files from the "mpeg2dec" directory
=== libmad ===
void mpeg2_cpu_state_init (uint32_t accel) {}
</source>
 
After you compile the library, go to its include directory, create a folder "mpeg2dec" in there and copy all files from the include folder in this subfolder. You will end up with 2 directories, "include" and "include\mpeg2dec" with the same files. This is needed, as ScummVM includes files from the "mpeg2dec" directory
1,419

edits

Navigation menu