Problem with wxWidgets-2.9.1 compile

133 views
Skip to first unread message

Tyrone Steele

unread,
Oct 12, 2010, 1:47:00 PM10/12/10
to wx-discuss
Regardless of which compile variables I use, the compile fails.

Here is my environment.
______________________________________________________
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)

# pwd
/var/tmp/wxWidgets-2.9.1

# export LD_LIBRARY_PATH=/usr/include/gtk:/usr/include/gdk:/usr/lib

# gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -L/usr/include/gtk -L/usr/
include/gdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

# rpm -q gtk+-devel-1.2.3-2
gtk+-devel-1.2.3-2


# head /usr/bin/gtk-config
#!/bin/sh

glib_libs="-L/usr/lib -L/usr/include/gtk -L/usr/include/gdk -rdynamic -
lgmodule -lglib -ldl"
glib_cflags="-I/usr/lib/glib/include"
#glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib -
lpthread -ldl"
glib_thread_libs="-L/usr/lib -L/usr/include/gtk -L/usr/include/gdk -
rdynamic -lgmodule -lgthread -lglib -lpthread -ldl"
glib_thread_cflags="-I/usr/lib/glib/include -D_REENTRANT"

# configure --prefix=/usr/local/wxWidgets --with-gtk=1 --with-gtk-exec-
prefix=/usr

checking for gtk-config... (cached) /usr/bin/gtk-config
checking for GTK - version >= 1.2.3... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file
config.log for the
*** exact error that occured. This usually means GTK was incorrectly
installed
*** or that you have moved GTK since it was installed. In the latter
case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

Vadim Zeitlin

unread,
Oct 13, 2010, 3:43:03 PM10/13/10
to wx-di...@googlegroups.com
On Tue, 12 Oct 2010 10:47:00 -0700 (PDT) Tyrone Steele <ty.a....@gmail.com> wrote:

TS> Regardless of which compile variables I use, the compile fails.
...
TS> # configure --prefix=/usr/local/wxWidgets --with-gtk=1 --with-gtk-exec-
TS> prefix=/usr

First of all, you're posting to a wrong list: this one is for
non-technical discussions and is not very active. You should post questions
such as this one to wx-users.

Second, why do you use --with-gtk=1? GTK+ 1 is thoroughly obsolete
nowadays so unless you have some very specific reasons to use it, you
shouldn't use it.

TS> checking for gtk-config... (cached) /usr/bin/gtk-config
TS> checking for GTK - version >= 1.2.3... no
TS> *** Could not run GTK test program, checking why...
TS> *** The test program failed to compile or link. See the file
TS> config.log for the
TS> *** exact error that occured. This usually means GTK was incorrectly
TS> installed
TS> *** or that you have moved GTK since it was installed. In the latter
TS> case, you
TS> *** may want to edit the gtk-config script: /usr/bin/gtk-config
TS> configure: error:
TS> The development files for GTK+ were not found. For GTK+ 2, please
TS> ensure that pkg-config is in the path and that gtk+-2.0.pc is
TS> installed. For GTK+ 1.2 please check that gtk-config is in the path,
TS> and that the version is 1.2.3 or above. Also check that the
TS> libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
TS> --libs' are in the LD_LIBRARY_PATH or equivalent.

Third and finally I really have nothing to add to the wonderfully detailed
error message above. You should really follow its instructions.

Regards,
VZ

Reply all
Reply to author
Forward
0 new messages