Difference between revisions of "How to build Symphony's source code"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 5: Line 5:
 
! Architecture
 
! Architecture
 
|-
 
|-
| Windows XP,
+
| Windows XP/7
| x86
+
| intel x86
 
|-
 
|-
| Linux - Ubuntu 11.04,
+
| Linux - Ubuntu 11.04
| x86
+
| intel x86
 
|-
 
|-
 
| Linux - Suse 10,
 
| Linux - Suse 10,
Line 26: Line 26:
  
 
== Getting Symphony's source code ==
 
== Getting Symphony's source code ==
You can get Symphony's source code from ???. Please make sure that all the source code dirs are under SRC_ROOT and you can locate to all the modules at SRC_ROOT/main
+
You can get Symphony's source code from [https://svn.apache.org/repos/asf/incubator/ooo/symphony/trunk Apache OpenOffice SVN server]. Please make sure that all the source code dirs are under SRC_ROOT and you can locate to all the modules at SRC_ROOT/main
  
 
== Building Symphony on Windows ==
 
== Building Symphony on Windows ==
Line 87: Line 87:
  
 
== Building Symphony on MacOSX ==
 
== Building Symphony on MacOSX ==
 +
You can make a full build for Symphony with gcc 4.2.1 on MacOSX 10.5/10.6.
 +
=== Software requirements ===
 +
*Mac OS X 10.5 / Xcode 3.1
 +
*Mac OS X 10.6.8 / Xcode 3.2.6 / gcc 4.2.1 / jdk 1.6
 +
** You can get MACOSXGCCIinc.zip / MACOSXGCCIlib.zip / MACOSXGCCIruntime.zip from http://www.openoffice.org/tools/moz_prebuild/OOo3.2/. Please put them in $SRC_ROOT/main/moz/zipped
 +
 +
=== Starting build ===
 +
You can run the commands below to start a full build on MacOSX. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.
 +
  cd $SRC_ROOT/main
 +
  autoconf
 +
  ./configure \
 +
      --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
 +
      --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
 +
      --without-junit \
 +
      --disable-odk \
 +
      --disable-build-mozilla \
 +
      --enable-category-b \
 +
      --enable-bundled-dictionaries
 +
  chmod a+x fetch_tarballs.sh
 +
  ./bootstrap
 +
  source MacOSXX86Env.Set.sh
 +
  cd instsetoo_native/
 +
  build --all -P4
 +
 +
You can finnaly get the installation packages at
 +
  $SRC_ROOT/main/instsetoo_native/unxmacxi.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_MacOS_x86_install-arc_en-US.tar.gz
 +
  $SRC_ROOT/main/instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US/OOo_3.4.0_MacOS_x86_install_en-US.dmg
  
 
== Building Symphony on Linux - Ubuntu ==
 
== Building Symphony on Linux - Ubuntu ==
 +
You can make a full build for Symphony with gcc 4.5.2 on Ubuntu 11.04.
 +
=== Software requirements ===
 +
*Ubuntu 11.04
 +
*Mozilla binary distributions
 +
** You can get LINUXGCCIinc.zip / LINUXGCCIlib.zip / LINUXGCCIruntime.zip from http://www.openoffice.org/tools/moz_prebuild/OOo3.2/. Please put them in $SRC_ROOT/main/moz/zipped
 +
*Additional packages
 +
** Please run the following command to install all the additional packages
 +
  sudo apt-get install subversion g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev gperf libfreetype6-dev libxaw7-dev libfontconfig1-dev libxrandr-dev patch libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 default-jdk default-jre default-jre-headless librsvg2-dev tcsh autoconf libssl-dev
 +
 +
=== Starting build ===
 +
You can run the commands below to start a full build on Ubuntu. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.
 +
  cd $SRC_ROOT/main
 +
  autoconf
 +
  ./configure \
 +
      --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
 +
      --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
 +
      --without-junit \
 +
      --disable-odk \
 +
      --disable-build-mozilla \
 +
      --enable-category-b \
 +
      --enable-bundled-dictionaries
 +
  sudo chmod a+x fetch_tarballs.sh
 +
  ./bootstrap
 +
  source LinuxX86Env.Set.sh
 +
  cd instsetoo_native/
 +
  build --all -P4
 +
 +
You can finnaly get the installation packages at
 +
  $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_Linux_x86_install-arc_en-US.tar.gz
 +
  $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/deb/install/en-US/DEBS/*.deb
 +
  
 
== Building Symphony on Linux - Suse ==
 
== Building Symphony on Linux - Suse ==
 +
You can make a full build for Symphony with gcc 4.5.2 on Suse 11.04.
 +
=== Software requirements ===
 +
*Suse ...
 +
*Mozilla binary distributions
 +
** You can get LINUXGCCIinc.zip / LINUXGCCIlib.zip / LINUXGCCIruntime.zip from http://www.openoffice.org/tools/moz_prebuild/OOo3.2/. Please put them in $SRC_ROOT/main/moz/zipped
 +
*Additional packages
 +
** Please install addtional packages : gcc, g++, bison, flex, perl, cups, pam, gperf, freetype, xaw, fontconfig, xrandr, patch, gconf, gnomevfs, ant, gtk, junit, jdk, svg, tcsh, autoconf, ssl
 +
 +
=== Starting build ===
 +
You can run the commands below to start a full build on Suse. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.
 +
  cd $SRC_ROOT/main
 +
  autoconf
 +
  ./configure \
 +
      --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
 +
      --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
 +
      --without-junit \
 +
      --disable-odk \
 +
      --disable-build-mozilla \
 +
      --enable-category-b \
 +
      --enable-bundled-dictionaries
 +
  sudo chmod a+x fetch_tarballs.sh
 +
  ./bootstrap
 +
  source LinuxX86Env.Set.sh
 +
  cd instsetoo_native/
 +
  build --all -P4
 +
 +
You can finnaly get the installation packages at
 +
  $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_Linux_x86_install-arc_en-US.tar.gz
 +
  $SRC_ROOT/main//instsetoo_native/unxlngi6.pro/OpenOffice/deb/install/en-US/DEBS/*.deb

Revision as of 07:19, 18 May 2012

Symphony officially can be built on the following platforms

System Architecture
Windows XP/7 intel x86
Linux - Ubuntu 11.04 intel x86
Linux - Suse 10, x86
Mac OS X - 10.5/10.6, intel x86

It's easy for developer to reuse Apache OpenOffice's build environment on Symphony's source code. This article assumes that you have already made a successful build for Apache OpenOffice 3.4. If you have not, please refer to the following pages.

Getting Symphony's source code

You can get Symphony's source code from Apache OpenOffice SVN server. Please make sure that all the source code dirs are under SRC_ROOT and you can locate to all the modules at SRC_ROOT/main

Building Symphony on Windows

You can make a full build for Symphony with cygwin on Windows platform.

Software requirements

Starting build

You can run the commands below to start a full build on Windows. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.

 cd $SRC_ROOT/main
 autoconf
 ./configure \
     --with-cl-home="/cygdrive/c/dev.tools/vc.2008/VC" \
     --with-mspdb-path="/cygdrive/c/dev.tools/vc.2008/Common7/IDE" \
     --with-asm-home="/cygdrive/c/dev.tools/vc.2008/VC/bin" \
     --with-frame-home="/cygdrive/c/dev.tools/MSSDK_v6.1" \
     --with-psdk-home="/cygdrive/c/dev.tools/MSSDK_v6.1" \
     --with-midl-path="/cygdrive/c/dev.tools/MSSDK_v6.1/Bin" \
     --with-csc-path="/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v3.5" \
     --with-jdk-home="/cygdrive/c/dev.tools/jdk_1.6" \
     --with-ant-home="/cygdrive/c/dev.tools/apache-ant-1.7.0" \
     --with-directx-home="/cygdrive/c/dev.tools/directx" \
     --with-nsis-path="/cygdrive/c/dev.tools/NSIS" \
     --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
     --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
     --with-mozilla-build="/cygdrive/c/dev.tools/mozilla-build" \
     --with-use-shell=bash \
     --without-junit \
     --disable-build-mozilla \
     --disable-odk \
     --enable-category-b \
     --enable-bundled-dictionaries
 ./bootstrap
 source winenv.set.sh
 cd instsetoo_native/
 build --all -P4

You can finnaly get the installation packages at

 $SRC_ROOT/main/instsetoo_native/wntmsci12.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_Win_x86_install-arc_en-US.zip
 $SRC_ROOT/main/instsetoo_native/wntmsci12.pro/OpenOffice/msi/install/en-US/setup.exe

Building Symphony on MacOSX

You can make a full build for Symphony with gcc 4.2.1 on MacOSX 10.5/10.6.

Software requirements

Starting build

You can run the commands below to start a full build on MacOSX. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.

 cd $SRC_ROOT/main
 autoconf
 ./configure \
     --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
     --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
     --without-junit \
     --disable-odk \
     --disable-build-mozilla \
     --enable-category-b \
     --enable-bundled-dictionaries
 chmod a+x fetch_tarballs.sh
 ./bootstrap
 source MacOSXX86Env.Set.sh
 cd instsetoo_native/
 build --all -P4

You can finnaly get the installation packages at

 $SRC_ROOT/main/instsetoo_native/unxmacxi.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_MacOS_x86_install-arc_en-US.tar.gz
 $SRC_ROOT/main/instsetoo_native/unxmacxi.pro/OpenOffice/dmg/install/en-US/OOo_3.4.0_MacOS_x86_install_en-US.dmg

Building Symphony on Linux - Ubuntu

You can make a full build for Symphony with gcc 4.5.2 on Ubuntu 11.04.

Software requirements

  • Ubuntu 11.04
  • Mozilla binary distributions
  • Additional packages
    • Please run the following command to install all the additional packages
 sudo apt-get install subversion g++ gcc bison flex libarchive-zip-perl libcups2-dev libpam0g-dev gperf libfreetype6-dev libxaw7-dev libfontconfig1-dev libxrandr-dev patch libgconf2-dev libgnomevfs2-dev ant libgtk2.0-dev junit junit4 default-jdk default-jre default-jre-headless librsvg2-dev tcsh autoconf libssl-dev

Starting build

You can run the commands below to start a full build on Ubuntu. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.

 cd $SRC_ROOT/main
 autoconf
 ./configure \
     --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
     --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
     --without-junit \
     --disable-odk \
     --disable-build-mozilla \
     --enable-category-b \
     --enable-bundled-dictionaries
 sudo chmod a+x fetch_tarballs.sh
 ./bootstrap
 source LinuxX86Env.Set.sh
 cd instsetoo_native/
 build --all -P4

You can finnaly get the installation packages at

 $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_Linux_x86_install-arc_en-US.tar.gz
 $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/deb/install/en-US/DEBS/*.deb


Building Symphony on Linux - Suse

You can make a full build for Symphony with gcc 4.5.2 on Suse 11.04.

Software requirements

  • Suse ...
  • Mozilla binary distributions
  • Additional packages
    • Please install addtional packages : gcc, g++, bison, flex, perl, cups, pam, gperf, freetype, xaw, fontconfig, xrandr, patch, gconf, gnomevfs, ant, gtk, junit, jdk, svg, tcsh, autoconf, ssl

Starting build

You can run the commands below to start a full build on Suse. Please follow the configure swtichers strictly. Symphony does not officially support any other configure switcher.

 cd $SRC_ROOT/main
 autoconf
 ./configure \
     --with-dmake-url="http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.1.tar.bz2" \
     --with-epm-url="http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz" \
     --without-junit \
     --disable-odk \
     --disable-build-mozilla \
     --enable-category-b \
     --enable-bundled-dictionaries
 sudo chmod a+x fetch_tarballs.sh
 ./bootstrap
 source LinuxX86Env.Set.sh
 cd instsetoo_native/
 build --all -P4

You can finnaly get the installation packages at

 $SRC_ROOT/main/instsetoo_native/unxlngi6.pro/OpenOffice/archive/install/en-US/OOo_3.4.0_Linux_x86_install-arc_en-US.tar.gz
 $SRC_ROOT/main//instsetoo_native/unxlngi6.pro/OpenOffice/deb/install/en-US/DEBS/*.deb
Personal tools