Hi,
Upon compiling CubeView I get the following linker errors all seemingly related to AGL. I am running MAC OS X 10.11.6 and I believe __APPLE_QUARTZ__ is #defined to 1.
and there is a warning in Fl_Gl_Choice.cxx stating "
// warning: the Quartz version should probably use Core GL (CGL) instead of AGL"
I have found the following line in agl.h:
extern AGLPixelFormat aglChoosePixelFormat(const void *gdevs, GLint ndev, const GLint *attribs) OPENGL_DEPRECATED(10_0, 10_9);
And I am compiling to the macOS 10.12. So it seems maybe that function is just not present any more! How can I get the older SDKs for MAC OS X?
The linker errors are:
Undefined symbols for architecture x86_64:
"_aglChoosePixelFormat", referenced from:
Fl_Gl_Choice::find(int, int const*) in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglCreateContext", referenced from:
fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglDestroyContext", referenced from:
fl_delete_gl_context(__AGLContextRec*) in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglEnable", referenced from:
Fl_Gl_Window::make_current() in libfltk_gld.a(Fl_Gl_Window.o)
fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in libfltk_gld.a(Fl_Gl_Choice.o)
fl_set_gl_context(Fl_Window*, __AGLContextRec*) in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglGetCurrentContext", referenced from:
fl_no_gl_context() in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglSetCurrentContext", referenced from:
fl_set_gl_context(Fl_Window*, __AGLContextRec*) in libfltk_gld.a(Fl_Gl_Choice.o)
fl_no_gl_context() in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglSetInteger", referenced from:
Fl_Gl_Window::make_current() in libfltk_gld.a(Fl_Gl_Window.o)
fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in libfltk_gld.a(Fl_Gl_Choice.o)
fl_set_gl_context(Fl_Window*, __AGLContextRec*) in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglSetWindowRef", referenced from:
fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in libfltk_gld.a(Fl_Gl_Choice.o)
fl_set_gl_context(Fl_Window*, __AGLContextRec*) in libfltk_gld.a(Fl_Gl_Choice.o)
fl_no_gl_context() in libfltk_gld.a(Fl_Gl_Choice.o)
"_aglSwapBuffers", referenced from:
Fl_Gl_Window::swap_buffers() in libfltk_gld.a(Fl_Gl_Window.o)
"_aglUpdateContext", referenced from:
Fl_Gl_Window::resize(int, int, int, int) in libfltk_gld.a(Fl_Gl_Window.o)
ld: symbol(s) not found for architecture x86_64
Thanks!!
Juan Dent
Hi,
Upon compiling CubeView I get the following linker errors all seemingly related to AGL. I am running MAC OS X 10.11.6 and I believe __APPLE_QUARTZ__ is #defined to 1.
and there is a warning in Fl_Gl_Choice.cxx stating "
// warning: the Quartz version should probably use Core GL (CGL) instead of AGL"
I have found the following line in agl.h:
extern AGLPixelFormat aglChoosePixelFormat(const void *gdevs, GLint ndev, const GLint *attribs) OPENGL_DEPRECATED(10_0, 10_9);
And I am compiling to the macOS 10.12. So it seems maybe that function is just not present any more! How can I get the older SDKs for MAC OS X?
The linker errors are:
Undefined symbols for architecture x86_64:
"_aglChoosePixelFormat", referenced from:
Fl_Gl_Choice::find(int, int const*) in libfltk_gld.a(Fl_Gl_Choice.o)