2010-09-25 17:46:12 +02:00
|
|
|
Various software and tools are required to compile Snes9x on Windows:
|
|
|
|
|
2010-09-25 19:35:19 +02:00
|
|
|
NOTE: Unicode support requires a special zlib build - see the end of the zlib entry
|
|
|
|
|
2017-04-29 18:12:41 +02:00
|
|
|
- The current official binary is compiled with Visual Studio 2017, you'll have to create
|
|
|
|
your own project file for earlier MSVC versions. VS2017 will automatically ask to install
|
2016-10-15 02:20:09 +02:00
|
|
|
the correct Windows SDK Version (7.1A)
|
2010-09-25 17:46:12 +02:00
|
|
|
|
2019-01-13 13:55:47 +01:00
|
|
|
- A recent DirectX SDK..
|
2016-10-15 02:20:09 +02:00
|
|
|
https://www.microsoft.com/en-us/download/details.aspx?id=23549
|
2010-09-25 17:46:12 +02:00
|
|
|
|
2019-02-26 23:36:05 +01:00
|
|
|
- The following modules can all be downloaded automatically by using:
|
|
|
|
git submodule update --init
|
|
|
|
in the cloned Snes9x git directory, or by using git GUI tools to do the same.
|
|
|
|
This is the recommended method of installing these dependencies.
|
|
|
|
|
|
|
|
* DirectXMath. The source files should reside in win32/DirectXMath
|
|
|
|
|
|
|
|
* zlib (optional, ZLIB define, enabled by default) - the default solution includes a zlib
|
|
|
|
project that builds appropriately (force includes _tfwopen.h for unicode support in s9x).
|
|
|
|
The zlib source files should reside in win32/zlib/src
|
|
|
|
|
|
|
|
* libpng (optional, HAVE_LIBPNG define, enabled by default) - the default solution includes
|
|
|
|
a libpng project that builds appropriately.
|
|
|
|
The libpng source files should reside in win32/libpng/src
|
|
|
|
|
2019-02-27 18:02:22 +01:00
|
|
|
* glslang and SPIRV-Cross (optional, USE_SLANG define, enabled by default)
|
|
|
|
These are needed to build support for .slang shaders. The default solution includes
|
2019-02-26 23:36:05 +01:00
|
|
|
a series of projects encompassing glslang that build appropriately.
|
|
|
|
The glslang source files should reside in win32/glslang/src
|
2019-02-27 18:02:22 +01:00
|
|
|
The SPIRV-Cross source files should be placed in shaders/SPIRV-Cross
|
|
|
|
|
|
|
|
If wish to compile without USE_SLANG, you must remove the files named
|
|
|
|
spirv_*.cpp from the Visual Studio project's Shaders group.
|
2010-09-25 17:46:12 +02:00
|
|
|
|
|
|
|
- To compile Snes9x:
|
2017-04-29 18:12:41 +02:00
|
|
|
Start up VS2017.
|
|
|
|
Load the Snes9x solution.
|
2010-09-25 17:46:12 +02:00
|
|
|
Select the desired configuration and build.
|
|
|
|
The Release configuration may build significantly slower than Debug.
|
|
|
|
Then you can run it.
|