Building N|vu from source (on Debian Sid)

  I have more or less followed the instructions for building Nvu from source from Nvu's website. I have tinkered a little bit with the original .mozconfig. The changed .mozconfig I used is given below.

.mozconfig

I did a few changes in the original .mozconfig. The changed lines are indicated with a comment #<-- after the edited lines below.
My .mozconfig:
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1

export MOZ_STANDALONE_COMPOSER=1
mk_add_options MOZ_STANDALONE_COMPOSER=1

# if you want don't want to use gcc and g++ or want to use
# a specific version of the compilers, specify it in the
# two following lines and uncomment them
#export CC="gcc-3.0"
#export CXX="g++-3.0"

# Uncomment the 3 following lines on Debian (this includes
# Linspire)
export OS_LIBS="-lc -lpthread" #<--
#export CFLAGS="-DDEBIAN"
#export CXXFLAGS="-DDEBIAN"
#Added custom FLAGS. Be advised that the flags are
#in a single line between the quotes
export CFLAGS="-Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe" #<--
export CXXFLAGS="-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe" #<--

# Uncomment the two following lines on Linspire
#export LINSPIRE=1
#mk_add_options LINSPIRE=1

# Uncomment and edit this line if you want to build
# outside of the source tree
#mk_add_options MOZ_OBJDIR=/home/glazman/nvu-opt-gtk-xft

# Uncomment the following lines for an optimized build
ac_add_options --enable-optimize="-pipe\ -w\ -O2\ -DDEBIAN" #<--

#If debugging is enabled ensure you have about 1.5GB space on
#your HDD. It took about 68minutes to compile on my 2GHz PIV 256MB RAM box
#for debug enabled build. Disabling debug takes about 40minutes.
ac_add_options --disable-debug #<--

# You may need to uncomment and edit that line. On Linspire,
# just uncomment it
ac_add_options --with-default-mozilla-five-home=/usr/lib/mozilla #<--

# You probably have nothing to change below that line
ac_add_options  --disable-svg
ac_add_options  --without-system-mng
ac_add_options  --without-system-png
ac_add_options  --disable-ldap
ac_add_options  --disable-mailnews
ac_add_options  --disable-installer
ac_add_options  --disable-activex
ac_add_options  --disable-activex-scripting
ac_add_options  --disable-tests
ac_add_options  --disable-oji
ac_add_options  --disable-necko-disk-cache
ac_add_options  --disable-profilesharing
ac_add_options  --enable-extensions=wallet,spellcheck,xmlextras,pref,universalchardet,editor/cascades,venkman,inspector
ac_add_options  --enable-image-decoders=png,gif,jpeg
ac_add_options  --enable-necko-protocols=http,ftp,file,jar,viewsource,res,data
ac_add_options  --disable-pedantic
ac_add_options  --disable-short-wchar
ac_add_options  --enable-xprint
ac_add_options  --enable-strip-libs
ac_add_options  --enable-crypto
ac_add_options  --disable-mathml
ac_add_options  --with-system-zlib
ac_add_options  --enable-freetype2
ac_add_options  --enable-toolkit=gtk2
ac_add_options  --enable-default-toolkit=gtk2
ac_add_options  --enable-xft

I am planning to test other optimization flags in near future. So stay tuned.

After Building

After the build process is over, cd to dist/bin/ and start Nvu by typing ./nvu

To make a tarball of your build:

Since almost all the files in the dist/bin directory are symbolic links you will need to use -h option to compress the real files into the archive.
cd dist/bin
tar -czhvf ../nvu-x.xx-pc-linux-<date>.tar.gz *

Installation instructions for the tarball are available here.
This page is still in it infancy and under development. Please send me a an email(boneywasawarriorvayayix {at} yahoo {dot} com) in case you have suggestions.

©2004 Boney
Hosted by www.Geocities.ws

1