newbie
newbie

Reputation: 4789

Install SDL2 in mac

I am just getting started with learning OpenGL. I am struggling to setup my environment. This is what I did do far:

I am using following command to compile a simple opengl code:

g++ test.cpp glad/glad.c -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2

enter image description here

Can someone please help me out ? Not sure what I'm missing.

Upvotes: 13

Views: 36489

Answers (1)

Shevach Riabtsev
Shevach Riabtsev

Reputation: 495

brew install SDL2

brew install SDL2_image

brew install SDL2_ttf

Upvotes: 26

Related Questions