Menu

opengl.ads and debian/sid

Help
2004-05-04
2013-04-09
  • Oliver Kopp

    Oliver Kopp - 2004-05-04

    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

     
    • Luke A. Guest

      Luke A. Guest - 2004-11-15

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.