Bug 450 - Imakefiles do not pick up headers and libraries from /usr/local
Summary: Imakefiles do not pick up headers and libraries from /usr/local
Status: RESOLVED WONTFIX
Alias: None
Product: STSF
Classification: Unclassified
Component: XST: Build config (show other bugs)
Version: XST-XORG-RELEASE-1-STSF
Hardware: x86 (IA32) FreeBSD
: high normal
Assignee: Alexander Gelfenbain
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-10 11:50 UTC by Alexander Gelfenbain
Modified: 2008-01-22 17:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Alexander Gelfenbain 2004-04-10 11:50:38 UTC
freetype and expat are installed in /usr/local on my machine. Doing the
out-of-the box "make World" build of the XOrg tree produced several errors:

xc/lib/fontconfig Makefile could not find the freetype include files and libraries
xc/lib/Xft1 Makefile could not find expat library
xc/lib/Xft: could not find freetype include files

Brute-force fix - changing FREETYPE2INCDIR from "/usr/include" to
"/usr/local/include"; FREETYPE2INCLUDES to "-I$(FREETYPE2INCDIR)
-I$(FREETYPE2INCDIR)/freetype"; FREETYPE2LIBDIR to "/usr/local/dir"; EXPATLIB to
"-L/usr/local/lib -lexpat" directly in makefiles fixed the problem.

I am not sure what changes to Imake configuration files need to be made.
Comment 1 Alan Coopersmith 2004-04-10 11:56:17 UTC
Try adding these lines to xc/config/cf/host.def:
#define HasFreeType2 YES
#define Freetype2Dir /usr/local

Comment 2 Alexander Gelfenbain 2004-04-10 12:07:05 UTC
Thanks, Alan. I will test it. Additional problem:

lib/Xst Makefile does not add -I/usr/local/include and Xst could pick up
"unicode/utypes.h" from /usr/include. What do I need to add for ICU?
Comment 3 Alan Coopersmith 2004-04-10 12:24:28 UTC
You would need to add all the missing imake infrastructure that's needed to do
this.  We have $(ICUINC) in the Xst imakefiles in Solaris, but no way to set it,
and even that's missing from the ones in the open source tree.

(The Xst Imakefile in the open source tree seems to be very different than the
 one I created, and even has the wrong copyright header - how did that happen?)
Comment 4 Alan Coopersmith 2004-04-10 12:30:41 UTC
Damn - it looks like a lot of the Imake config work I did for the original XFreeST
releases has gotten lost in the latest trees.   I guess I'll merge that back in.
Comment 5 Alan Coopersmith 2004-04-14 18:35:52 UTC
I've committed changes that I think should fix this, but I don't have a FreeBSD
machine handy to check - Alex: can you confirm this fixes the problem?  (I merged
the changes that worked for FreeBSD in our old XFreeST tree back into this tree.)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.