p.s. Build worked with Java 1.6, too.

On Thu, Oct 3, 2013 at 10:28 PM, Tal Daniel <tal.re...@gmail.com> wrote:

> Finally, I've managed to build AOO401 on MAC OSX 10.6.8!
>
> I'm publishing the steps needed, with configuration, for any comments.
> Later on, I plan to edit the Mac Building Guide wiki page, accordingly, so
> other Mac developers, please comment:
>
> Created a folder for Apache OpenOffice code
>
> SVN sync to tags/AOO401 (more stable code)
>
> Created initial configuration script (build.sh), which contains:
>
> #! /bin/bash
>
> #echo "### checking for unowinreg.dll ... "
>
> if [ ! -e ./external/unowinreg/unowinreg.dll ]; then
>
>  curl http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll -o
> ./external/unowinreg/unowinreg.dll
>
>  # (wget wasn't supported in my bash)
>
> else
>
> echo " unowinreg.dll found"
>
> fi
>
>
>  echo "### checking for moz prebuild libs ... "
>
> if [ ! -e ./moz/zipped/MACOSXGCCIinc.zip ]; then
>
> curl http://www.openoffice.org/tools/moz_prebuild/680/MACOSXGCCIinc.zip-o 
> ./moz/zipped/MACOSXGCCIinc.zip
>
>  curl http://www.openoffice.org/tools/moz_prebuild/680/MACOSXGCCIlib.zip-o 
> ./moz/zipped/MACOSXGCCIlib.zip
>
>  curl
> http://www.openoffice.org/tools/moz_prebuild/680/MACOSXGCCIruntime.zip -o
> ./moz/zipped/MACOSXGCCIruntime.zip
>
> # (wget wasn't supported in my bash)
>
> else
>
> echo " moz prebuild libs found"
>
> fi
>
>
>  if [ ! -e ./configure ]; then
>
> echo "### autoconf ..."
>
> autoconf
>
> else
>
> echo "### autoconf ..."
>
> rm ./configure
>
> autoconf
>
> fi
>
>
>  echo "### Configure"
>
>
>  ./configure --with-build-version="$(date +"%Y-%m-%d %H:%M:%S") - Rev.
> $(echo $(svn info) | sed -e 's/^.*Last Changed Rev: //g' -e 's/ .*//g')" \
>
> --disable-mozilla \
>
>  --disable-build-mozilla \
>
>  --disable-systray --enable-verbose --enable-category-b --enable-minimizer
> --enable-presenter-console --enable-wiki-publisher \
>
> --with-dmake-url=
> http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 \
>
>  --with-epm-url=
> http://epm.sourcearchive.com/downloads/3.7-1/epm_3.7.orig.tar.gz \
>
>  --without-stlport
>
>
>  ./bootstrap
>
>  Installed MacPorts
>
> [mac]port *ccache* installed (for faster builds), and set its memory
> cache to be... big:
>
> sudo port install ccache
>
> ccache -M 1G
>
> changed ~/.bash_profile, so ccache will manage all gcc compilations:
>
> export CC="ccache gcc"
>
> export CXX="ccache g++"
>
>
>  gcc 4.0 version is needed (my system had gcc4.2 by default), so here are
> 2 options.
>
> *gcc 4.0, option #1 (less simple; that's what I used): *
>
> installed gcc 4.0 with MacPorts:
>
> port gcc40 installed (apple):
>
> sudo port install apple-gcc40
>
> port gcc_select installed (allows switching between different gcc
> versions):
>
> sudo port install gcc_select
>
> listed all available gcc versions:
>
> port select --list gcc
>
> changed to gcc40 as the active complier
>
> sudo port select –set gcc apple-gcc40
>
> *gcc 4.0, option #2 (simpler; not verified if working): *
>
> check whether you have gcc 4.0 already installed:
>
> ls -l /usr/bin/gcc*
>
> update symbolic link to point to version 4.0
>
> sudo ln -s “/user/bin/gcc-4.0” “/user/bin/gcc”
>
>
>  *Python 2.7 *installed (native, not through MacPorts)
>
>
> Created a symbolic link to direct to *Mac OSX10.5 SDK* (gcc was looking
> for 10.4u SDK):
>
> sudo ln -s "/Developer/SDKs/MacOSX10.5.sdk"
> "/Developer/SDKs/MacOSX10.4u.sdk"
>
>
>  Executed the configuration script (as shown above), which calls *autoconf
> *, *configuration*, and *bootstrap* with the correct parameters:
>
> ./build.sh
>
> (you may need to execute it a few times, until you fix all errors, but
> finally...)
>
>
>  Configuration and bootstrap finished successfully!
>
>
>  Built project:
>
> source MacOSXX86Env.Set.sh
>
> cd instsetoo_native
>
> build –all -P2 --html --html_path /Users/$USER/Sites/
>
> Note: the guide instructs to check progress at
> http://localhost/~tal/unxmacxi.pro.build.html, but the HTML file seems to
> be malformed. I found the Terminal's output to be satisfactory.
>
>
>  If the build reports errors in a specific module, enter that folder,
> build with more details, and try to fix the errors first. E.g.:
>
> cd ../soltools
>
> build verbose=1
>
>
>  to build the project again:
>
> source MacOSXX86Env.Set.sh
>
> cd instsetoo_native
>
> build --from soltools (problematic module where the previous build aborted
> at)
> or... (?)
> build --prepare (?)
>
> build –all -P2 --html --html_path /Users/$USER/Sites/
>
>
>  Build time: started ~14:15 – 00:00 = ~10
>
>
>  When the build is complete, opened DMG package present at
> cd unxmacxi.pro/Apache_OpenOffice_SDK/dmg/install/en-US/
> and installed into a folder of my choice. Works.
>
>
>


-- 
טל

Reply via email to