On Wed, Jul 23, 2008 at 7:34 AM, Dan McGhee <[EMAIL PROTECTED]> wrote:
> Installing Xorg-7.2 using latest BLFS svn book on top of  LFS-6.3. All
> other xorg-libs have installed with no problems.  The configure error is:
>
> "Package requirements (fontconfig >= 2.2) were not met:
>
> No package 'fontconfig' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variableif you
> installed software in a non-standard prefix. [of course the BLFS
> standard is prefix=/usr]
>
> Alternatively, you may set the envrionment variables FONTCONFIG_CFLAGS
> and FONTCONFIG_LIBS to avoid the need to call pkg-config."
>
>
> $PKG_CONFIG_PATH=/usr/bin/pkg-config:/usr/lib/pkgconfig:/usr/share:/usr/include

I'm not sure if this setting is causing the problems, but it's not
correct. PKG_CONFIG_PATH should only contain paths where there is .pc
metadata files. So, a valid setting would be
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig. However,
those two paths are the default search path, so if you're only
installing in /usr, you can omit PKG_CONFIG_PATH entirely.

You can test this easily enough:

$ pkg-config --modversion fontconfig
$ pkg-config --cflags fontconfig
$ pkg-config --libs fontconfig
$ pkg-config --cflags "fontconfig >= 2.2"
$ pkg-config --libs "fontconfig >= 2.2"

The last two commands being what configure is doing, but storing the
results in FONTCONFIG_{CFLAGS,LIBS}. Maybe your fontconfig is too old?

> export FONTCONFIG_CFLAGS=/usr/include/fontconfig
> export FONTCONFIG_LIBS=/usr/lib
> ./configure $XORG_CONFIG

This is not exactly what you're looking for, and I'm surprised it
passed. The _CFLAGS variable is stuff that will be used when
compiling, so a valid setting would be "-I/usr/include/fontconfig".
And the _LIBS variable is stuff that will be used when linking, so
"-L/usr/local/lib -lfontconfig" would be valid.

> and it configured, made and installed successfully. I'm glad, but also
> confused.  I didn't even get any "me too's" when I googled and found
> nothing similar in the archives.  Therefore, I'm assuming that it was
> something I did or overlooked.

Yeah, this seems like a configuration error rather than in the source
of Xft or fontconfig. Try the commands above; if they're failing, then
there's no reason to continue until they're resolved.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to