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

Cant build project on linux #312

Closed Sanqsua closed 4 years ago

Sanqsua commented 4 years ago

I just added tcod to my Cargo.toml file and build it... it doesn't seem to work Bildschirmfoto von 2020-07-15 02-27-01

tomassedovic commented 4 years ago

Hey @Sangsua! I'm sorry for the trouble!

Can you please show us the rest of the log (lines after 25)?

Also, tcod-sys requires some libraries to be installed:

https://github.com/tomassedovic/tcod-rs#building-on-linux

Please try installing them (sudo apt-get install gcc g++ make libsdl2-dev), that should help if you didn't do it already.

What is your Linux distro? The instructions are for Ubuntu, the actual command and package names would be different on other distros.

Sanqsua commented 4 years ago

I'm using Manjaro, it doesn't seem to have libsdl2-dev :( . Here is the rest of the log. Bildschirmfoto von 2020-07-15 10-13-08

tomassedovic commented 4 years ago

Thanks! So the tcod-sys build script cannot find the SDL2 package. Looks like Arch and Manjaro bundle the header files with the libraries.

Try installing the sdl2 package.

Sanqsua commented 4 years ago

pkg-config and sdl2 were the culprits. :) thanks for the help