Re: Cannot compile GtkGLArea examples by my own
- From: Gottipati Aravind <slttg cc usu edu>
- To: gtk-list gnome org
- Subject: Re: Cannot compile GtkGLArea examples by my own
- Date: Sat, 10 Jun 2000 12:17:11 -0700
Sometime around Sat, Jun 10, 2000 at 02:40:02PM +0100, Ignacio Nodal said:
> "gtk-config --cflags --libs" returns
> "-I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -L/
> usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -
> lXext -lX11 -lm"
hi,
I do it using a script that I wrote, I however do it in two stages
this is how my compile and link stages look like.
gcc -g3 -Wall -O2 -I/usr/lib/glib/include -I/usr/X11R6/include -c foo.c
gcc -g3 -Wall -O2 foo.o -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl - lXi -lXext -lX11 -lm -lgtkgl -L/usr/X11R6/lib -lXmu -lXi -lXt -lSM -lICE -lGL -lGLU
and I guess combining the two would make it look like
gcc -g3 -Wall -O2 -I/usr/lib/glib/include -I/usr/X11R6/include foo.c -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl - lXi -lXext -lX11 -lm -lgtkgl -L/usr/X11R6/lib -lXmu -lXi -lXt -lSM -lICE -lGL -lGLU
some of these link libraries may be redundant, but I just dont know, so
I include them anyway. And I installed using dpkg in debian, so that
would put things in usr/lib, I am guessing u did it differently and so
you probably would have them in usr/local/lib.
HTH,
Aravind
--
There is a 10% penalty for getting yourself killed.
-- Nethack manual
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]