Re: problem in using gtk
- From: Owen Taylor <otaylor redhat com>
- To: Sven <luther dpt-info u-strasbg fr>
- Cc: gnome-list gnome org
- Subject: Re: problem in using gtk
- Date: 31 Aug 1998 10:54:27 -0400
Sven <luther@dpt-info.u-strasbg.fr> writes:
> hello, ...
>
> this should actually go to the gtk mailing list, but since i am not subscribed, and they don't like mail from unsubscribed persons, i will send it here, perhaps someone has an idea about it.
>
> ------------------------------------------
>
> Hello, ...
>
> i just recompiled the glib 1.1.2 and gtk 1.1.1 packages for debian/m68k
> installed them and tried to compile a simple gtk program.
>
> i got the following errors :
>
> /usr/lib/libgdk-1.1.so: undefined reference to `XGetDeviceMotionEvents'
> /usr/lib/libgdk-1.1.so: undefined reference to `XFreeDeviceList'
> /usr/lib/libgdk-1.1.so: undefined reference to `XQueryDeviceState'
> /usr/lib/libgdk-1.1.so: undefined reference to `XListInputDevices'
> /usr/lib/libgdk-1.1.so: undefined reference to `XFreeDeviceMotionEvents'
> /usr/lib/libgdk-1.1.so: undefined reference to `XOpenDevice'
> /usr/lib/libgdk-1.1.so: undefined reference to `XSelectExtensionEvent'
> /usr/lib/libgdk-1.1.so: undefined reference to `XUngrabDevice'
> /usr/lib/libgdk-1.1.so: undefined reference to `XGrabDevice'
> collect2: ld returned 1 exit status
> Error while building custom runtime system
> make: *** [mlgtk_test] Error 2
>
> why is that, is there some part of X that i don't have installed ? which
> one is it ?
The debian packages are built with XInput support, so GTK+ programs
using them need to be linked with -lXi. Actually, they are also (I
thought) are built with shared library dependencies, so I'm a little
surprised you're having this problem. In any case, using gtk-config
will solve the problem. (See docs/gtk-config.txt, and/or the beginning
of the tutorial.)
> also for the glibconfig.h bug, is the correct way to do things now to do
> a :
>
> #include <glib/glibconfig.h>
>
> this is not very clear in the faq were it says glibcconfig is in
> $exec_prefix/lib/glib/include/
> should that not be $exec_prefix/include/glib/include/ or is there a link
> from lib/glib to include/glib ?
Just use gtk-config. It will give you the correct -I flags.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]