Closed Bug 654422 Opened 14 years ago Closed 14 years ago

configure: error: Can't find header fontconfig/fcfreetype.h

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: decedion, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20100101 Firefox/4.0 Build Identifier: 4.0.1 I'm trying to compile Firefox 4.0.1 on Ubuntu Lucid 64 bits but: "configure: error: Can't find header fontconfig/fcfreetype.h." This file exists: $ locate fcfreetype.h /usr/include/fontconfig/fcfreetype.h My config: --enable-application=browser --with-x --enable-official-branding --disable-accessibility --enable-raw --disable-tests --disable-parental-controls --enable-faststart --disable-pedantic --disable-necko-wifi --disable-debug --enable-optimize --enable-crypto --enable-ui-locale=es-ES --with-l10n-base=. --disable-freetypetest --with-pthreads --disable-crashreporter --disable-updater --enable-system-sqlite --disable-freetypetest Reproducible: Always
You most probably don't have libfontconfig1-dev installed. Please refer to https://developer.mozilla.org/en/Linux_Build_Prerequisites for the list of things you need to build Firefox.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
I have installed libfontconfig1-dev (2.8.0-2ubuntu1)
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
--disable-freetypetest ? Why are you using all those configure options? You should just use --enable-application=browser and skip the rest
(In reply to comment #3) > --disable-freetypetest ? > > Why are you using all those configure options? You should just use > --enable-application=browser and skip the rest I want compile a Firefox fast and optimized for my system. Anyway, this is irrelevant for the resolution of this bug.
This is the last part of config.log: configure:25385: checking for fontconfig/fcfreetype.h configure:25395: gcc -E conftest.c >/dev/null 2>conftest.out In file included from /usr/include/fontconfig/fcfreetype.h:27, from configure:25391: /usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory In file included from configure:25391: /usr/include/fontconfig/fcfreetype.h:28:10: error: #include expects "FILENAME" or <FILENAME> configure: failed program was: #line 25390 "configure" #include "confdefs.h" #include <fontconfig/fcfreetype.h> And ftheader.h exists too: $ locate ftheader.h /home/simon/sources/mozilla-2.0/modules/freetype2/include/freetype/config/ftheader.h /usr/include/freetype2/freetype/config/ftheader.h
I forgot to say: $ pkg-config --cflags freetype2 -I/usr/include/freetype2
(In reply to comment #5) > configure:25395: gcc -E conftest.c >/dev/null 2>conftest.out There should be a -I/usr/include/freetype2 on this command line, which should come from PKG_CHECK_MODULES(FT2, freetype2 > 6.1.0 fontconfig)
$ pkg-config --cflags "freetype2 > 6.1.0 fontconfig" -I/usr/include/freetype2
Please attach your config.log
It's curious but if I add "--disable-pango" to configure it works well.
I understand nothing, now the check works with (or without) "--disable-pango"... ¿?
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.