在windows下編譯openOffice

準備工作:

1、首先請參照這兩個鏈接,下載源碼和相關的工具和庫
2、因爲用的是vs2008的編譯器,如果不太方便的話,建議搭建一個虛擬機環境,這樣容易成功些

運行相關的配置文件

1、運行cygwin,進入到你通過svn或下載壓縮代碼的方式獲取到的openOffice源代碼目錄,cd   /path/to/openOffice/code,然後進入main目錄
2、autoconf或autoconf*,看你當時安裝cygwin的選擇
3、./configure --help,查看相關的配置選項,我使用的是:
./configure --with-frame-home=/cygdrive/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0 --with-psdk-home=/cygdrive/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0 --with-midl-path=/cygdrive/c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin --with-directx-home=/cygdrive/c/Program\ Files/Microsoft\ DirectX\ SDK\ \(June\ 2010\) --with-atl-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/atl71 --with-atl-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/ATL/i386/ --with-mfc-include-dir=/cygdrive/c/WinDDK/7600.16385.1/inc/mfc42 --with-mfc-lib-dir=/cygdrive/c/WinDDK/7600.16385.1/lib/Mfc/i386 --enable-pch --enable-dbgutil --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 --with-epm-url=http://www.msweet.org/files/project2/epm-3.7-source.tar.gz --with-nsis-path=/cygdrive/c/Program\ Files/NSIS/Unicode --with-junit=/cygdrive/c/Program\ Files/Java/jdk1.7.0_60/lib/junit-4.10.jar --with-lang="zh-CN" --enable-bundled-dictionaries --disable-unit-tests 
--disable-unit-tests:是因爲google-test的測試框架代碼下不來,採用的權益之計


具體的配置按照個人當時的安裝路徑會有些不同

4、./bootstrap,下載相關的第三方工具代碼。
5、運行命令:source winenv.set.sh
6、cd instsetoo_native
7、運行 命令:build --all
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章