[Glade-users] Using gtkglext

Hi Dan,

I was using Glade-2 so I don't know if it's going to
any different in Glade-3. Neither do I know if I'm
doing all the things right but at least it worked for
me.  It's just on top of adding the files to
Makefile.am in the src directory (in Glade-2 this is
where the files are stored, on top of the autotools
files and other stuff), I'd add the following in

pkg_modules="libglade-2.0 >= 2.5.1"

pkg_modules="gtkglext-1.0 >= 1.0.6"
PKG_CHECK_MODULES(GTKGL, [$pkg_modules])

for libraries with the .pc files and

OTHERLIB_LIBS="-L/path/to/lib/lib -lthelibname"

for those without

and add these two lines just before AC_OUTPUT line at
the bottom



: D

I am new to using Glade.  I understand how to build
a simple interface, add
callback functions, etc, and how to build and make
the code to generate an
executable.  If I need to add functionality from an
additional library (in
this case gtkglext) to my program, how can I update
the Makefiles, etc to
reflect the correct build options?  To build a
single program it works to do

gcc -o someprog someprog.c `pkg-config --cflags
--libs gtkglext-1.0

but I want to be able to use the more sophisticated
system for bigger
projects.  Just adding the code and running
./autogen.sh and make doesn't
work - it comes up with

error: gtk/gtkgl.h: No such file or directory

I've tried checking out the examples included in the
gtkglext source but it
doesn't really indicate what to do for actual
implementation with glade.

- Dan

Send instant messages to your online friends http://au.messenger.yahoo.com 

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