Difference between revisions of "Ubuntu Build Instructions"
m (→Tips) |
m (→Development Environment Preparation Script) |
||
Line 74: | Line 74: | ||
===Development Environment Preparation Script=== | ===Development Environment Preparation Script=== | ||
+ | '''Note:''' User interaction is required first to enter a password for apt-get, and again much later to hit Enter when prompted for a CVS password. | ||
<pre> | <pre> | ||
#!/bin/bash | #!/bin/bash | ||
echo "Starting Ubuntu ooo-build preparations..." | echo "Starting Ubuntu ooo-build preparations..." | ||
− | sudo apt-get -y install cvs automake1.9 build-essential libpam0g-dev libpng12-dev flex bison libgtk2.0-dev tcsh libcupsys2-dev java-gcj-compat-dev libarchive-zip-perl libjpeg62-dev libxml2-dev python-dev libdb4.3-dev libdb4.3-java-dev libcurl3-dev unixodbc-dev libldap2-dev mozilla-dev libnss-dev libsane-dev libxaw-headers libaudio-dev libsndfile1-dev libneon24-dev libgnomevfs2-dev libstartup-notification0-dev ant | + | sudo apt-get -y install cvs automake1.9 build-essential libpam0g-dev libpng12-dev flex bison libgtk2.0-dev \ |
+ | tcsh libcupsys2-dev java-gcj-compat-dev libarchive-zip-perl libjpeg62-dev libxml2-dev python-dev libdb4.3-dev \ | ||
+ | libdb4.3-java-dev libcurl3-dev unixodbc-dev libldap2-dev mozilla-dev libnss-dev libsane-dev libxaw-headers \ | ||
+ | libaudio-dev libsndfile1-dev libneon24-dev libgnomevfs2-dev libstartup-notification0-dev ant | ||
export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome' | export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome' | ||
Line 85: | Line 89: | ||
cvs up -Pd -r ooo-build-2-0-2 | cvs up -Pd -r ooo-build-2-0-2 | ||
− | echo " | + | echo "Preparations complete." |
cd ooo-build | cd ooo-build | ||
./autogen.sh --with-distro=Ubuntu --disable-kde | ./autogen.sh --with-distro=Ubuntu --disable-kde | ||
./download | ./download | ||
+ | |||
+ | #Now comment out failing patch: | ||
+ | cp patches/src680/apply patches/src680/apply~ | ||
+ | sed 's/^ubuntu-dictionary\.diff/#&/' <patches/src680/apply~ >patches/src680/apply | ||
+ | rm patches/src680/apply~ | ||
make | make | ||
</pre> | </pre> |
Revision as of 11:52, 25 May 2006
This tutorial will assume a stock Ubuntu 5.10 (Breezy) system as a starting point.
Contents
Obtaining ooo-build
One may obtain the stable 2.0.2 version of ooo-build
via CVS with the following commands:
export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome' cvs login cvs -z3 checkout -P ooo-build cvs update -Pd -r ooo-build-2-0-2
You should then enter the ooo-build
directory and run ./autogen.sh --with-distro=Ubuntu
. Most likely you'll also want to add the --disable-kde
flag (unless you're using Kubuntu).
Additional Required Packages
Packages may be obtained as follows:
sudo apt-get install package_name [additional_package(s)]
To obtain the source, you need:
- cvs
To complete autogen.sh
, you need:
- automake1.9
- build-essential
- libpam0g-dev
- libpng12-dev
- flex
- bison
- libgtk2.0-dev
For make
to finish its configuration stage, you need:
- tcsh
- libcupsys2-dev
- java-gcj-compat-dev
- libarchive-zip-perl
- libjpeg62-dev
- libxml2-dev
- python-dev
- libdb4.3-dev
- libdb4.3-java-dev
- libcurl3-dev
- unixodbc-dev
- libldap2-dev
- mozilla-dev
- libnss-dev
- libsane-dev
- libxaw-headers
- libaudio-dev
- libsndfile1-dev
- libneon24-dev
- libgnomevfs2-dev
- kdebase-dev (KDE only?)
- libstartup-notification0-dev
- ant
Far into the main build commencing section, you'll realize you need these:
- ?
- ??libmono-dev
- [please help populate the rest of this list!]
Failed patches
Some of the patches listed in ooo-build/patches/src680/apply
may not apply successfully. You can try to comment them out in the apply
file, but this is an experimental solution...
Tips
A shell script like the one below will alert your attention upon completion of the quite lengthy build process. Run it after ./download
completes in place of make
.
#!/bin/bash echo "Starting 'make' wrapper..." cd ~/ooo-build make echo "Compilation finished." mplayer -really-quiet ~/Music/My_Music_File.mp3
Development Environment Preparation Script
Note: User interaction is required first to enter a password for apt-get, and again much later to hit Enter when prompted for a CVS password.
#!/bin/bash echo "Starting Ubuntu ooo-build preparations..." sudo apt-get -y install cvs automake1.9 build-essential libpam0g-dev libpng12-dev flex bison libgtk2.0-dev \ tcsh libcupsys2-dev java-gcj-compat-dev libarchive-zip-perl libjpeg62-dev libxml2-dev python-dev libdb4.3-dev \ libdb4.3-java-dev libcurl3-dev unixodbc-dev libldap2-dev mozilla-dev libnss-dev libsane-dev libxaw-headers \ libaudio-dev libsndfile1-dev libneon24-dev libgnomevfs2-dev libstartup-notification0-dev ant export CVSROOT=':pserver:anonymous@anoncvs.gnome.org:/cvs/gnome' cvs login cvs -z3 co -P ooo-build cvs up -Pd -r ooo-build-2-0-2 echo "Preparations complete." cd ooo-build ./autogen.sh --with-distro=Ubuntu --disable-kde ./download #Now comment out failing patch: cp patches/src680/apply patches/src680/apply~ sed 's/^ubuntu-dictionary\.diff/#&/' <patches/src680/apply~ >patches/src680/apply rm patches/src680/apply~ make
Caveats
Don't do something silly like execute udatedb
while make
is in progress. This will result in locking the filesystem as read-only and cause the build to fail.