完成!
- 安裝brew:終端機:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安裝SDL: brew install sdl2
- Xcode 新增專案 (command line tool )
在Link frameworks and libraries 下新增
Add Other...
- 用[command]+[shift]+[G]進入 /usr/local/Cellar/sdl2/2.0.5 並選取 libSDL2-2.0.0.dylib
在header search paths新增/usr/local/include



沒有留言:
張貼留言