ashima / webgl-noise

Procedural Noise Shader Routines compatible with WebGL
MIT License
2.79k stars 302 forks source link

demo fails to build on OS X #7

Closed ghost closed 4 years ago

ghost commented 12 years ago

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
./bundle.sh noisedemo.app noisedemo ; chmod a-x noisedemo
/bin/sh: ./bundle.sh: Permission denied
ln -s ../common/noisedemo.vert ../common/noisedemo.frag . ; touch links_done
open -W ./noisedemo.app
The file /Volumes/ssd/code/graphics/webgl-noise/demo/MacOSX/noisedemo.app does not exist.
make[1]: *** [run] Error 1
make: *** [MacOSX] Error 2

doing:

$ chmod u+x demo/MacOSX/bundle.sh

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

stegu commented 12 years ago

Thanks for the bug report. I'll try to fix it right away. (My git skills are still a bit limited, unfortunately, but I can't imagine this would be difficult to solve.)

/Stefan

On Thu, Jul 5, 2012 at 5:55 AM, Rich Eakin reply@reply.github.com wrote:

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

ghost commented 12 years ago

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/bundle.sh
diff --git a/demo/MacOSX/bundle.sh b/demo/MacOSX/bundle.sh
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!

Cheers, Rich

stegu commented 12 years ago

as maybe you aren't working on OS X

I try to stay on top of all major platforms, but it's been a while now since I booted MacOS - my MacBook is getting old and does not have a good enough GPU to be enjoyable for GLSL development.

stegu commented 4 years ago

By now, that demo is abandoned code. I have not touched it in years, and it probably won't compile on any platform any longer without tweaks. I am closing the issue, but it will remain unresolved unless someone commits a complete fix. I no longer have access to a MacOS system myself.