/Game-Boy-Emulator

My attempt to create a Gameboy Emulator with Rust

Primary LanguageRust

Game-Boy-Emulator

My attempt to create a Gameboy Emulator with Rust

Prerequisite

How to install SDL2 and SDL2_ttf for MACOS

  1. Download the dmg files for both the links above
  2. Once you mount the dmg, extract the folder with the suffix of .framework
  3. Move the those folders into /Library/Frameworks
  4. In you're rust project with in the Cargo.toml add:
    • build = "build.rs" under [package]
    • [dependencies.sdl2] and under that add version = "*" and below that add features = ["use_mac_framework", "ttf"]
  5. Create a new file in the root of the project with add the contents below:
fn main() {
    println!("cargo:rustc-link-search=framework=/Library/Frameworks");
}