Hi,
I'm using gnat 3.15p-8 from debian/sid. I tried to compile examples/adaglut, but I had to patch opengl.ads:
! subtype GLubytePtr is Interfaces.C.Strings.chars_ptr; ! subtype GLfloat is Float; (change from type to subtype)
At the "private" part I added: pragma Import (C, glGetColorTable, "glGetColorTableEXT"); pragma Import (C, glGetColorTableParameterfv, "glGetColorTableParameterfvEXT"); pragma Import (C, glGetColorTableParameteriv, "glGetColorTableParameterivEXT");
Now the compilation goes on fine, but linking does not work:
gnatlink -g3 -L/usr/lib/ada/adalib -s --GCC=gnatgcc -s -L/usr/X11R6/lib -lX11 -lXext -lGL -lGLU -lglut adaglut.ali ld: cannot find -lGLU
Can anyone help?
Thanx and greetings
You're in trouble if you have no libGLU.a/so you need to check your install tools (apt??) and see if there is a separate package for it.
Log in to post a comment.
Hi,
I'm using gnat 3.15p-8 from debian/sid. I tried to compile examples/adaglut, but I had to patch opengl.ads:
! subtype GLubytePtr is Interfaces.C.Strings.chars_ptr;
! subtype GLfloat is Float;
(change from type to subtype)
At the "private" part I added:
pragma Import (C, glGetColorTable, "glGetColorTableEXT");
pragma Import (C, glGetColorTableParameterfv, "glGetColorTableParameterfvEXT");
pragma Import (C, glGetColorTableParameteriv, "glGetColorTableParameterivEXT");
Now the compilation goes on fine, but linking does not work:
gnatlink -g3 -L/usr/lib/ada/adalib -s --GCC=gnatgcc -s -L/usr/X11R6/lib -lX11 -lXext -lGL -lGLU -lglut adaglut.ali
ld: cannot find -lGLU
Can anyone help?
Thanx and greetings
You're in trouble if you have no libGLU.a/so you need to check your install tools (apt??) and see if there is a separate package for it.