Skip to content


demo fails to build on OS X #7

ghost opened this Issue · 3 comments

1 participant


I get the following failure when trying to run the makefile in the demos folder:

$ make MacOSX
cd common ; make
make[1]: Nothing to be done for `all'.
cd MacOSX ; make ; make run
cc -I. -I/usr/X11/include   -c -o noisedemo.o ../common/noisedemo.c
cc -framework Cocoa -framework OpenGL -lglfw  noisedemo.o   -o noisedemo
./ noisedemo ; chmod a-x noisedemo
/bin/sh: ./ Permission denied
ln -s ../common/noisedemo.vert ../common/noisedemo.frag . ; touch links_done
open -W ./
The file /Volumes/ssd/code/graphics/webgl-noise/demo/MacOSX/ does not exist.
make[1]: *** [run] Error 1
make: *** [MacOSX] Error 2


$ chmod u+x demo/MacOSX/

fixes the 'Permission denied' error above and allows the Makefile to run flawlessly


No worries, just thought I'd let you know as maybe you aren't working on OS X and it might be a hitch for some users.

Note that once you do the chmod, the diff won't say much, only that you changed permissions. This is how it looks on my computer:

$ git diff demo/MacOSX/
diff --git a/demo/MacOSX/ b/demo/MacOSX/
old mode 100644
new mode 100755

You should still add / commit that file and the change would be made. Alternatively, I can issue a pull request, but I thought it overkill for something this minor.

Anyhow, thanks for the nice demo, I'm enjoying learning from your glsl!


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.