Discussion:
Building Firebird/Mozilla with gtk 2.2.2
Darren Salt
2003-07-28 19:11:36 UTC
Permalink
I demand that DB may or may not have written...
I read in another post that someone got this combination to compile but I
am having some difficulty. The configure script for both Firebird and
Mozilla try to locate GTK (1.2) using gtk-config. [...]
Ditto for me. [...]
"--disable-toolkit-gtk --enable-default-toolkit=gtk2" works here.
--
| Darren Salt | d youmustbejoking,demon,co,uk | nr. Ashington,
| RISC OS, | s zap,tartarus,org | Northumberland
| Linux | @ | Toon Army
| Nothing much, coming your way *soon*...

How you look depends on where you go.
DB
2003-07-28 18:40:14 UTC
Permalink
I read in another post that someone got this combination to compile
but I am having some difficulty. The configure script for both
Firebird and Mozilla try to locate GTK (1.2) using gtk-config. I
recently installed gtk 2.2.2 and it did not install a gtk-config, nor
can I find any mention of one in the included documents except for the
changelog. Has pkg-config replaced gtk-config? If so, how does one
get Mozilla to build now? Trying to edit the scripts (ew) ?
I searched a bit and all I could find were very old posts of people
saying 'download the -dev version', but it even says on the gtk
website that there is no non-dev version of gtk.
Bj
Ditto for me.

I'd like to start running nightlies to help debugging but have given
up to avoid conflicts with the packages already installed on the
Redhat 9.0 system I'm using. Does one really need to build gtk, glib,
gtk, pango, atk, just to install mozilla? Did Redhat mis-install these
packages or is this a problem with the mozilla cvs build?

db
Christopher Blizzard
2003-07-28 21:14:06 UTC
Permalink
I read in another post that someone got this combination to compile
but I am having some difficulty. The configure script for both
Firebird and Mozilla try to locate GTK (1.2) using gtk-config. I
recently installed gtk 2.2.2 and it did not install a gtk-config, nor
can I find any mention of one in the included documents except for the
changelog. Has pkg-config replaced gtk-config? If so, how does one
get Mozilla to build now? Trying to edit the scripts (ew) ?
I searched a bit and all I could find were very old posts of people
saying 'download the -dev version', but it even says on the gtk
website that there is no non-dev version of gtk.
Bj
Ditto for me.
I'd like to start running nightlies to help debugging but have given
up to avoid conflicts with the packages already installed on the
Redhat 9.0 system I'm using. Does one really need to build gtk, glib,
gtk, pango, atk, just to install mozilla? Did Redhat mis-install these
packages or is this a problem with the mozilla cvs build?
db
--enable-default-toolkit=gtk2 --enable-xft should be enough. Those
require the gtk2 devel libraries as well as pkgconfig to drive them.

--Chris
--
------------
Christopher Blizzard
http://www.mozilla.org
------------
Geoff Leach
2003-07-29 14:01:25 UTC
Permalink
I read in another post that someone got this combination to compile
but I am having some difficulty. The configure script for both
Firebird and Mozilla try to locate GTK (1.2) using gtk-config. I
recently installed gtk 2.2.2 and it did not install a gtk-config, nor
can I find any mention of one in the included documents except for the
changelog. Has pkg-config replaced gtk-config? If so, how does one
get Mozilla to build now? Trying to edit the scripts (ew) ?
I searched a bit and all I could find were very old posts of people
saying 'download the -dev version', but it even says on the gtk
website that there is no non-dev version of gtk.
Bj
Ditto for me.
I'd like to start running nightlies to help debugging but have given
up to avoid conflicts with the packages already installed on the
Redhat 9.0 system I'm using. Does one really need to build gtk, glib,
gtk, pango, atk, just to install mozilla? Did Redhat mis-install these
packages or is this a problem with the mozilla cvs build?
db
I regularly build Mozilla on RHL 9 (and previously RHL 8 and 7.x). I
dont think I specially installed anything specifically to get Mozilla
builds working - although I did do a full install.

My options are

about:buildconfig

--enable-svg --enable-calendar --enable-crypto
--enable-default-toolkit=gtk2 --disable-toolkit-gtk --disable-toolkit-qt
--enable-xft --enable-freetype2 --enable-cpp-rtti
--enable-cpp-exceptions --enable-extensions --with-system-jpeg
--with-system-zlib --with-system-png --with-system-mng

I probably need to have another look at the --enable-cpp-rtti and
--enable-cpp-exceptions. From a quick look at the g++ (2.3.2) man page
they are (now?) enabled by default. Apart from being compiler flags
there may be code conditional on these options, although I couldnt see
any #defines based on them. It looks as though the --disable-toolkit-gtk
--disable-toolkit-qt may be unecessary (--enable-default-toolkit sets
them), but I was never sure. Also, --with-system-mng does not currently
do anything.

Geoff
Christopher Blizzard
2003-07-29 14:06:48 UTC
Permalink
Post by Geoff Leach
I read in another post that someone got this combination to compile
but I am having some difficulty. The configure script for both
Firebird and Mozilla try to locate GTK (1.2) using gtk-config. I
recently installed gtk 2.2.2 and it did not install a gtk-config, nor
can I find any mention of one in the included documents except for the
changelog. Has pkg-config replaced gtk-config? If so, how does one
get Mozilla to build now? Trying to edit the scripts (ew) ?
I searched a bit and all I could find were very old posts of people
saying 'download the -dev version', but it even says on the gtk
website that there is no non-dev version of gtk.
Bj
Ditto for me.
I'd like to start running nightlies to help debugging but have given
up to avoid conflicts with the packages already installed on the
Redhat 9.0 system I'm using. Does one really need to build gtk, glib,
gtk, pango, atk, just to install mozilla? Did Redhat mis-install these
packages or is this a problem with the mozilla cvs build?
db
I regularly build Mozilla on RHL 9 (and previously RHL 8 and 7.x). I
dont think I specially installed anything specifically to get Mozilla
builds working - although I did do a full install.
My options are
about:buildconfig
--enable-svg --enable-calendar --enable-crypto
--enable-default-toolkit=gtk2 --disable-toolkit-gtk
--disable-toolkit-qt --enable-xft --enable-freetype2 --enable-cpp-rtti
--enable-cpp-exceptions --enable-extensions --with-system-jpeg
--with-system-zlib --with-system-png --with-system-mng
I probably need to have another look at the --enable-cpp-rtti and
--enable-cpp-exceptions. From a quick look at the g++ (2.3.2) man page
they are (now?) enabled by default. Apart from being compiler flags
there may be code conditional on these options, although I couldnt see
any #defines based on them. It looks as though the
--disable-toolkit-gtk --disable-toolkit-qt may be unecessary
(--enable-default-toolkit sets them), but I was never sure. Also,
--with-system-mng does not currently do anything.
Geoff
A lot of those aren't needed, really. Since we don't use rtti or c++
exceptions those options are just going to make your code bigger, with
no positive results. Also --enable-default-toolkit=gtk2 and
--enable-xft is all you need. The various --disable-toolkit-foo don't
really do much in the face of --enable-default-toolkit. Also, if you're
using --enable-xft you don't really need --enable-freetype2.

--Chris
--
------------
Christopher Blizzard
http://www.mozilla.org
------------
Geoff Leach
2003-07-29 14:29:23 UTC
Permalink
Post by Christopher Blizzard
Post by Geoff Leach
I regularly build Mozilla on RHL 9 (and previously RHL 8 and 7.x). I
dont think I specially installed anything specifically to get Mozilla
builds working - although I did do a full install.
My options are
about:buildconfig
--enable-svg --enable-calendar --enable-crypto
--enable-default-toolkit=gtk2 --disable-toolkit-gtk
--disable-toolkit-qt --enable-xft --enable-freetype2 --enable-cpp-rtti
--enable-cpp-exceptions --enable-extensions --with-system-jpeg
--with-system-zlib --with-system-png --with-system-mng
I probably need to have another look at the --enable-cpp-rtti and
--enable-cpp-exceptions. From a quick look at the g++ (2.3.2) man page
they are (now?) enabled by default. Apart from being compiler flags
there may be code conditional on these options, although I couldnt see
any #defines based on them. It looks as though the
--disable-toolkit-gtk --disable-toolkit-qt may be unecessary
(--enable-default-toolkit sets them), but I was never sure. Also,
--with-system-mng does not currently do anything.
Geoff
A lot of those aren't needed, really. Since we don't use rtti or c++
exceptions those options are just going to make your code bigger, with
no positive results. Also --enable-default-toolkit=gtk2 and
--enable-xft is all you need. The various --disable-toolkit-foo don't
really do much in the face of --enable-default-toolkit. Also, if you're
using --enable-xft you don't really need --enable-freetype2.
Thanks for the clarification. I should also have persisted/revisited
reading the code ...

Just add that a complete new/clobber build with the above takes around
2-3 hours on my 1.6 GHz P4 box.

The one time I've tried so far (a couple of months back) to build
Mozilla Firebird there seemed to be a clash with building Mozilla -
neither worked for me and I started afresh with a clobber build. But I
assumed they could be built in the same tree. I need to read the Mozilla
Firebird instructions (again), but can someone clarify whether both
Mozilla and Mozilla Firebird are buildable in the same tree or whether
different trees needed?

Geoff
Christian Biesinger
2003-07-29 20:07:50 UTC
Permalink
Post by Geoff Leach
I probably need to have another look at the --enable-cpp-rtti and
--enable-cpp-exceptions. From a quick look at the g++ (2.3.2) man page
they are (now?) enabled by default.
Yes, G++ enables them by default, but mozilla explicitly disables them
(unless you use these --enable-cpp-{rtti,exceptions} flags), because
they make the code bigger and mozilla doesn't use these features anyway.
Loading...