Hi i'm new gtkglext and i have some question.
What is the best way for configure & make to register that your
extension is installed?

Now i have in configure.ac

GTKGL_CFLAGS="-I/usr/include/gtkglext-1.0/
-I/usr/local/include/gtkglext-1.0/ -I/usr/lib/gtkglext-1.0/include/
-I/usr/local/lib/gtkglext-1.0/include/"

AC_CHECK_LIB(gtkglext-x11-1.0, gtk_gl_init,
GTKGL_LIBS="-lgdkglext-x11-1.0",exit,)

AC_SUBST(GTKGL_LIBS)
AC_SUBST(GTKGL_CFLAGS)

Is this enough??

My little program compile and link

But when i add

gtk_gl_init (&argc, &argv);

i get this error:

client_main.o(.text+0x25): In function `std::basic_string<char,
std::char_traits<char>, std::allocator<char> > std::operator+<char,
std::char_traits<char>, std::allocator<char> >(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)':
/usr/include/c++/3.3/bits/basic_string.h:890: undefined reference to
`gtk_gl_init'
collect2: ld returned 1 exit status
make: *** [baf] Fehler 1

So what's wrong?

any help is welcome
Alex


_______________________________________________
gtkglext-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkglext-list

Reply via email to