环境:x86,Uuntu-10.04
参考:http://wiki.services.openoffice.org/wiki/Ubuntu_Build_Instructions
1、配置开发环境:sudo apt-get build-dep openoffice.org
2、下载源代码:hg clone http://hg.services.openoffice.org/DEV300 openOffice_dev
3、配置:./configure –disable-mozilla –with-junit=”/usr/share/Java/junit4.jar”
4、下载缺少的库,放到“external/unowinreg”:http://tools.openoffice.org/unowinreg_prebuild/680/
5、安装缺少的库:sudo apt-get install librsvg2-dev
6、运行:./bootstrap
7、运行:source LinuxX86Env.Set.sh 或者 source LinuxX86-64Env.Set.sh
8、编译:cd instsetoo_native && build –all(The building procedure will take at least an hour (on a 3 GHz Quad-Core with 8GB RAM without CCACHE).)
9、rebuilding from a module (incompatible build):
cd $SRC_ROOT/instsetoo_native
build –from $INCOMPATIPLEMODULE –prepare
build –from $INCOMPATIBLEMODULE
10、rebuilding a module (compatible build):
cd $MODULE
build –from $MODULE –prepare
build && deliver
11、Building a Module with Debug Information:
cd $MODULE
build –from $MODULE –prepare # removes old output trees and solver
build debug=true –from $MODULE