simias / rustation

Playstation emulator in the Rust programing language
Other
552 stars 21 forks source link

bin target location ?? #36

Closed doyousketch2 closed 6 years ago

doyousketch2 commented 7 years ago

Do you run from the rustation dir, or do you have to change to another dir?

eli@hp-pav ~/ROMS/rustation $ cargo build --release
  Compiling rustation v0.0.3 (file:///home/eli/ROMS/rustation)
    Finished release [optimized] target(s) in 26.17 secs

eli@hp-pav ~/ROMS/rustation $ cargo run --release /home/eli/ROMS/BIOS/PSX/SCPH-1001.BIN
error: a bin target must be available for `cargo run`

eli@hp-pav ~/ROMS/rustation $ cd target/release
eli@hp-pav ~/ROMS/rustation/target/release $ cargo run /home/eli/ROMS/BIOS/PSX/SCPH-1001.BIN
error: a bin target must be available for `cargo run`
mlafeldt commented 7 years ago

That happens because rustation is built as a lib and has a main function at a non-standard location. (that's only used for building)

Not sure why there's no src/bin/main.rs. @simias

simias commented 6 years ago

What would the bin do? There's no frontend code in there, only emulation.

You can use https://github.com/simias/rustation-libretro to build a libretro core using this crate for the actual emulation. This still won't generate a bin, but rather a .so that you can load in RetroArch or any other libretro player.

Sorry for the late reply, I haven't been keeping a close look on github lately.

doyousketch2 commented 6 years ago

If it doesn't compile to runnable code, why would your Readme.md say:

If the build is succesful you can run the emulator using:

cargo run --release /path/to/SCPH1001.BIN

simias commented 6 years ago

Uh, because it's severely outdated. I'll update it, thanks for pointing it out.