Problems installing gtk libs on RedHat 7.1
- From: Mark Wheaton <mark wheaton ntlworld com>
- To: gtk-list gnome org
- Subject: Problems installing gtk libs on RedHat 7.1
- Date: Fri, 11 Oct 2002 12:51:53 +0100
Hi all,
I'm new to this whole GTK world. I have been trying to get
everything installed for a couple of days now, . I've read the FAQ and
everything else I can find and I just can't get it to work. I'm hoping
someone out there will be able to help.
Here's the story:
*RedHat 7.1 on i686
*gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)
*Glib compiled and installed in /opt/glib2.0.6 (sorry - I used to run
Solaris boxen :-)
*/etc/ld.so.conf tweaked to add /opt/glib2.0.6/lib and ldconfig run.
Now try to build ATK
Just running ./configure --prefix=/opt/atk1.0.3 fails like this:
---
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB 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 GLIB is incorrectly
installed.
configure: error:
---
config.log says it can't find <glib.h> when it tries to build the test
program. Fair enough, so I set up a CPPFLAGS environment variable to
tell it where to find the header files it needs:
# CPPFLAGS="-I/opt/glib2.0.6/include/glib-2.0
-I/opt/glib2.0.6/lib/glib-2.0/include"
# export CPPFLAGS
and try again, and it barfs again with a different error.
config.log says:
---
configure:7470: gcc -o conftest -g -O2 -Wall
-I/opt/glib2.0.6/include/glib-2.0 -I/opt/glib2.0.6/lib/glib-2.0/include
conftest.c >&5
/tmp/ccvQZkpt.o: In function `main':
/opt/setup/atk-1.0.3/configure:7462: undefined reference to
`glib_major_version'
/opt/setup/atk-1.0.3/configure:7462: undefined reference to
`glib_minor_version'
/opt/setup/atk-1.0.3/configure:7462: undefined reference to
`glib_micro_version'
collect2: ld returned 1 exit status
configure:7473: $? = 1
---
OK so it needs to be shown where the glib library is so it can resolve
those references so I set up an LDFLAGS environment variable to tell it
where to find the library file it needs:
# LDFLAGS="-L/opt/glib2.0.6/lib -lglib-2.0"
# export LDFLAGS
and try again, and it barfs again with a different error. (This does
incidentally cause the test for whether -static works to fubar but I
figure I don't care about that since I'm building a dynamic library.)
config.log says:
---
configure:7289: checking for GLIB - version >= 2.0.0
configure:7434: result: no
configure:7470: gcc -o conftest -g -O2 -Wall
-I/opt/glib2.0.6/include/glib-2.0 -I/opt/glib2.0.6/lib/glib-2.0/include
-L/opt/glib2.0.6/lib -lglib-2.0 conftest.c >&5
configure:7473: $? = 0
configure:7476: test -s conftest
configure:7479: $? = 0
configure:7508: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
---
and at this point I am stumped. Can anyone give me an idea of what's
going on?
Thanks in advance,
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]