Difference between revisions of "User:Kr"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Misc: Added exit race)
m (Extract building OOo into its own page)
Line 24: Line 24:
  
 
==Some Scripts==
 
==Some Scripts==
* [[User:Kr/Concurrent Checkout]]
+
* [[/Concurrent Checkout]]
  
 
==Platforms==
 
==Platforms==
Line 31: Line 31:
  
 
==Building OOo==
 
==Building OOo==
===x86/x64 on Debian based Linuxes===
+
[[/Building OOo]]
====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====
+
<pre>
+
./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
+
</pre>
+
 
+
===Mac OS X===
+
<pre>
+
./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
+
</pre>
+
 
+
===Windows===
+
<pre>
+
./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
+
</pre>
+
 
+
===Solaris 8===
+
<pre>
+
./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
+
</pre>
+
 
+
==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
+
** http://www.opensource.apple.com/darwinsource/Current/libstdcxx-11/libstdcxx/NEWS
+
** http://www.mail-archive.com/debian-gcc@lists.debian.org/msg06180.html
+
* "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 ...
+
  
 
==My Efforts==
 
==My Efforts==

Revision as of 07:41, 5 September 2007

Contact

Background

Some Thoughts

GullFOSS

Some Scripts

Platforms

Building OOo

/Building OOo

My Efforts

Effort/Revise OOo Multi-Threading

Move Uno stuff into the Uno Wiki. See Uno/Effort/Migrate Documentation

  • Update udk.openoffice.org to reflect latest wiki changes.

Do a source code inventory

Some Links

Event Driven Programming

Threading

OOo

Error Handling

Software

64bits

Building

Policies

Personal tools