Difference between revisions of "DE/Erstellen mit ooobuild"

From Apache OpenOffice Wiki
< DE
Jump to: navigation, search
(Sehen Sie sich auch an)
(Sehen Sie sich auch an)
Line 167: Line 167:
 
== Sehen Sie sich auch an ==
 
== Sehen Sie sich auch an ==
  
*[[Installing]| Installation]
+
*[[[Installing]]| Installation]
 
*[[Tinderbox Setup]]
 
*[[Tinderbox Setup]]
 
*[[BuildSpeedup]]
 
*[[BuildSpeedup]]

Revision as of 23:02, 15 March 2008

Einfache Up-Stream-Builds

Sehen Sie sich das Projekt tools zu Buildanleitungen für verschiedene Plattformen an.

Für OS/X sehen Sich sich auch MacOSXBuildInstructions an.

Für GNU/Linux Sparc mit gcc4.1 & gcj schauen Sie sich GNULinuxSparcPorting an.

Erstellen mit ooo-build

Falls Sie nach ergänzenden Tipps zum Erstellen für Windows suchen, checken Sie zunächst diese Seite.



Die Quellen erhalten

Sie müssen den Quellcode unter Verwenden von SVN auschecken:

svn checkout http://svn.gnome.org/svn/ooo-build/trunk ooo-build

Konfigurieren (configure)

Der Prozess des Erstellens (build process) ist ziemlich kompliziert. Sie haben eine Auswahl von Kommandos. Dabei schadet das Laufenlassen von beiden aktuell nicht:

     ./autogen.sh --with-distro=HelloMum  # nur für die CVS-Version
     ./configure  --with-distro=HelloMum # die gepackte Version

This will guess which branch snapshot you want to build; if you have other ideas use the --with-tag option; eg. --with-tag=src680-m65 for a legacy branch.

NB. getting your distro right is quite important; values like SUSE-10.1 (also SLED10), UbuntuDapper, DebianEtch64 may float your boat. Checkout ls distro-configs to see more.

If for some reason you have a 31337 multi-threaded computer, with great slabs of RAM; you'll want to use --with-num-cpus=8 etc. NB. it's not clever to force the build to swap like a demented pawnbroker by using an artificially high number; C++ compilation is seriously memory hungry.

In particular, building SRC680 requires a recent jdk & a version of apache-ant. If you use a Novell system, just do: sudo rug in apache-ant, alternatively download a package from " rpmfind.net or failing that see Ant download & set the ANT environment variable appropriately before configuring.

Bekannte Parameter für ./configure

  • Up-Stream-OptionenItalic text

    - alle Optionen werden direkt weitergegeben an das interne configure, so dass Sie hier auch ordentlich funktionieren sollten.

  • --with-system-<Paketname>

    wobei <Paketname> ersetzt wird durch das zu benutzende Paket. Ich habe kein besonders gutes Verständnis von seinen kompletten Auswirkungen über die Tatsache hinaus, dass es (vermutlich) dann nicht seine eigene Kopie des Paketes erstellt.

    Beispiele:
    --with-system-python
    --with-system-mozilla
    --with-system-gcc
    --with-system-neon
    --with-system-curl

  • --without-system-<Paketname>

    Beispiele:
    --without-system-mozilla

  • --with-<Paket oder Markierung/Tag>[=Wert]

    Beispiele:
    --with-lang=en-US
    --with-build-version="Build 2.0.1.3"
    --with-distro=Gentoo

  • --without-<Paket oder Markierung/Tag>

    Beispiele:
    --without-myspell-dicts
    --without-java
    --without-nas

  • --enable-<Paketname>

    Beispiele:
    --enable-openldap

  • --disable-<Paketname>

    Beispiele:
    --disable-openldap
    --disable-qadevoo
    --disable-mozilla
    --disable-access
    --disable-evolution2

  • --mandir=<dir>

Requirements

  • A recent version of automake, such as the 1.9 series.
  • If you don't have a working Java VM (i.e. any runtime), you should pass --with-java=no to either autogen.sh or configure.
  • You need the Archive/Zip module for Perl (perl-Archive-Zip on RPM-based distributions, libarchive-zip-perl on dpkg-based distributions). Alternatively, see instructions[1] for obtaining Perl modules through CPAN.
  • You need the development package for Python (this would be python-devel on RPM-based distributions).
  • You need curl and curl-devel.
  • You need odbc_config to be present. On SUSE systems, this is in the unixODBC-devel package.
  • You need libsndfile and libsndfile-devel.
  • If you don't have a recent enough openldap, pass --disable-openldap to autogen.sh or configure.
  • You need neon and neon-devel.
  • You need qt3 and qt3-devel, or if you don't have the KDE development packages, pass --disable-kde to autogen.sh or configure.
  • You need mozilla-nss-devel.
  • In SuSE, you need gecko-sdk, mono-devel and cups-devel

download

By the time you've upgraded your system to the point that it has all the packages you need to start building OO.o (mozilla etc. etc.) you're almost at the point that you can download the bulk of the source. To do this, after a successful configure simply type: ./download and wait.

If for whatever reason this fails, you can verify your download by fetching the equivalent .md5 file & comparing it to the result of md5sum <archive>. The source archives are http://download.go-oo.org/SRC680 - put the source in ooo-build/src.

make

This is the taxing bit - type make and don't forget to press enter. Quite possibly you want to log the output, so why not make 2>&1 | tee /tmp/log.

Since ooo-build wraps the actual OO.o configuration & build process, there are a number of internal config checks that also need to pass. For a first time build it's well worth staying near the console while everything unpacks, and the internal configure runs; if that completes without incident - you're usually into the heavy-duty thumb twiddling.

Sehen Sie sich auch an

  • [[[Installing]]| Installation]
  • Tinderbox Setup
  • BuildSpeedup
  • [[OpenSUSE Build Instructions] | Anweisungen für ein OpenSuSE-Build]
  • [[SUSE9.3 Build Instructions] Anweisungen für ein SuSE-9.3-Build]
  • [[Ubuntu Build Instructions] | Anweisungen für ein Ubuntu-Build]
  • OpenOffice.org "Tools"-Seite [2]
  • Build Tool Requirements
  • O3 Build, ein ISO-Image, das die gesamte Software enthält, die benötigt wird, um OOo auf Linux zu erstellen.
Personal tools