Closed Bug 281319 Opened 20 years ago Closed 20 years ago

Clash between xft and freetype2 (with --enable-xft)

Categories

(Developer Documentation Graveyard :: General, defect)

Other
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vincent-moz, Assigned: benjamin)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8a5) Gecko/20041230
Build Identifier: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8a5) Gecko/20041230

When configuring Mozilla with --enable-xft, I got the error:

configure: error: Cannot enable XFT and FREETYPE2 at the same time.

Adding the following line to the .mozconfig solves the problem, but it should be
assumed when using --enable-xft.

ac_add_options --disable-freetype2

Note that the documentation http://www.mozilla.org/build/configure-build.html
doesn't mention --disable-freetype2.

Reproducible: Always

Steps to Reproduce:




Here's my .mozconfig that lead to the error:

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-sunbird
. $topsrcdir/calendar/sunbird/config/mozconfig
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --disable-tests
ac_add_options --enable-xterm-updates
ac_add_options --disable-pedantic
ac_add_options --prefix=$HOME/sunbird
Summary: Clash between xtf and freetype2 (with --enable-xft) → Clash between xft and freetype2 (with --enable-xft)
That's what's supposed to happen. You can't build Xft and freetype2 together. 
http://www.mozilla.org/build/configure-build.html does have :


ac_add_options --enable-freetype2
    Enables freetype font rendering. This is available with GTK or GTK2, but it
is not compatible with --enable-xft

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I did *not* use "ac_add_options --enable-freetype2". So without it, the
compilation should work.

This bug is not invalid, unless the documentation is changed to say that
freetype2 is enabled by default and that "ac_add_options --enable-freetype2" is
replaced by "ac_add_options --disable-freetype2" to indicate how to disable it.
According to the current documentation, freetype2 is not enabled by default
since one needs to use "ac_add_options --enable-freetype2" to enable it.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Ok. The documentation needs a little rewording. 

ac_add_options --enable-xft
    Enables XFT advanced font rendering. This is only available with
--enable-default-toolkit=gtk2, but it is recommended with gtk2 
ac_add_options --enable-freetype2
    Enables freetype font rendering. This is available with GTK or GTK2, but it
is not compatible with --enable-xft

The above should be changed to 

ac_add_options --enable-xft
  Enables XFT advanced font rendering. This is only available with
--enable-default-toolkit=gtk2 and it is recommended with gtk2. Note that 
freetype font rendering is not compatible with XFT so that it has to be disabled
explicitly with --disable-freetype2

ac_add_options --disable-freetype2
  disables freetype font rendering which is enabled by default for all X11
toolkits including GTK and GTK2


See also bug 281402
Assignee: nobody → benjamin
Status: UNCONFIRMED → NEW
Component: Build Config → Mozilla Developer
Ever confirmed: true
Product: Core → Documentation
Version: Trunk → unspecified
Docs fixed.
Status: NEW → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Component: Mozilla Developer → Documentation Requests
Product: Documentation → Mozilla Developer Center
Component: Documentation Requests → Documentation
Component: Documentation → General
Product: Mozilla Developer Network → Developer Documentation
You need to log in before you can comment on or make changes to this bug.