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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Created page with "Symphony officially can be built on the following platforms {| class="wikitable" |- !System ! Architecture |- | Windows XP, | x86 |- | Linux - Ubuntu 11.04, | x86 |- | Linux - Su…")
 
Line 18: Line 18:
 
|}
 
|}
  
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.
+
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.
 +
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Basic_Concepts Basic Concepts]
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Build_Requirements Build Requirements]
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Build_Requirements Build Requirements]
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows Building on Windows]
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows Building on Windows]
Line 24: Line 25:
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Linux Building on Linux]
 
*[http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Linux Building on Linux]
  
 +
== 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
  
 
== Building Symphony on Windows ==
 
== Building Symphony on Windows ==
You can make a windows build for Symphony with cygwin
+
You can make a full build for Symphony with cygwin on Windows platform.
 
=== Software requirements ===
 
=== Software requirements ===
 
*Windows XP + SP3 / Windows 7
 
*Windows XP + SP3 / Windows 7
 
*Microsoft Visual Studio 2008 + SP1
 
*Microsoft Visual Studio 2008 + SP1
 
*JDK 1.6
 
*JDK 1.6
 +
** You can get it from http://java.sun.com/javase/6
 
*Cygwin 1.7
 
*Cygwin 1.7
 
*Ant
 
*Ant
Line 36: Line 40:
 
*DirectX
 
*DirectX
 
*NSIS
 
*NSIS
 +
*Mozilla build tools
 +
** You can get it from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.6.exe
 
*Microsoft .Net framework V3.5
 
*Microsoft .Net framework V3.5
 +
*dgbhelper.dll
 +
** You can get it from http://www.microsoft.com/en-us/download/details.aspx?id=12745. Please put it in $SRC_ROOT/main/external/dbghelp
 +
*vcredist_x86.exe  vcredist_x64.exe
 +
** You can get them from http://www.microsoft.com/en-us/download/details.aspx?id=13523 and http://www.microsoft.com/en-us/download/details.aspx?id=8328. Please put it in $SRC_ROOT/main/external/vcredist
 +
*gdiplus.dll
 +
** You can get it from http://www.microsoft.com/en-us/download/details.aspx?id=18909. Please put it in $SRC_ROOT/main/external/gdiplus
 +
*Mozilla binary distributions
 +
** You can get WNTMSCIinc.zip / WNTMSCIlib.zip / WNTMSCIruntime.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 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 ==
 
== Building Symphony on MacOSX ==

Revision as of 06:09, 18 May 2012

Symphony officially can be built on the following platforms

System Architecture
Windows XP, x86
Linux - Ubuntu 11.04, 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 ???. 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

Building Symphony on Linux - Ubuntu

Building Symphony on Linux - Suse

Personal tools