OpenOffice.org

出自Wikitiss
跳转到: 导航, 搜索

目录

主干源代码下载

参考下载脚本(脚本文件名svnooo_dev300_m38.sh):

#!/bin/bash
# Export OOo source from svn and make .tar.bz2 package.
 
# Please ONLY modify this version number string.
VERSION=`echo $0 | sed -e 's/.*\(dev300_m\)\(.*\)\(\.sh\)/\2/' `
 
SYSTIME=`date +%Y%m%d%H%M%S`
 
DEV300DIR=.
echo ${SYSTIME} > svndev300m${VERSION}.txt
 
echo "svn export svn://svn.services.openoffice.org/ooo/tags/DEV300_m${VERSION}" >> ../svndev300m${VERSION}.txt
 
svn export svn://svn.services.openoffice.org/ooo/tags/DEV300_m${VERSION} >> svndev300m${VERSION}.txt 2>&1 || { echo ERROR >> svndev300m${VERSION}.txt; exit; }
 
SYSTIME=`date +%Y%m%d%H%M%S`
echo ${SYSTIME} >> svndev300m${VERSION}.txt
echo ${SYSTIME} > svntar_dev300_m${VERSION}.txt
 
echo "tar cjf DEV300_m${VERSION}.tar.bz2 DEV300_m${VERSION}/" >> svntar_dev300_m${VERSION}.txt
 
tar cjf DEV300_m${VERSION}.tar.bz2 DEV300_m${VERSION}/ >> svntar_dev300_m${VERSION}.txt 2>&1 || { echo ERROR >> svntar_dev300_m${VERSION}.txt; exit; }
 
SYSTIME=`date +%Y%m%d%H%M%S`
echo ${SYSTIME} >> svntar_dev300_m${VERSION}.txt
 
# MD5SUM
md5sum DEV300_m${VERSION}.tar.bz2 > DEV300_m${VERSION}.tar.bz2.MD5SUM

SuSE编译

源码版本:DEV300_m43。

  • 配置

configure: error: cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing rpm -ivh cups-devel-1.3.9-7.1.i586.rpm krb5-devel-1.6.3-132.1.i586.rpm libopenssl-devel-0.9.8h-28.4.i586.rpm libcom_err-devel-1.41.1-11.9.i586.rpm keyutils-devel-1.2-107.4.i586.rpm zlib-devel-1.2.3-104.137.i586.rpm configure: error: pam_appl.h could not be found. libpam-dev or pam-devel missing? rpm -ivh pam-devel-1.0.2-13.3.i586.rpm configure: error: javac not found set with_jdk_home ./configure --with-jdk-home=/usr/lib/jvm/java-1.6.0-sun-1.6.0/ 2>&1 > ../Documents/logs.4.txt java-1_6_0-sun-devel-1.6.0.u12-1.2.1.i586.rpm rpm -ivh --nodeps java-1_6_0-sun-devel-1.6.0.u12-1.2.1.i586.rpm configure: error: gperf not found but needed. Install it. rpm -ivh gperf-3.0.2-1.87.i586.rpm configure: WARNING: not found, will be cross-built using mingw32 configure: error: for rebuilding unowinreg.dll you need the mingw32 C++ compiler.

        Specify mingw32 g++ executable name with --with-mingwin.
        Or use prebuilt one from http://tools.openoffice.org/unowinreg_prebuild/680/ and
        put it into external/unowinreg

cp -p unowinreg.dll ../../DEV300/external/unowinreg configure: error: Library requirements (freetype2 >= 2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them. freetype2-devel-2.3.7-25.6 ccache configure: error: Mozilla source archive not found. Please copy mozilla-source-1.7.5.tar.bz2 or mozilla-source-1.7.5.tar.gz to moz/download/. The archives can be found here: http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/ ./configure --with-lang="zh-CN,en-US" --with-vendor="opentiss (jlcheng\@openoffice.org)"

http://installation.openoffice.org/source/browse/installation/setup_native/scripts/

../ccacheDev.sh ../confDev.sh > dev300m46.log 2>&1

Windows版本编译

编译环境配置简介:

cygwin

cygwin 1.5.25-15默认选择的情况下需要安装的模块(参考:Building OOo with Cygwin on Windows - OpenOffice.org Wiki):

Category Archive: unzip, zip
Category Devel : autoconf, bison, flex, gcc-g++, gperf, make, subversion (for 3.x code line, 1.6.1 (r37116))
Category Libs: openssl
Category Net: openssh, ncftp
Category Perl: perl (Perl)
Category Utils: patch, gnupg
Category Web: lynx, wget

因Windows不支持文件链接,启动cygwin后需要更改两个文件(awk.exe、gunzip.exe):

cd /bin
ls -l awk.exe
rm awk.exe
cp gawk.exe awk.exe
cp unzip.exe gunzip.exe

Visual Studio 2008 Express

OOo 3.1分支自OOO310_m11开始(OOo DEV300主干自DEV300_m47开始),由于python模块的代码由2.3.4升级至2.6.1,而其中的PCbuild解决方案pcbuild.sln只能由Visual Studio 2008才能编译,所以编译环境现在需要同步进行升级。需要说明的是,原只采用.Net 2003进行编译的ftp.linux.cz也已经不再编译Windows版本了,不知道是否也是基于此原因。

现在最新的版本是Visual Studio 2008 Express SP1,可至微软下载网站下载,中文ISO文件名为VS2008ExpressWithSP1CHSX1504735.iso。下载完成后,用7-zip解开这个ISO包,只需安装Microsoft Visual C++ 2008即可,建议安装位置:d:\vs2008。

Microsoft Windows Platform SDK

Microsoft Windows Platform SDK。安装时,只需要选择示例文件的安装位置即可,如果不需要示例文件与产品文档,可以不安装。建议安装位置:d:\mssdk。

DirectX SDK

如果有已经安装好的软件包,可以直接使用,不需要安装。下载请参见DirectX Software Development Kit(需要Windows的正版认证才能下载)。建议安装位置:d:\dx9sdk。

其他软件包

 
Microsoft_VC90_CRT_x86.msm
policy_9_0_Microsoft_VC90_CRT_x86.msm

编译完全调试版本才需要的软件包:

Microsoft_VC90_DebugCRT_x86.msm
policy_9_0_Microsoft_VC90_DebugCRT_x86.msm

以上四个文件均来自:

%SystemRoot%\Program Files\Common Files\Merge Module

其他需要的文件,详细说明请参见Building OOo with Cygwin on Windows

WNTMSCIinc.zip
WNTMSCIlib.zip
WNTMSCIruntime.zip
dbgHelp.Dll
gdiplus.dll
instmsia.exe
instmsiw.exe
msvcp71.dll
msvcr71.dll
unicows.dll

为避免每次复制的麻烦,可以使用如下cygwin命令来完成(假设文件源位于/cygdrive/g/OOo/windows目录下):

cp /cygdrive/g/OOo/windows/unicows.dll external/unicows/
cp /cygdrive/g/OOo/windows/msvc*71.dll external/msvcp71/
cp /cygdrive/g/OOo/windows/WNTMSCI*.zip moz/zipped/
cp /cygdrive/g/OOo/windows/dbgHelp.Dll external/dbghelp/
cp /cygdrive/g/OOo/windows/gdiplus.dll external/gdiplus/
cp /cygdrive/g/OOo/windows/instmsia.exe external/msi/
cp /cygdrive/g/OOo/windows/instmsiw.exe external/msi/
cp /cygdrive/g/OOo/windows/Microsoft_VC90_CRT_x86.msm external/msm90
cp /cygdrive/g/OOo/windows/policy_9_0_Microsoft_VC90_CRT_x86.msm external/msm90
cp /cygdrive/g/OOo/windows/Microsoft_VC90_DebugCRT_x86.msm external/msm90
cp /cygdrive/g/OOo/windows/policy_9_0_Microsoft_VC90_DebugCRT_x86.msm external/msm90

JDK 1.6.0_13

JDK的最新版本为1.6.0_13。建议安装位置:d:\FLOSS\Java。

Ant

Apache Ant最新版本为1.7.1。建议安装位置:d:\FLOSS\apache-ant-1.7.1。

NSIS

可选,非必需。如果需要打包成一个可执行的安装包,可以安装最新版本

参考配置命令:

./configure --with-cl-home=/cygdrive/d/vs2008/VC --with-jdk-home=/cygdrive/d/FLOSS/Java --with-use-shell=bash --disable-build-mozilla --with-lang=zh-CN --with-ant-home=/cygdrive/d/FLOSS/apache-ant-1.7.1 --with-frame-home=/cygdrive/d/vs2008/SDK/v3.5 --with-directx-home=/cygdrive/d/dx9sdk --with-psdk-home=/cygdrive/d/mssdk/Windows/v6.1 --disable-atl --disable-activex --with-vendor="opentiss (jlcheng\@openoffice.org)" --with-build-version="opentiss.net"


非官方Linux中文开发版

因网络存储空间不足,此开发版已经不再编译与发布,如有需要,可至开发者发布网站下载试用。其中openoffice/extended有时可能存在rc版本的中文版安装包。

非官方Windows中文开发版

因网络存储空间不足,此发布版本会随时更新,本站仅保留最新版本,请只下载以下列表中的最新版本:

  • 3.0.x开发版
OOo-Dev_OOO300_m14_Win32Intel_install_zh-CN.exe/MD5SUMS
  • 3.1.x开发版
OOo_3.1.0_DEV300_m37_Win32Intel_install_zh-CN.exe/MD5SUMS

公式备忘

  • COUNTIF的使用
=IF(COUNTIF(B$1:B$40;A1)>0;IF(COUNTIF(C$1:C$40;A1)>0;IF(COUNTIF(D$1:D$40;A1)>0;A1)))
  • 根据数值标识相应等级
=IF(ISBLANK(B2);"";IF(B2>90;"A";IF(B2>80;"B";IF(B2>70;"C";IF(B2>60;"D";IF(B2>50;"E";"Work harder."))))))
个人工具
工具箱