Skip to content

Building Schiffbruch

Lukas Dürrenberger edited this page Jun 27, 2017 · 1 revision

Prerequisites

  • Schiffbruch currently only builds on Windows with Visual Studio
  • Schiffbruch currently still uses some DirectDraw and DirectInput code, so you'll probably have to install the latest DirectX SDK - some Windows SDK might include the required libs already
  • Schiffbruch makes use of SFML, you can find Visual Studio 2017 builds with statically linked runtime libs here

Building

  • In the root directory of Schiffbruch create the directory extlibs
  • Add the lib and include directories of the SFML package
  • Open the Visual Studio project file in the build directory
    • If asked, convert to your Visual Studio version
    • You may have to change the Windows SDK version to the one you have installed
  • Build Schiffbruch

Troubleshooting

  • If you get linker errors with MDd/MTd mismatches, then you need to either use the SFML builds that have linked the runtime libraries statically (/MT or /MTd) or you need to change the project settings to use the dynamic versions of the runtime libraries (/MD or /MDd).
  • If the SFML libraries can't be found, make sure you've copied them to the extlibs\lib and the headers to the extlibs\lib directory.
  • If you get linker errors regarding DirectDraw functions, make sure you've the Direct X SDK installed.
  • If your saved game gets deleted every time you recompile, then this is because the post-build script deletes the saved game file. You can disable/remove the script.
Clone this wiki locally