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

RESOLVED INVALID

Status

RESOLVED INVALID
8 years ago
8 months ago

People

(Reporter: decedion, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
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
Last Resolved: 8 years ago
Resolution: --- → INVALID
(Reporter)

Comment 2

8 years ago
I have installed libfontconfig1-dev (2.8.0-2ubuntu1)
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

Comment 3

8 years ago
--disable-freetypetest ?

Why are you using all those configure options? You should just use --enable-application=browser and skip the rest
(Reporter)

Comment 4

8 years ago
(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.
(Reporter)

Comment 5

8 years ago
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
(Reporter)

Comment 6

8 years ago
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)
(Reporter)

Comment 8

8 years ago
$ pkg-config --cflags "freetype2 > 6.1.0 fontconfig"
-I/usr/include/freetype2
Please attach your config.log
(Reporter)

Comment 10

8 years ago
It's curious but if I add "--disable-pango" to configure it works well.
(Reporter)

Comment 11

8 years ago
I understand nothing, now the check works with (or without) "--disable-pango"... ¿?
(Reporter)

Updated

8 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago8 years ago
Resolution: --- → INVALID

Updated

8 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.