Building Phoenix: GTK+ 2.x + Xft

Discussion about official Mozilla Firefox builds
User avatar
joshk
Posts: 33
Joined: November 25th, 2002, 1:33 am
Location: Palo Alto, CA
Contact:

Building Phoenix: GTK+ 2.x + Xft

Post by joshk »

See topic - has anyone ever gotten such a build to even get as far as spawning a window without segfaulting?
<mspencer> Hitler used an aimbot.
orochi
Posts: 1
Joined: January 12th, 2003, 7:35 pm

yup

Post by orochi »

im running it here for a couple months now... its stable too, heres my mozconfig


export CFLAGS="-march=pentium3 -Os -pipe"
export CXXFLAGS="-march=pentium3 -Os -pipe"

export MOZ_PHOENIX=1
export MOZ_CALENDER=0
export MOZ_ENABLE_XFT=1

mk_add_options MOZ_PHOENIX=1

# standard options
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composer
ac_add_options --disable-calender
ac_add_options --enable-optimize=-Os

# enable stuff
ac_add_options --with-pthreads
ac_add_options --enable-xft
ac_add_options --enable-freetype2
ac_add_options --enable-xsl
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-cpp-rtti
ac_add_options --enable-cpp-extensions
ac_add_options --enable-old-abi-compat-wrappers

# use system libraries
ac_add_options --with-x
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng

# nspr?
ac_add_options --enable-nspr-autoconf
ac_add_options --with-system-nspr

# disable
ac_add_options --disable-xinerama
ac_add_options --disable-pedantic
ac_add_options --disable-ldap
ac_add_options --disable-xprint
ac_add_options --disable-installer
ac_add_options --disable-jsd
ac_add_options --disable-accessibility
ac_add_options --disable-auto-deps
ac_add_options --disable-dtd-debug
ac_add_options --disable-ipv6
ac_add_options --disable-logging
ac_add_options --disable-svg

# toolkit
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-gtk


im running gentoo btw,
glibc 2.3.1
gcc 2.3.1
hannibal
Posts: 13
Joined: January 13th, 2003, 1:14 pm
Contact:

Post by hannibal »

It works fine for me, however I couldn't use all of the mozconfig options above; I had to remove --enable-xsl because of a compliation error in xpidl.

debian unstable, gcc 3.2, glib 2.3.1
User avatar
AkiAki007
Posts: 262
Joined: December 9th, 2002, 3:15 pm
Location: New York, NY, USA

Re: Building Phoenix: GTK+ 2.x + Xft

Post by AkiAki007 »

joshk wrote:See topic - has anyone ever gotten such a build to even get as far as spawning a window without segfaulting?


I thought you had it running? I would guess you've been the ones with the builds on Ryan's website? right? along with Shadow?

btw, I wasn't able to figure what I am supposed to do with your builds, and Shadow's build simply sat there doing nothing (except take up memory). Of course, this is assuming you're the same person I'm talking about.

And now I'm quite confused...because I was under the impression (screenshots and all) that your build worked.
User avatar
joshk
Posts: 33
Joined: November 25th, 2002, 1:33 am
Location: Palo Alto, CA
Contact:

Post by joshk »

The builds I make are GTK+ 1.2 and Xft.
Thus far..
<mspencer> Hitler used an aimbot.
User avatar
AkiAki007
Posts: 262
Joined: December 9th, 2002, 3:15 pm
Location: New York, NY, USA

Post by AkiAki007 »

joshk wrote:The builds I make are GTK+ 1.2 and Xft.
Thus far..

Ahhh, ok.

I really gotta update to sid and see if my computer still runs :-P then maybe I can get the cool stuff running :)
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

If you want GTK+ 2.x, then why not just use Galeon2?
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

Questions about orochi's ~/.mozconfig. Can anyone give a good explanation of these options, and a good reason why I should include them in my build? Thanks.

--with-pthreads

--enable-reorder

--enable-strip
--enable-strip-libs

--enable-cpp-rtti
--enable-cpp-extensions

--enable-old-abi-compat-wrappers

--with-x
--with-system-jpeg
--with-system-zlib
--with-system-png
--with-system-mng

--enable-nspr-autoconf
--with-system-nspr
hannibal
Posts: 13
Joined: January 13th, 2003, 1:14 pm
Contact:

Post by hannibal »

sig wrote:Questions about orochi's ~/.mozconfig. Can anyone give a good explanation of these options, and a good reason why I should include them in my build? Thanks.

--with-pthreads



I guess this forces the build to use pthreads. I figured it did this automatically so I left it out of my .mozconfig.

--enable-reorder

not sure about this one
--enable-strip
--enable-strip-libs

these strip the executables and libraries, useful if you're not going to be doing any debugging
--enable-cpp-rtti
--enable-cpp-extensions

--enable-old-abi-compat-wrappers

These are C++ related, I don't have them in my mozconfig either.. can someone explain why they are there?

--with-x
--with-system-jpeg
--with-system-zlib
--with-system-png
--with-system-mng

these tell configure to use the system's installed libraries; I thought it did this anyway?

--enable-nspr-autoconf
--with-system-nspr


I suppose these are related to if you have libnspr installed on your system seperately or something. I'm not sure.
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Post by sig »

1. So, what are pthreads, and does mozilla compile with them by default anyway?

2. --enable-reorder. Anyone know what this does and why I should use it?

3. --enable-strip --enable-strip-libs. Sounds good since I won't be debugging. But what sort of benefit do I get for enabling this option? Maybe mozilla runs faster?

4. --enable-cpp-rtti --enable-cpp-extension --enable-old-abi-compat-wrappers. Are these just compiler warning options? Or, do they actually cause the code to be compiled differently? What is the benefit?

5. --with-x --with-system-jpeg --with-system-zlib --with-system-png --with-system-mng. So does mozilla use the system's installed libraries by default, or is it necessary to use these options? What is the benefit of enabling this option?

6. --enable-nspr-autoconf --with-system-nspr. What is nspr? What benefit do I get from enabling this?

Thanks.
hannibal
Posts: 13
Joined: January 13th, 2003, 1:14 pm
Contact:

Post by hannibal »

sig wrote:1. So, what are pthreads, and does mozilla compile with them by default anyway?

2. --enable-reorder. Anyone know what this does and why I should use it?

3. --enable-strip --enable-strip-libs. Sounds good since I won't be debugging. But what sort of benefit do I get for enabling this option? Maybe mozilla runs faster?

4. --enable-cpp-rtti --enable-cpp-extension --enable-old-abi-compat-wrappers. Are these just compiler warning options? Or, do they actually cause the code to be compiled differently? What is the benefit?

5. --with-x --with-system-jpeg --with-system-zlib --with-system-png --with-system-mng. So does mozilla use the system's installed libraries by default, or is it necessary to use these options? What is the benefit of enabling this option?

6. --enable-nspr-autoconf --with-system-nspr. What is nspr? What benefit do I get from enabling this?

Thanks.


1. pthreads is POSIX Threads. Multithreading. It's good, don't worry. I suspect that this is in to force use of posix threads over other thread libraries.

2. see my last post

3. Stripped libraries and executables take up less space, for one thing.

4. see my last post

5. I'm not sure, but I figured it used the system's libraries by default. Mozilla doesn't ship with libjpeg, libpng etc, after all.

6. NSPR is the cross-platform library from Netscape, used in Mozilla. I'm not sure what these do, though.
User avatar
Shadow3333
Posts: 1761
Joined: November 5th, 2002, 5:22 am
Location: Amsterdam, Holland

Post by Shadow3333 »

Just finished building with GTK 2, works fine on Red Hat 8.0 :) You can expect it to show up on Ryan's server later today ( link )
Franck
Posts: 54
Joined: November 5th, 2002, 11:56 am

Post by Franck »

Unable to install extensions with the gtk2 build under rh8.0 : phoenix close immediately.

Extension installation works fine with the phoenix-xft-martijn-i686-pc-linux-gnu-20030116
sig
Posts: 118
Joined: January 14th, 2003, 6:12 pm

Re: yup

Post by sig »

orochi wrote:export MOZ_PHOENIX=1
export MOZ_CALENDER=0
export MOZ_ENABLE_XFT=1

mk_add_options MOZ_PHOENIX=1


1. Why is there an "export MOZ_PHOENIX=1" and at the same time, a "mk_add_options MOZ_PHOENIX=1"? In order to enable the building of phoenix, is it really necessary to include BOTH of these lines?

2. Similar question regarding "export MOZ_CALENDAR=0" and "export MOZ_ENABLE_XFT=1". In the body of the .mozconfig, there is already a "ac_add_options --disable-calendar" and a "ac_add_options --enable-xft". So, what is the purpose of these two export lines, since these two options already are enabled?
agamid
Posts: 190
Joined: January 16th, 2003, 9:32 pm

Post by agamid »

I'm wondering... do we also need the export MOZ_ENABLE_XFT=1 line?
I built with --enable-xft and it seems to give me AA fonts.
I did not use the export MOZ_ENABLE_XFT line.
Post Reply