Build Nvu from the source
By glazou on Wednesday 4 February 2004, 15:46 - Nvu - Permalink
If you're not familiar with Mozilla build process, the following is for you.
If you are familiar with it, read it and you'll know what to change to match your own settings.
- First read the instructions in this document
- get mozilla/client.mk
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk
the password for the anonymous account is anonymous.
- If you're using Windows, save this file
in the mozilla
directory the previous command just created and edit it.
If you are using Linux, save this file in the mozilla directory the previous command just created and edit it.
In both cases the name of the file is .mozconfig (dot mozconfig).
Then carefully read the Mozilla build instructions for Windows or the detailed Mozilla build instructions for Linux and domake -f client.mk pull_all
- get the Nvu specific code:
- save this file
and uncompress it into the mozilla
directory created above
tar xfz nvu-0.15-source.tar.gz
- save this
patch file, uncompress it and apply it from the mozilla
directory created above
gunzip netwerk.patch.gz
patch -p 0 < netwerk.patch
- save this file
and uncompress it into the mozilla
directory created above
- build the code
make -f client.mk build_all
- after the build, there is in the mozilla/dist/bin (Linux) or mozilla\dist\bin (Windows) directory a file called nvu or nvu.exe. Just run it to start Nvu BUT don't forget to take a look at this article first...
The tarball is a 0.15, and the site manager it offers has more features than the one in the binary package.
NOW, who said we were not really doing an OSS project...

Comments
Super
Je vais pouvoir faire """"mumuse"""" avec ton bébé
la seule grosse modification que j'apporterais, c'est le niveau d'optimisation pour mon antique VC++ 6.0 : --enable-optimize='-O1 -G6'
Encore merci pour le source et je vais bientôt pouvoir """bazarder""" Html-Kit & Top Style pour mes pages web
I wonder how many reviewers it will take to get this code into the trunk.
What are the files "about-thunderbird.png" and "mail-options.png" doing in the source tarball?
Can the Windows version also be compiled with gcc?
Was anyone able to compile it on Windows XPsp1 from scratch? It's a fresh build environment - no previous mozilla trees are present.
cvs pull was running for a while, then this error happend.
After that, here is what happens when I try to pull files from cvs:
C:\mozilla_org\mozilla>make -f client.mk pull_all
Adding client.mk options from /cygdrive/c/mozilla_org/mozilla/.mozconfig:
MOZ_STANDALONE_COMPOSER=1
checkout start: Thu Feb 5 03:31:46 CST 2004
cvs -q -z 3 co -P mozilla/client.mk mozilla/build/unix/modules.mk mozilla/build/unix/uniq.pl
make[1]: Entering directory `/cygdrive/c/mozilla_org'
cvs -q -z 3 co -P -r NSPRPUB_PRE_4_2_CLIENT_BRANCH mozilla/nsprpub
cvs.exe checkout: in directory .:
cvs.exe [checkout aborted]: *PANIC* administration files missing
make[1]: *** [real_checkout] Error 1
make[1]: Leaving directory `/cygdrive/c/mozilla_org'
make: *** [checkout] Error 2
Any suggestions?
Thanks,
Walter
RE: My previous build problem. It looks like the problem is fixed! It turns out my direcory structure was at fault.
I had:
- source root: C:\mozilla_org\mozilla
- cvs in C:\mozilla_org\cvs
After I moved cvs dir completely out of C:\mozilla_org, source pull went on. Sorry for the mess, but it's my first *zilla build.
W.
I'm still pressing on with compilation (trying to follow instructions, etc.) Same setup as above. This time around it almost finished. Most of dll's and components are in mozilla/dist/bin already, but I'm getting a this error. Here is where if bombs:
nsModule.cpp
c:/mozilla_org\mozilla\xpfe\components\build2 sModule.cpp(100) : error C2065: 'NS_ALERTSERVICE_CONTRACTID' : undeclared identifier
make[5]: *** [nsModule.obj] Error 2
make[5]: Leaving directory `/cygdrive/c/mozilla_org/mozilla/xpfe/components/build2'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/c/mozilla_org/mozilla/xpfe/components'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla_org/mozilla/xpfe'
make[2]: *** [tier_50] Error 2
make[2]: Leaving directory `/cygdrive/c/mozilla_org/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/mozilla_org/mozilla'
make: *** [build] Error 2
Can anybody clue me in on what's happening? Usual places had no helpful info.
Thanks,
Walter
I'm trying to build as per the given instructions. It spends quite some time compiling, but then produces an error on nsGlobalHistory.cpp and fails:
nsGlobalHistory.cpp
c++ -o nsGlobalHistory.o -c -DOSTYPE=\"Linux2.4.20-28\" -DOSARCH=\"Linux\" -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/docshell -I../../../../dist/include/rdf -I../../../../dist/include/mork -I../../../../dist/include/pref -I../../../../dist/include/necko -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/uconv -I../../../../dist/include/appcomps -I../../../../dist/include/history -I../../../../dist/include -I/home/msquared/software/webdev/nvu/cvs/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -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 -DDEBUG -D_DEBUG -DDEBUG_msquared -DTRACING -g -fno-inline -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsGlobalHistory.pp nsGlobalHistory.cpp
nsGlobalHistory.cpp:1078: no `nsresult nsGlobalHistory::RemovePage(const char*)
' member function declared in class `nsGlobalHistory'
nsGlobalHistory.cpp: In member function `virtual nsresult
nsGlobalHistory::Unassert(nsIRDFResource*, nsIRDFResource*, nsIRDFNode*)':
nsGlobalHistory.cpp:1992: `RemovePage' undeclared (first use this function)
nsGlobalHistory.cpp:1992: (Each undeclared identifier is reported only once for
each function it appears in.)
gmake[6]: *** [nsGlobalHistory.o] Error 1
gmake[6]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history/src'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe'
gmake[2]: *** [tier_50] Error 2
gmake[2]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make: *** [build] Error 2
I'm building under Shrike (RedHat 9).
I'm trying to compile under RedHat Linux 9 (Shrike), but I get errors:
nsGlobalHistory.cpp
c++ -o nsGlobalHistory.o -c -DOSTYPE=\"Linux2.4.20-28\" -DOSARCH=\"Linux\" -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/docshell -I../../../../dist/include/rdf -I../../../../dist/include/mork -I../../../../dist/include/pref -I../../../../dist/include/necko -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/uconv -I../../../../dist/include/appcomps -I../../../../dist/include/history -I../../../../dist/include -I/home/msquared/software/webdev/nvu/cvs/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -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 -DDEBUG -D_DEBUG -DDEBUG_msquared -DTRACING -g -fno-inline -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsGlobalHistory.pp nsGlobalHistory.cpp
nsGlobalHistory.cpp:1078: no `nsresult nsGlobalHistory::RemovePage(const char*)
' member function declared in class `nsGlobalHistory'
nsGlobalHistory.cpp: In member function `virtual nsresult
nsGlobalHistory::Unassert(nsIRDFResource*, nsIRDFResource*, nsIRDFNode*)':
nsGlobalHistory.cpp:1992: `RemovePage' undeclared (first use this function)
nsGlobalHistory.cpp:1992: (Each undeclared identifier is reported only once for
each function it appears in.)
gmake[6]: *** [nsGlobalHistory.o] Error 1
gmake[6]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history/src'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe'
gmake[2]: *** [tier_50] Error 2
gmake[2]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make: *** [build] Error 2
What have I done wrong?
I'm trying to compile under Shrike (RedHat9), but I'm getting errors on nsGlobalHistory.cpp:
nsGlobalHistory.cpp:1078: no `nsresult nsGlobalHistory::RemovePage(const char*)
' member function declared in class `nsGlobalHistory'
nsGlobalHistory.cpp: In member function `virtual nsresult
nsGlobalHistory::Unassert(nsIRDFResource*, nsIRDFResource*, nsIRDFNode*)':
nsGlobalHistory.cpp:1992: `RemovePage' undeclared (first use this function)
nsGlobalHistory.cpp:1992: (Each undeclared identifier is reported only once for
each function it appears in.)
gmake[6]: *** [nsGlobalHistory.o] Error 1
gmake[6]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history/src'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components/history'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe/components'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla/xpfe'
gmake[2]: *** [tier_50] Error 2
gmake[2]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/msquared/software/webdev/nvu/cvs/mozilla'
make: *** [build] Error 2
What am I missing?