You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Tal Daniel <ta...@gmail.com> on 2013/10/03 21:28:15 UTC
[Mac] [Build] Successful Configuration, Example
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.
Re: [Mac] [Build] Successful Configuration, Example
Posted by Tal Daniel <ta...@gmail.com>.
p.s. Build worked with Java 1.6, too.
On Thu, Oct 3, 2013 at 10:28 PM, Tal Daniel <ta...@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.
>
>
>
--
טל
Re: [Mac] [Build] Successful Configuration, Example
Posted by Tal Daniel <ta...@gmail.com>.
Just a thanks for your comments, Herbert.
I'll try to combine my configuration into SVN.
On Fri, Oct 4, 2013 at 9:08 AM, Herbert Duerr <hd...@apache.org> wrote:
> Hi Tal,
>
> Tal Daniel wrote:
> > Finally, I've managed to build AOO401 on MAC OSX 10.6.8!
>
> Congratulations! That's an important step in joining AOO development.
>
> > 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)
>
> I'd merge these two into
> svn co https://svn.apache.org/repos/asf/openoffice/tags/AOO401 myAOO401
>
> > Created initial configuration script (build.sh), which contains:
> > [...]
> > echo "### checking for moz prebuild libs ... "
> > [...]
> > --disable-mozilla \
> >
> > --disable-build-mozilla \
>
> Currently when mozilla is disabled password protection etc. doesn't
> work. I suggest to remove the --disable-mozilla line when the mozilla
> prebuilt libs are available.
>
> BTW: there is work in progress to remove the insane dependency of AOO's
> crypto requirements to the ancient mozilla binaries (branch Remove_MOZ)
>
> > --enable-minimizer --enable-presenter-console
>
> These options are no longer needed. The very popular extensions
> Presenter Console and Presentation Minimizer have been merged into AOO's
> core. Kudos to Ariel for that.
>
> > build –all -P2 --html --html_path /Users/$USER/Sites/
> >
> > Build time: started ~14:15 – 00:00 = ~10
>
> Depending on how powerful your Mac is you could try e.g.
> build --all -P3 -- -P3 ...
> (three modules at once, the files at once, i.e. work for nine processors)
>
> > 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.
>
> Wonderful :-) I look forward to work with you!
>
> Herbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>
--
טל
Re: [Mac] [Build] Successful Configuration, Example
Posted by Herbert Duerr <hd...@apache.org>.
Hi Tal,
Tal Daniel wrote:
> Finally, I've managed to build AOO401 on MAC OSX 10.6.8!
Congratulations! That's an important step in joining AOO development.
> 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)
I'd merge these two into
svn co https://svn.apache.org/repos/asf/openoffice/tags/AOO401 myAOO401
> Created initial configuration script (build.sh), which contains:
> [...]
> echo "### checking for moz prebuild libs ... "
> [...]
> --disable-mozilla \
>
> --disable-build-mozilla \
Currently when mozilla is disabled password protection etc. doesn't
work. I suggest to remove the --disable-mozilla line when the mozilla
prebuilt libs are available.
BTW: there is work in progress to remove the insane dependency of AOO's
crypto requirements to the ancient mozilla binaries (branch Remove_MOZ)
> --enable-minimizer --enable-presenter-console
These options are no longer needed. The very popular extensions
Presenter Console and Presentation Minimizer have been merged into AOO's
core. Kudos to Ariel for that.
> build –all -P2 --html --html_path /Users/$USER/Sites/
>
> Build time: started ~14:15 – 00:00 = ~10
Depending on how powerful your Mac is you could try e.g.
build --all -P3 -- -P3 ...
(three modules at once, the files at once, i.e. work for nine processors)
> 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.
Wonderful :-) I look forward to work with you!
Herbert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org