tomassedovic / tcod-rs

Rust bindings for libtcod 1.6.3 (the Doryen library/roguelike toolkit)
Do What The F*ck You Want To Public License
229 stars 45 forks source link

Building on Mac OS X required SDL2 #277

Closed bshea5 closed 5 years ago

bshea5 commented 5 years ago

Instructions specify installing sdl with homebrew, but I had to install sdl2 in order for it to build. Here is the error from the build process. It was remedied once I installed sdl2.

thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: "\"pkg-config\" \"--libs\" \"--cflags\" \"sdl2\"did not exit successfully: exit code: 1\n--- stderr\nPackage sdl2 was not found in the pkg-config search path.\nPerhaps you should add the directory containingsdl2.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'sdl2\' found\n"', src/libcore/result.rs:997:5 note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.`

tomassedovic commented 5 years ago

Ah we've missed a spot, thanks!

So should the instructions here be brew install pkg-config sdl2?

https://github.com/tomassedovic/tcod-rs#building-on-mac-os-x

bshea5 commented 5 years ago

That is what worked for me, so I think so.