All projects I have tried that came with FLTK 1.3.3 compile except CubeView!! I get linker errors as below...

16 views
Skip to first unread message

Juan Dent

unread,
Sep 28, 2016, 7:49:57 PM9/28/16
to fltk.general

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

Manolo

unread,
Sep 29, 2016, 2:39:51 AM9/29/16
to fltk.general


On Thursday, 29 September 2016 01:49:57 UTC+2, Juan Dent wrote:

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)


This has been fixed since FLTK 1.3.3 was released, and will be present in 1.3.4 expected soon.
In the meanwhile, please, use the last weekly snapshot of the source code. It contains the new code
that no longer uses AGL.
Go to the Download section of the FLTK web site, and get fltk-1.3.x-r11966.tar.gz
(on red background), then do exactly as with 1.3.3

Reply all
Reply to author
Forward
0 new messages