User:Kr/Building OOo
From Apache OpenOffice Wiki
Contents
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
- My Linux Desktop Architects Meeting II presentation slides: Media:DAM2-OOo_1_1.odp
- My OOo Conf 2006 presentation slides: Media:OOoConf_2006_Cleaning_Up_Multi-Threading.odp
- A short presentation prepared for the OOo BOF at EuroOSCON2006: Media:EuroOSCON2006-OOo_Architecture.odp
- Broken __attribute__((constructor)) for gcc 3.3
- "exit" libc API call is racy wrt to pthreads on some Systems, see User:Kr/exit_race.c
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 ...