To make sure the template works and you can use all the command listed below, use xcode-select --install
, it can be a bit long though.
- C/C++
- Makefile tools
- CodeLLDB
- cmake
Use
brew install <name>
- Download last raylib source version as ZIP file.
- Then use cmake in 'raylib/src'
cd path/to/raylib/src
make
- You should have a libraylib.a file that appeared (raylib builded file)
- Extract libraylib.a, raylib.h and raymath.h from the 'raylib/src' folder and move them to lib folder in the template (replace old files).
- Finally hit 'F5' to launch compiler & launch your program !
/!\ Maybe the
macFrameworkPath
from 'c_cpp_properties.json' isn't valid, you should find the proper folder in '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs'