On Friday, Jan 31, 2003, at 22:27 Europe/Brussels, James Gibbs wrote:
I'm working to make a package for xplanet. I thought I was basically all finished until I discovered that it won't build if freetype is installed. Freetype2 alone is not a problem.
The immediate problem is that FT_Library is not defined. It is defined in /sw/include/freetype2/freetype/freetype.h. If I add #include <freetype2/freetype/freetype.h> to displaybase.h, the problem is fixed. But the file #includes FT_FREETYPE_H, which is defined in freetype2's ftheader.h as freetype/freetype.h.
This doesn't make sense to me, since the c++ line has -I/sw/include/freetype2, so it should be #including the file. I suppose I could just patch displaybase.h and be done with it. Any thoughts?
make
c++ -I/sw/include -I/sw/include/freetype2 -I/sw/include -I/usr/X11R6/include -I/sw/include -Wall -O3 -I/sw/include -I/sw/include -I. -c -o xplanet.o xplanet.cc
The problem is that freetype installs %p/include/freetype/freetype.h, so given the
ordering of your -I flags, it is the freetype.h from freetype instead of that from freetype2
which is found.
(Same problem occured +/- 1 year ago with mozilla)
Just get rid of your first -I/sw/include flag _ you anyway have a bunch of others:
there should never be such a flag before -I/sw/include/freetype2.
(or replace it with '-isystem /sw/include')
JF Mertens
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users
