Re: Trouble installing GtkGlArea



Hi,

In addition to gtk libraries as given by 'gtk-config --libs'
you need to link with gtkglarea and OpenGL (or MesaGL) libraries

 -lgtkgl                gtkglarea functions
 -lGL  (or -lMesaGL)    OpenGL gl* functons
 -lGLU (or -lMesaGLU)   OpenGL glu* functions


On Mon, 10 Jul 2000, jca wrote:

> 
>   Oy, one more thing, how to I compile a C program that uses the GtkGlArea
> widget?
> 
>   I made sure to install both the devel and the library rpm's, everything
> seems to be there including gtkglarea.h and gl.h.  But all attempts to
> compile the simple GtkGlArea source examples fail on linking, because the Gl
> functions come out as undeclared.
> 
>   I've tried various permutations of the -I, -L, and -l options but none seem
> 
> to direct the compiler to the correct h files/libraries...  Is there a quick
> answer to this?
> 
>   Gracias,
>   jca
> 
> 
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

-- 
Janne Löf
mail : jlof@mail.student.oulu.fi
www  : http://www.student.oulu.fi/~jlof/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]