Files
decaf-emu/README.md
CreeperMario f67bdcf8e7 cmake: Use -std=c++1z instead of -std=c++17 on macOS
The latest official compiler for macOS (Xcode 9.0) is based on LLVM v4,
which contains most of, but not all, C++17 features. Therefore, to build
using experimental C++17 features on macOS, we need to use -std=c++1z.

My guess is that Xcode 9.1 will ship with LLVM v5, which has completed
support for C++17. At that point, we can simply use -std=c++17 again.

I have also added a small check that prevents CMake from attempting to
build with OpenGL on macOS.

I have also changed the Travis build script to use Xcode 9 rather than
Xcode 8.3, enabling these experimental features.

And I've fixed a small issue with the README. :)
2017-10-23 08:15:12 +01:00

2.1 KiB

Build status Build Status

decaf-emu

Researching Wii U emulation. Licensed under the terms of the GNU General Public License, version 3 or later (GPLv3+).

You can find us for developer discussion at #wiiu-emu on freenode.

Requirements

  • Windows with Visual Studio 2017 Update 3
  • Linux with a modern C++17 friendly compiler
  • 64 bit
  • OpenGL 4.5
  • CMake v3.2+

Compatibility

  • None

Support

  • None, this is an in-development project and user support is not provided.

Binaries

The latest Windows AppVeyor build is available from:

Building from Source

This project makes use of submodules, please ensure you have cloned them properly using:

  • git submodule update --init

There are two decaf frontends:

  • decaf-sdl - Default emulator target using SDL for window creation and input.
  • decaf-cli - Command line only which will run games with no graphics or inputs, useful for test .rpx files.

Windows with VS2017

  • Use CMake to generate a solution

Linux

  • cmake ../decaf-emu && make
  • It is suggested (but optional) to use your system's zlib, sdl2 and glbinding
  • You can enable building with valgrind with -DDECAF_VALGRIND=ON, this requires valgrind to be installed on your system
  • Requires a modern gcc or clang which supports C++17 features

Running

./decaf-sdl play <path to game>

It is recommended to run the emulator from the root git directory so that it is able to access resources/fonts/*. Alternatively, set resources_path in the configuration file to point to the resources directory.

Configuration files can be found at:

  • Windows - %APPDATA%\decaf
  • Linux - ~/.config/decaf

On Linux, a "Bus error" crash usually indicates an out-of-space error in the temporary directory. Set the TMPDIR environment variable to a directory on a filesystem with at least 2GB free.