dchip icon indicating copy to clipboard operation
dchip copied to clipboard

samples do not work on osx

Open extrawurst opened this issue 10 years ago • 5 comments

maybe i am not getting it, but running glfw in my own applications on osx works. but dub run dchip:demogives:

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)

extrawurst avatar Feb 01 '15 13:02 extrawurst

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.

ghost avatar Feb 01 '15 20:02 ghost

Hopefully this fixes it.

ghost avatar Feb 01 '15 20:02 ghost

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 ?

extrawurst avatar Feb 01 '15 21:02 extrawurst

I don't think Mac supports forward compatible GL contexts.

MatthewFrench avatar Feb 27 '15 21:02 MatthewFrench

I think it comes down to this: http://forum.dlang.org/thread/[email protected]?page=3#post-mceua9:24dg4:241:40digitalmars.com

extrawurst avatar Feb 28 '15 20:02 extrawurst