From owner-freebsd-questions Mon Jun 4 12:34:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pi.yip.org (yip.org [199.45.111.121]) by hub.freebsd.org (Postfix) with ESMTP id B19B437B406 for ; Mon, 4 Jun 2001 12:34:11 -0700 (PDT) (envelope-from melange@yip.org) Received: from localhost (melange@localhost) by pi.yip.org (8.11.1/8.11.1) with ESMTP id f54JY7k24020 for ; Mon, 4 Jun 2001 15:34:08 -0400 (EDT) (envelope-from melange@yip.org) Date: Mon, 4 Jun 2001 15:34:07 -0400 (EDT) From: Bob K To: freebsd-questions@freebsd.org Subject: glib port + Dopewars 1.5 (dumb includes question) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 (or #include 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 | "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