3 ms·
Any hint on how to compile any of the demos on OSX ?
by netgusto 11y ago
Any hint on how to compile any of the demos on OSX ?
- vurtun 11y agoAs far as I know glfw, sdl and allegro work for OSX as well. But if that is not the case I still have demo code for Mac, iOS and tvOS. The problem is I don't have any of these platforms and the demos are from an old version. So if somebody is found to take over the porting I can release it again.
- fdb 11y agoI've got it running on OS X with some modifications: - In the Makefile, use LIBS = -lglfw3 -framework OpenGL -lm -lGLEW - In the main.c file of the project, change headers to use <OpenGL/gl.h> and <OpenGL/glu.h> - In the shader code, change "#version 300 es" to "#version 400" for both the vertex and fragment shader. I'll try to make a PR with conditionals if I can find the time today.
- devy 11y ago$ brew install homebrew/versions/glfw3 $ cd examples; make all Should do the trick.
- starbugs 11y agoI forked the repo and created an Xcode project to play around with the GLFW demo: https://github.com/starbugs/nuklear https://github.com/starbugs/nuklear You need to install glfw3 and glew via brew: $ brew install glew $ brew tap homebrew/versions $ brew install --build-bottle --static glfw3