Difference between revisions of "OOo Mac Build"

From CDOT Wiki
Jump to: navigation, search
(Configuring The Source)
(Configuring The Source)
Line 36: Line 36:
 
patch -p0 < moz2seamonkey_connectivity.diff
 
patch -p0 < moz2seamonkey_connectivity.diff
  
 +
</pre>
 +
 +
* Put mozilla prebuilt archives to src_root/moz/zipped/
 +
** [http://eric.bachard.free.fr/mac/moz/seamonkey_Intel/MACOSXGCCIinc.zip MAXOSXGCCIinc.zip]
 +
** [http://eric.bachard.free.fr/mac/moz/seamonkey_Intel/MACOSXGCCIlib.zip MACOSXGCCIlib.zip]
 +
** [http://eric.bachard.free.fr/mac/moz/seamonkey_Intel/MACOSXGCCIruntime.zip MAXOSXGCCIruntime.zip]
 +
* type "configure -options..." or create build.sh like what eric did
 +
<code>
 +
#!/bin/sh
 +
export BASE=`pwd`
 +
export OOVERSION=`echo $BASE|sed 's/^\/.*\///'`
 +
echo Building from    : $BASE
 +
echo OpenOffice Version: $OOVERSION
 +
./configure \
 +
--with-lang="en-US de fr" \
 +
--disable-odk \
 +
--disable-pasf \
 +
--disable-gtk \
 +
--disable-headless \
 +
--disable-build-mozilla \
 +
--with-build-version=$OOVERSION-`date +%d-%m-%y` \
 +
--disable-fontconfig \
 +
--without-nas \
 +
--with-use-shell=bash \
 +
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \
 +
--with-stlport=no \
 +
--disable-mediawiki \
 +
--enable-werror \
 +
--disable-vba
 +
</code>
 +
* If you create build.sh, then put this file ~/bin and give proper permission
 +
<pre>
 +
mv build.sh ~/bin
 +
chmod ug+x ~/bin/build.sh
 +
ln -s ~/bin/build.sh your src_root(DEV300_m41)/build.sh
 +
</pre>
 +
* execute build.sh
 +
* bootstrapping
 +
<pre>
 +
./bootstrap
 +
source MacOSXX86Env.Set.sh
 +
cd instsetoo_native
 +
export TMP=/tmp
 +
export SYSTEM_OPENSSL=YES
 +
</pre>
 +
* Build
 +
<pre>
 +
build --all -P4
 
</pre>
 
</pre>
  

Revision as of 18:07, 4 February 2009

Openoffice.org Fedora Build

  • Resources
CDOT Computer Status - Who is working where
Student Name CDOT Computer Name Operation Status
Daeseon Moon (irc:Daeseon) Russia building DEV41

Getting the Source

OpenOffice Max OS X AquaBuild instructions

Setting C and C++ compilers

  • Bash shell
    • Without ccache
      • export CC=gcc
      • export CXX=g++
    • With ccache
      • export CC="ccache gcc"
      • export CXX="ccache g++"

Configuring The Source


cp moz2seamonkey_connectivity.diff   DEV300_m40
cd DEV300_m40

Fake the patch application :
 
patch --dry-run -p0 < moz2seamonkey_connectivity.diff

And if nothing wrong occurs, apply it for true :

patch -p0 < moz2seamonkey_connectivity.diff

#!/bin/sh
export BASE=`pwd`
export OOVERSION=`echo $BASE|sed 's/^\/.*\///'`
echo Building from     : $BASE
echo OpenOffice Version: $OOVERSION
./configure \
--with-lang="en-US de fr" \
--disable-odk \
--disable-pasf \
--disable-gtk \
--disable-headless \
--disable-build-mozilla \
--with-build-version=$OOVERSION-`date +%d-%m-%y` \
--disable-fontconfig \
--without-nas \
--with-use-shell=bash \
--with-jdk-home=/System/Library/Frameworks/JavaVM.framework/Home \
--with-stlport=no \
--disable-mediawiki \
--enable-werror \
--disable-vba

  • If you create build.sh, then put this file ~/bin and give proper permission
mv build.sh ~/bin
chmod ug+x ~/bin/build.sh
ln -s ~/bin/build.sh your src_root(DEV300_m41)/build.sh
  • execute build.sh
  • bootstrapping
./bootstrap
source MacOSXX86Env.Set.sh
cd instsetoo_native
export TMP=/tmp
export SYSTEM_OPENSSL=YES
  • Build
build --all -P4

Setting Environment Variables

Bootstrapping

Build