我只是尝试在 MACOX 上安装
go-sdl2
,来自 https://github.com/veandco/go-sdl2#installation
go get -v github.com/veandco/go-sdl2/{sdl,img,mix,ttf}
我收到以下错误:
github.com/veandco/go-sdl2/sdl
# pkg-config --cflags sdl2
pkg-config: exec: "pkg-config": executable file not found in $PATH
运行命令
brew install pkg-config