netcan / AnimalChess

Animal Fight Chess Game(斗兽棋) written in rust.
https://netcan.github.io/2020/06/07/%E7%94%A8Rust%E5%86%99%E4%B8%80%E4%B8%AA%E6%96%97%E5%85%BD%E6%A3%8B%E6%B8%B8%E6%88%8F/
MIT License
90 stars 11 forks source link

不能编译问题 #1

Closed suhanyujie closed 4 years ago

suhanyujie commented 4 years ago

你好~ 在 OSX 系统中,按照 readme 所说,先 clone 再 cargo run --release,过程中报错了:

note: ld: library not found for -lSDL2_image
suhanyujie commented 4 years ago

通过 brew install sdl2 sdl2_image 安装依赖库后,并将路径写入环境变量:

# vi ~/.bash_profile
export LIBRARY_PATH="/usr/local/lib"
source ~/.bash_profile

即可 cargo run --release 成功

netcan commented 4 years ago

好的多谢补充。