天天看點

在windows下編譯openOffice準備工作:運作相關的配置檔案

準備工作:

1、首先請參照這兩個連結,下載下傳源碼和相關的工具和庫        https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#Configuration_and_bootstrapping        https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows 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- --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