Difference between revisions of "User:Kr/Building OOo"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Extracted of KR page)
 
(No difference)

Revision as of 07:38, 5 September 2007

x86/x64 on Debian based Linuxes

Prerequisites

  • gnome-devel
  • gawk
  • libsoap-lite-perl
  • libarchive-zip-perl
  • libcupsys2-dev
  • libpam0g-dev
  • libxaw7-dev
  • zip
  • unzip
  • ant
  • rpm
  • cvs
  • sun-java5-jdk
  • bison
  • flex
  • linux32
  • make

Building

./conco -v Master=SRC680 -v CWS=unomacli64

# 'create' the unowinreg.dll
touch external/unowinreg/unowinreg.dll

# configure the office to be build
cd config_office

# Linux x86
./configure --disable-mozilla --without-nas 

# Linux x64 and Java 1.6
./configure --disable-mozilla --without-nas --with-system-hsqldb --enable-debug 

cd ..
./bootstrap

# set the environment vars
source <LinuxX86Env.Set>

# otherwise the smoketest does not work!
setenv PKGFORMAT rpm  

# build installation sets
cd instsetoo_native
build --all --dlv_switch -link -P10 -- -P10

Mac OS X

./conco -v Master=SRC680 -v CWS=unomacli64

# 'create' the unowinreg.dll
touch external/unowinreg/unowinreg.dll

# configure the office to be build
cd config_office

# MacOSX 
./configure --disable-mozilla --without-nas --disable-gtk --disable-gnome-vfs --disable-headless

cd ..
./bootstrap

# set the environment
source MacOSXPPCEnv.Set.sh

# build installation sets
cd instsetoo_native
build --all --dlv_switch -link -P10 -- -P10

Windows

./conco -v Master=SRC680 -v CWS=unomacli64

# 'create' the unowinreg.dll
touch external/unowinreg/unowinreg.dll

# configure the office to be build
cd config_office

# Win32
./configure 
 --disable-mozilla  
 --disable-directx 
 --with-cl-home="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC"
 --with-frame-home="/cygdrive/c/Program Files/Microsoft Visual Studio 8/SDK/v2.0" 
 --with-psdk-home="/cygdrive/d/PSDK" 
 --with-midl-path="/cygdrive/d/PSDK/Bin" 
 --with-asm-home="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC" 
 --with-jdk-home="/cygdrive/d/j2sdk1.4.2_15"  
 --with-ant-home=/cygdrive/d/apache-ant-1.7.0 
 --with-use-shell=bash
 --disable-activex

cd ..
./bootstrap

# set the environment
source <LinuxX86Env.Set>

# build installation sets
cd instsetoo_native
build --all --dlv_switch -link -P10 -- -P10

Solaris 8

./conco -v Master=SRC680 -v CWS=unomacli64

# 'create' the unowinreg.dll
touch external/unowinreg/unowinreg.dll

setenv CC ...
setenv CXX ...

# add perl to path
setenv PATH ..../bin:$PATH

# set JAVAHOME and add to PATH
setenv JAVAHOME .../JDK...
setenv PATH $JAVAHOME/bin:$PATH

# configure the office to be build
cd config_office

# call configure
./configure --disable-mozilla --without-nas --disable-cups --disable-fontconfig --disable-gtk --disable-gnome-vfs --disable-headless \
  --with-ant-home=.../apache-ant-1.6.1

cd ..
./bootstrap

# patch GNUMAKE variable in SolarisEnvSparcEnv.Set
# setenv GNUMAKE "gmake"

# set the environment
source SolarisSparcEnv.Set

# need to disable Xinerama for some reasons
setenv USE_XINERAMA NO

# build installation sets
cd instsetoo_native
build --all --dlv_switch -link -P10 -- -P10

Misc

Notes

  • "pthread_exit" and its relationship to process termination ...
    • "atexit" actually gets called by the last thread in a process
    • "pthread_exit" in "main" would actually be perfect, if it was allowing to pass another return value than zero ...
Personal tools