RE: Very perplexing compile trouble
- From: Martin Baulig <baulig Stud Informatik Uni-Trier DE>
- To: Ed Davison <Ed Davison bus utexas edu>
- cc: "'gnome-list gnome org'" <gnome-list gnome org>
- Subject: RE: Very perplexing compile trouble
- Date: Wed, 8 Apr 1998 02:22:52 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 7 Apr 1998, Ed Davison wrote:
> I am not sure that I understand your reply. I have the source code for
> these
Sory, I was wrong. This seems to work only for gtk+ and the other gnome
libs but not for libgr and imlib. In this case a gtk-config is installed
in $prefix/bin and the configure script looks for that script.
But after I hacked around a bit - and got it to fail for myself - I found
the answer: this gtk-config from gtk+ adds
- -L/home/norwegen/INSTALL/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext
- -lX11 -lm
when I installed gtk+ under /home/norwegen/INSTALL. So configure will also
look in /home/norwegen/INSTALL/lib for libraries.
If you don't want to rebuild gtk+, you can use the following script, name
it gtk-config and set prefix to where you have imlib installed:
=======================================================================
#!/bin/sh
prefix=/usr/local
exec_prefix=${prefix}
exec_prefix_set=no
usage="\
Usage: gtk-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo 0.99.9
;;
--cflags)
if test ${prefix}/include != /usr/include ; then
includes=-I${prefix}/include
fi
echo -I${exec_prefix}/lib/glib/include $includes -I/usr/X11R6/include
;;
--libs)
echo -L${exec_prefix}/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lXext -lX11 -lm
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
- -----------------------------------------------------------------
Martin Baulig - Angewandte Mathematik - Universitaet Trier
baulig@castor.uni-trier.de, http://www.home-of-linux.com/
Key: 1024-bit key with ID C8178435 created 1997/01/24
ID: 67 C1 84 A0 47 F5 11 C5 5F 68 4C 84 99 05 C3 92
Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNSrDXYA8K7jIF4Q1AQG3GAP8DRiFuyP6OUXv0wqwmSSbhuowXDqFHF7B
SetttrDj/XZ2X8tDF48W1bO+EqKzYHeWDFbomh8XL1XeQcUTP7ttTIrzzMlA8/U5
zCI5PSR5VeTjx377ETQOriOXb7KYqw+oALL79+8rGjSpMTFHF8mhUoKG0o2CF213
6hCVeu+FLDQ=
=81Xt
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]