dchip
dchip copied to clipboard
samples do not work on osx
maybe i am not getting it, but running glfw in my own applications on osx works. but dub run dchip:demo
gives:
Building dchip:demo 0.1.1 configuration "application", build type debug.
Compiling using dmd...
Linking...
ld: library not found for -lGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Yeah this is such a mess, each platform has its own linker switches. I added libs-posix
recently to the glfw dependency, but this was wrong and should have probably been libs-linux
.
Hopefully this fixes it.
well... no:
Running ./bin/demo
glwtf.exception.WindowException@../../../.dub/packages/glwtf-drey-0.0.2/src/glwtf/window.d(119): Unable to initialize OpenGL forward compatible context (Version >= 3.0).
----------------
5 demo 0x0000000108c5bb5b glwtf.window.Window demo.ChipmunkDemo.createWindow(immutable(char)[], demo.ChipmunkDemo.WindowMode, int, int) + 131
i looked it up, my macbook air supports ogl 3.3, any ideas ? or does this code use the legacy profile ?
I don't think Mac supports forward compatible GL contexts.
I think it comes down to this: http://forum.dlang.org/thread/[email protected]?page=3#post-mceua9:24dg4:241:40digitalmars.com