在linux,具體點fedora下,進行openoffice開發。
1. 下載源碼
參照http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Getting_the_source
使用svn線上擷取,用如下命令:
svn checkout svn://svn.services.openoffice.org/ooo/tags/DEV300_mXX/
2. 安裝必需的軟體,參照Building on Linux頁面
http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Linux
中的software requirements ,這部分比較麻煩,要一個個手動把各軟體裝上。
另外可以參照Fedora Build Instructions頁面,
http://wiki.services.openoffice.org/wiki/Fedora_Build_Instructions
針對fedora系統給出了更加明確的命令。這個命令可以把需要的都裝上:
yum install tcsh perl-Archive-Zip gcc gcc-c++ cups-devel /
pam-devel java-1.6.0-openjdk-devel gperf freetype-devel /
gtk2-devel libIDL-devel libXaw-devel bison patch GConf2-devel /
gnome-vfs2-devel ant make
或者參照http://zenit.senecac.on.ca/wiki/index.php/OOo_Fedora_Build
頁面,有更詳細的yum指令告訴你如何裝各種缺乏的軟體。
3. 安裝過程中要設定些環境變數,比如JAVA_HOME等。可參照
http://www.lampchina.net/article/htmls/200609/MjI4OTc3.html
4.
在Dev300_mxx目錄下
./configure --with-use-shell=bash --disable-mozilla --without-junit --disable-odk
5. source LinuxX86Env.Set.sh
6. ./bootstrap
7. cd instsetoo_native && build --all