[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Problems installing the Fontconfig package
From: |
Douglas Peterson |
Subject: |
Re: [Ltib] Problems installing the Fontconfig package |
Date: |
Tue, 2 Aug 2011 17:36:39 -0700 |
I think I've gotten a little bit further on this problem.
Fontconfig seems to be made up of several sub-directories:
fc-case
fc-lang
fc-glyphname
fc-arch
src
The original fontconfig.spec file originally contained the following %build
section:
%Build
# we don't have docbook-utils in the distribution
ac_cv_prog_HASDOCBOOK=no \
ac_cv_prog_CC_FOR_BUILD="${BUILDCC}" \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--with-arch=$GNUTARCH --sysconfdir=%{_sysconfdir}
make
I first altered it to add the --with-freetype-config and --prefix like so:
%Build
# we don't have docbook-utils in the distribution
ac_cv_prog_HASDOCBOOK=no \
ac_cv_prog_CC_FOR_BUILD="${BUILDCC}" \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--with-arch=$GNUTARCH --sysconfdir=%{_sysconfdir} \
--with-freetype-config=”$DEV_IMAGE/usr/bin/freetype-config
--prefix=$DEV_IMAGE/usr”
make
Then I altered it to force the -I switch on ac_cv_prog_CC_FOR_BUILD like so:
%Build
# we don't have docbook-utils in the distribution
ac_cv_prog_HASDOCBOOK=no \
ac_cv_prog_CC_FOR_BUILD="${BUILDCC} -I$DEV_IMAGE/usr/include/freetype2
-I$DEV_IMAGE/usr/include" \
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--with-arch=$GNUTARCH --sysconfdir=%{_sysconfdir} \
--with-freetype-config=”$DEV_IMAGE/usr/bin/freetype-config
--prefix=$DEV_IMAGE/usr”
make
This seems to produce a partial success. The subdirectories (fc-case, fc-lang,
fc-glyphname, fc-dist) each compile, but when it gets to src, it switches
tools. The compiler executed for the fc-XXX is
ccache /usr/bin/gcc
For src it becomes
/bin/bash ../libtool --tag=CC --mode=compile gcc
So how do I get this 'libtool' to add some include directories?
Douglas
On 28/07/11 19:17, Douglas Peterson wrote:
First I encountered the error that the Freetype package was not installed.
According to Stuart Hughes
(http://lists.gnu.org/archive/html/ltib/2010-12/msg00127.html) this is because
the "package checks" leak out to the host. The solution was to install
libfreetype6-dev on the host.
Then I encounted this error: libfreetype.so: could not read symbols: File in
wrong format.
I added
--with-freetype-config=”$DEV_IMAGE/usr/bin/freetype-config
–prefix=$DEV_IMAGE/usr”
to the ./configure line found in "ltib/dist/lfs-5.1/fontconfig/fontconfig.spec"
as suggested by frogman
(http://forums.freescale.com/t5/i-MX-Microprocessors/Ltib-link-error-with-fontconfig-on-Ubuntu-host/m-p/80853/highlight/false#M3409).
Now I have the error: freetype/config/ftheader.h: No such file or directory.
Looking closely at the error message:
+ make
make all-recursive
make[1]: Entering directory `/home/build/ltib/rpm/BUILD/fontconfig-2.4.2'
Making all in fontconfig
make[2]: Entering directory
`/home/build/ltib/rpm/BUILD/fontconfig-2.4.2/fontconfig'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/build/ltib/rpm/BUILD/fontconfig-2.4.2/fontconfig'
Making all in fc-case
make[2]: Entering directory
`/home/build/ltib/rpm/BUILD/fontconfig-2.4.2/fc-case'
make all-am
make[3]: Entering directory
`/home/build/ltib/rpm/BUILD/fontconfig-2.4.2/fc-case'
if ccache /usr/bin/gcc -B/usr/bin// -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I..
-I/home/build/ltib/rootfs/usr/include/freetype2
-I/home/build/ltib/rootfs/usr/include -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -g -O2 -MT fc-case.o -MD -MP -MF
".deps/fc-case.Tpo" -c -o fc-case.o fc-case.c; \
then mv -f ".deps/fc-case.Tpo" ".deps/fc-case.Po"; else rm -f
".deps/fc-case.Tpo"; exit 1; fi
In file included from ../fontconfig/fcfreetype.h:27:0,
from ../src/fcint.h:50,
from fc-case.c:25:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such
file or directory
You can see in the compiler command-line that
-I/home/build/ltib/rootfs/usr/include/freetype2 is added and from that
directory freetype/config/ftheader.h does exist.
I have deleted the ltib/rpm/BUILD/fontconfig-2.4.2 directory prior to compiling
each time I try to build it.
I don't know where to go from here to fix this.
Douglas
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib
- Re: [Ltib] Problems installing the Fontconfig package,
Douglas Peterson <=
- Re: [Ltib] Problems installing the Fontconfig package, Stuart Hughes, 2011/08/03
- Re: [Ltib] Problems installing the Fontconfig package, Douglas Peterson, 2011/08/03
- Re: [Ltib] Problems installing the Fontconfig package, Douglas Peterson, 2011/08/03
- Re: [Ltib] Problems installing the Fontconfig package, Douglas Peterson, 2011/08/03
- Re: [Ltib] Problems installing the Fontconfig package, Douglas Peterson, 2011/08/03
- Re: [Ltib] Problems installing the Fontconfig package, Stuart Hughes, 2011/08/04
- Re: [Ltib] Problems installing the Fontconfig package, Stuart Hughes, 2011/08/07