Previous Topic Next Topic
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view


Jim Jagielski
I created a Win7 build VM on one of my machines. I'm using the
following build script to test it out:


if [ ! -d ../main -o ! -d sal ] ; then
        echo "CHDIR into AOO's main/ directory first!"
        exit 1

if [ -z "$SDK_HOME" ] ; then
        export SDK_HOME
        echo "Setting SDK_HOME to $SDK_HOME..."

if [ -z "$JAVA_HOME" ] ; then
        export JAVA_HOME
        echo "Setting JAVA_HOME to $JAVA_HOME..."

if [ -z "$ANT_HOME" ] ; then
        export ANT_HOME
        echo "Setting ANT_HOME to $ANT_HOME..."

if [ -z "$VSTUDIO_HOME" ] ; then
        VSTUDIO_HOME=`cygpath -m -s "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC"`
        export VSTUDIO_HOME
        echo "Setting VSTUDIO_HOME to $VSTUDIO_HOME..."

if [ ! -e external/unowinreg/unowinreg.dll ] ; then
        echo "Downloading unowinreg.dll..."
        curl -o external/unowinreg/unowinreg.dll http://www.openoffice.org/tools/unowinreg_prebuild/680/unowinreg.dll

LANGS="ast bg ca ca-XR ca-XV cs da de el en-GB en-US es eu fi fr gd gl he hi hu it ja km ko lt nb nl pl pt pt-BR ru sk sl sr sv ta th tr vi zh-CN zh-TW"

if [ ! -e configure -o configure.in -nt configure ] ; then
        echo "Running autoconf..."
        autoconf || exit 1
./configure   \
    --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`" \
        --with-vendor="Apache OpenOffice Community Build" \
        --enable-verbose \
        --enable-category-b \
        --enable-bundled-dictionaries \
        --enable-wiki-publisher \
        --with-jdk-home="$JAVA_HOME" \
        --with-ant-home="$ANT_HOME" \
        --with-lang="${LANGS}" \
        --with-frame-home="$SDK_PATH" \
    --with-psdk-home="$SDK_PATH" \
    --with-midl-path="$SDK_PATH/bin" \
    --with-csc-path="C:/Windows/Microsoft.NET/Framework/v3.5" \
    --with-cl-home="$VSTUDIO_HOME" \
    --with-asm-home="$VSTUDIO_HOME/bin" \
    --with-dmake-url="https://sourceforge.net/projects/oooextras.mirror/files/dmake-4.12.tar.bz2" \
    --with-epm-url="https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz" \
    --disable-pch \
    --disable-nss-module \
    --without-junit \
        --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 \
    --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386 \
    --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 \
    --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386 \
        --with-nsis-path="cygdrive/c/aoo41x-suport/nsis" \
        --with-mozilla-build="/cygdrive/c/aoo41x-support/mozilla-build" \
        --enable-dbgutil \

./bootstrap || exit 1
source ./winenv.set.sh || exit 1
cd instsetoo_native
time perl "$SOLARENV/bin/build.pl" --all -P2 -- -P2 || exit 1
cd util
dmake ooolanguagepack || exit 1
dmake sdkoo_en-US || exit 1

date "+Build ended at %H:%M:%S"

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view


Matthias Seidel

Hi Jim,

Some thoughts...

Am 08.08.2017 um 13:55 schrieb Jim Jagielski:
./configure   \
    --with-build-version="$(date +"%Y-%m-%d %H:%M:%S (%a, %d %b %Y)") - `uname -sm`" \

"uname -sm" will give you "CYGWIN_NT-10.0-WOW i686" or similar. Windows user normally don't know what that is...
I am thinking about adding a simple " - Windows x86" to my (release) builds.

	--enable-wiki-publisher \

I have never seen a working Wiki publisher in a build with that switch enabled. However that extension can easily be installed if wanted.
So I just build without it.

    --with-epm-url="https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz" \

I don't need epm for my Windows build.
Maybe others can confirm?

    --disable-nss-module \
    --with-mozilla-build="/cygdrive/c/aoo41x-support/mozilla-build" \

If you have Mozilla Build installed you definitely want nss to be enabled, so just leave out "--disable-nss-module"

	--with-nsis-path="cygdrive/c/aoo41x-suport/nsis" \

Only a typo? There is a "p" missing in "aoo41x-support"

I hope that helps...


smime.p7s (5K) Download Attachment