Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2001 15:34:07 -0400 (EDT)
From:      Bob K <melange@yip.org>
To:        freebsd-questions@freebsd.org
Subject:   glib port + Dopewars 1.5 (dumb includes question)
Message-ID:  <Pine.BSF.4.21.0106041510540.16384-100000@pi.yip.org>

next in thread | raw e-mail | index | archive | help
Hi.  I've been attempting to compile Dopewars 1.5 on a FreeBSD 4.1-STABLE
snapshot machine without success. (the port is only for 1.4.8)  The
initial configure run was failing the glib 1.2 test, so I installed the
glib-1.2.10 port (with ye olde make && make install), and then setenv
GLIB_CONFIG=/usr/local/bin/glib12-config, at which point configure
completed successfully.  Then, with gmake (since the native make was
failing with "Need an operator" errors), it bombs out like so:

gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -I.. -I.    -g
-O2  -Wall -DDATADIR=\"/usr/local/share\" -c AIPlayer.c
AIPlayer.c:28: glib.h: No such file or directory
In file included from AIPlayer.c:30:
dopewars.h:44: glib.h: No such file or directory
In file included from AIPlayer.c:30:
dopewars.h:51: libintl.h: No such file or directory
In file included from AIPlayer.c:31:
message.h:29: glib.h: No such file or directory
In file included from AIPlayer.c:32:
tstring.h:28: glib.h: No such file or directory

Now, when I examine said includes, they all look like

#include <glib.h>

(or #include <libintl.h> for the 3rd error)  Anyway, I can see that glib.h
is located in /usr/local/include/glib12/ and libintl.h is in
/usr/local/include/ .

I'm guessing the solution is not to put the full pathname in the #include
lines, but rather to change my build environment so
/usr/local/include/glib12 is, er, included - in the same way that ldconfig
is used to add directories with libraries.  But what would the tool to do
that be?  (As you can probably tell, I only have vague notions of how this
all works)

-- 
Bob <melange@yip.org> | "Villain, I have done thy mother"
			- Shakespeare, Titus Andronicus, act IV, scene II


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106041510540.16384-100000>