[Buildroot] Fontconfig

Bernhard Fischer rep.dot.nop at gmail.com
Wed Jan 17 15:30:02 UTC 2007


On Wed, Jan 17, 2007 at 01:49:14PM +0100, Julien Vermillard wrote:
>Hello,
>
>Look like fontconfig got a problem :

fontconfig is completely broken:
1)
It passes the TARGET_CFLAGS down to the HOSTCC which just works out of
pure luck for you.
2) It builds the host-tools fc-cache, fc-cat etc that is ment to be used
on the _host_ against the target libraries and headers.

I have a patch that adds a BUILD_CFLAGS for the host-compiler, but
that's only half of the story; Fontconfig does not distinguish between
freetype-config for the host vs. target, so fontconfig is essentially
b0rked for cross-compilation (at least IMHO).

I did not look if the CVS version on freedesktop.org fixes these obvious
bugs. If it does, we should use that version instead of the release, if
it doesn't than someone should better fix fontconfig to cleanly
cross-compile upstream..

HTH,
>
>make[4]: Entering directory
>`/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case'
>gcc  -Os -pipe     -o fc-case  fc-case.o  
>fc-case.o: In function `main':
>fc-case.c:(.text+0x3e6): undefined reference to `__ctype_b'
>collect2: ld returned 1 exit status
>make[4]: *** [fc-case] Error 1
>make[4]: Leaving directory
>`/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case'
>make[3]: *** [all] Error 2
>make[3]: Leaving directory
>`/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/fc-case'
>make[2]: *** [all-recursive] Error 1
>make[2]: Leaving directory
>`/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory
>`/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2'
>make: *** 
>[/opt/buildroot/buildroot/build_i586/fontconfig-2.4.2/.compiled] Error 2
>
>Any idea ?
>
>Julien
>
>_______________________________________________
>buildroot mailing list
>buildroot at uclibc.org
>http://busybox.net/mailman/listinfo/buildroot
>



More information about the buildroot mailing list