1,502
edits
m (Typo) |
(→Adding all libraries to Visual Studio: Added alternate way of adding the libraries in Visual Studio) |
||
Line 121: | Line 121: | ||
== Adding all libraries to Visual Studio == | == Adding all libraries to Visual Studio == | ||
There are two ways of adding the libraries to Visual Studio. You can either copy all the header and library files inside the appropriate directories of Visual C++ or tell Visual C++ where to look for them. | |||
<br><br> | |||
The '''first method''' of adding the required libraries is to go to each individual compiled library and copy the header and library files. You'll need the following: | |||
'''Libraries'''<br> | |||
'''libFLAC_static.lib''' - static build of libFLAC (from folder obj\release\lib where you unzipped libFLAC)<br> | |||
'''libmad.lib''' - static build of libMAD (from folder msvc++\Release where you unzipped libmad)<br> | |||
'''libmpeg2.lib''' - static build of libMPEG2 (from folder vc++\Release where you unzipped mpeg2dec)<br> | |||
'''ogg_static.lib''' - static build of libOGG (from folder win32\Static_Release where you unzipped libogg)<br> | |||
'''sdl.lib''' - static build of SDL (from folder lib where you unzipped SDL)<br> | |||
'''vorbisfile_static.lib''' - static build of vorbisfile (from folder win32\VorbisFile_Static_Release where you unzipped libvorbis)<br> | |||
'''vorbis_static.lib''' - static build of libvorbis (from folder win32\Vorbis_Static_Release where you unzipped libvorbis)<br> | |||
'''zlib.lib''' - static build of zlib (from folder projects\visualc6\Win32_LIB_Release where you unzipped zlib)<br> | |||
<br> | |||
Copy those inside VC's lib folder (e.g. C:\Program Files\Microsoft Visual Studio 8\VC\lib) | |||
<br><br> | |||
'''Header files''' | |||
[TODO] | |||
<br><br> | |||
Copy those inside VC's include folder (e.g. C:\Program Files\Microsoft Visual Studio 8\VC\include) | |||
<br><br> | |||
'''Executable files'''<br> | |||
nasmw.exe - from the NASM zip | |||
<br><br> | |||
Copy this as nasmw.exe AND as nasm.exe inside VC's bin folder (e.g. C:\Program Files\Microsoft Visual Studio 8\VC\bin) | |||
<br> | |||
<br> | |||
The '''second method''' is to tell VC++ where to look for the required libraries and header files | |||
Go to Tools->Options->Projects and solutions->VC++ directories. | |||
In the executable files section, make sure that the path to nasm is included and that nasmw.exe in that folder has been copied to nasm.exe. Failure to do that will give you an error in VS (a custom building step has returned an error) | In the executable files section, make sure that the path to nasm is included and that nasmw.exe in that folder has been copied to nasm.exe. Failure to do that will give you an error in VS (a custom building step has returned an error) | ||
Line 130: | Line 159: | ||
Finally, if you need to compile ScummVM with FLAC support, go to Configuration Properties->C/C++->Preprocessor and add "USE_FLAC" in the Preprocessor Definitions field. Also, go to linker->input and add "libflac_static.lib" in the Additional Dependencies field. | Finally, if you need to compile ScummVM with FLAC support, go to Configuration Properties->C/C++->Preprocessor and add "USE_FLAC" in the Preprocessor Definitions field. Also, go to linker->input and add "libflac_static.lib" in the Additional Dependencies field. | ||
== Before compiling == | == Before compiling == |
edits