You are not logged in.

#1 2003-12-16 11:42:10

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 671

cannot compile firebird using abs

Tried to make my own binary of mozilla firebird using abs and makpkg and got the following error:

In file included from /usr/X11R6/include/X11/Xft/Xft.h:35,
                 from nsDeviceContextGTK.cpp:79:
/usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
nsDeviceContextGTK.cpp: In function `void 
   xlfd_from_pango_font_description(GtkWidget*, const PangoFontDescription*, 
   nsString&)':
nsDeviceContextGTK.cpp:1096: warning: unused variable `char*tmp'
make[4]: *** [nsDeviceContextGTK.o] Error 1
make[4]: Leaving directory `/var/abs/network/mozilla-firebird/src/mozilla/gfx/src/gtk'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/var/abs/network/mozilla-firebird/src/mozilla/gfx/src'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/var/abs/network/mozilla-firebird/src/mozilla/gfx'
make[1]: *** [tier_9] Error 2
make[1]: Leaving directory `/var/abs/network/mozilla-firebird/src/mozilla'
make: *** [default] Error 2
==> Build Failed.  Aborting...

I did run abs beforehand so I should have all the latest files - any hints on this?

Offline

#2 2003-12-16 13:47:27

Nickm
Member
From: Netherlands
Registered: 2003-02-25
Posts: 104

Re: cannot compile firebird using abs

due to a recent upgrade of freetype it now needs to be included differently in the source files.
I think you can solve the problem by editing mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp
and adding

#include <ft2build.h>
#include FT_FREETYPE_H

somewhere at the top of the file where other lines starting with #include are
you may have do do this with other files as well, if you get this error again.

if you run makepkg again, all changes you made are undone, so it would be easier if someone could make a patch file


Who is peer, and why is he resetting my connection ??

Offline

Board footer

Powered by FluxBB