[ wxwindows-Bugs-1846196 ] wxGTK 2.8.7: can't configure with 64-bit gtk2-devel package

SourceForge.net noreply at sourceforge.net
Fri Dec 7 07:07:40 PST 2007


Bugs item #1846196, was opened at 2007-12-07 13:48
Message generated for change (Comment added) made by bgolding
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1846196&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build -- unix
Group: None
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ben Golding (bgolding)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxGTK 2.8.7: can't configure with 64-bit gtk2-devel package

Initial Comment:
Linux 2.4.21-40.EL x86_64
OS: RedHat Enterprise Linux 3.0 U7

Using gcc 3.3.6.

This machine has these packages (rpm -qa):
gtk2-2.2.4-19         (32 bit)
gtk2-2.2.4-19         (64 bit)
gtk2-devel-2.2.4-19   (64 bit)
===========================================
Perform the following steps:
[1] tar zxf wxGTK-2.8.7.tar.gz
[2] cd wxGTK-2.8.7/build
[3] ../configure --enable-xrc --enable-monolithic --enable-unicode --prefix=/foo/blah/etc

Configure gives the error:

*** 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+ is incorrectly installed.
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.

Extract from config.log:

configure:27182: gcc -o conftest  -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     conftest.c  -lm -Wl,--export-dynamic -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0   >&5
ld: cannot find -lgtk-x11-2.0
===========================================
Because this system only has the 64-bit gtk development package installed, this symlink exists

/usr/lib64/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.200.4*

but there is not one in /usr/lib.

===========================================
This might be:
[*] a bug in configure (an old version?)
[*] a bug in wxGTK
[*] 64-bit builds might be unsupported (but configure should say so at the beginning)
[*] something bad in my setup


----------------------------------------------------------------------

>Comment By: Ben Golding (bgolding)
Date: 2007-12-07 15:07

Message:
Logged In: YES 
user_id=1857456
Originator: YES

After running gtk-config --libs as suggested, I have done:

  setenv LDFLAGS "-L/usr/lib64 -L/usr/X11R6/lib64"

Then I ran into this problem:

  configure:12556: checking for C compiler default output file name
  configure:12559: gcc -L/usr/lib64 -L/usr/X11R6/lib64 conftest.c >&5
    ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
  /usr/lib64/libc.a: could not read symbols: File format not recognized

I guess this means that the ld I am using isn't 64-bit friendly.

----------------------------------------------------------------------

Comment By: Vadim Zeitlin (vadz)
Date: 2007-12-07 13:53

Message:
Logged In: YES 
user_id=71618
Originator: NO

I suspect the last option. Please check "pkg-config --list-all" and check
if your 64 bit GTK+ version appears in it. In any case, wx doesn't look for
GTK+ itself but just uses pkg-config so whatever the problem is it can only
be fixed at that level -- unless I'm missing something.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1846196&group_id=9863




More information about the wx-dev mailing list