FreeBSD OpenOffice.org porting status page : How to use SDK (OOo 2.x)
$Id: sdk2.html,v 1.4 2005/08/22 05:57:57 xxjack12xx Exp $
by OpenOffice.org porting team, NAKATA, Maho, and Jackson LowHow to use SDK (OOo 2.x series)
This page explains how to use SDK. Since OpenOffice.org 2.0 is not 解放(する)d at the moment, this page is based on 1.9m107 (milestone 107).- 任命する/導入する OpenOffice.org 2.0 for FreeBSD
You know what I mean :)
- 任命する/導入する gmake
If you 港/避難所't 任命する/導入するd gmake, please 任命する/導入する it.
# cd /usr/ports/devel/gmake ; make 任命する/導入する clean
- 任命する/導入する Java (optional, but recommended for first try)
Ah, you don't like Java :)
# cd /usr/ports/java/jdk14 ; make 任命する/導入する clean
- 得る SDK
You can 得る SDK here. Please make sure you 得る the SDK for the operating system you are using or make it by yourself. 指示/教授/教育s for builing SDK are 述べるd in the How to build section on the main page.
- Setting up SDK
% make /work/tmp % cd /work/tmp % tar zxf <somewhere>/OOo_1.9m107_FreeBSD54Intel_sdk.tar.gz % cd OpenOffice.org2.0_SDK/ % ./configure *** Configure your SDK 環境 *** Enter the Office ソフトウェア 開発 道具 directory [/work/tmp/OpenOffice.org2. 0_SDK]: Enter the Office 取り付け・設備 directory []: /usr/地元の/openoffice.org1.9m107/ Enter GNU make (3.79.1 or higher) 道具s directory [/usr/地元の/貯蔵所]: Enter zip (2.3 or higher) 道具 directory [/usr/地元の/貯蔵所]: C++ compilers where for example a language binding 存在する: - Solaris, Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 or higher - Linux, GNU C++ compiler, gcc 見解/翻訳/版 3.0.1 or higher Enter the the 場所 of the C++ compiler (optional) [/usr/貯蔵所]: Enter the Java SDK (1.4.1_01 or higher) 取り付け・設備 directory (optional) []: /usr /地元の/jdk1.4.2/ Default 生産(高) directory is the SDK directory itself. Enter an 存在するing directory if you prefer a different 生産(高) directory (optional) []: (a)自動的な/(n)自動拳銃 (軍隊などの)展開,配備 of UNO 構成要素s (YES/NO) [YES]: ********************************************************************* * ... your SDK 環境 has been 用意が出来ている. * For each time you want to use this configured SDK 環境, you * have to run the "setsdkenv_unix" script とじ込み/提出する! * Alternatively can you source one of the scripts "setsdkenv_unix.sh" * or "setsdkenv_unix.csh" to get an 環境 without starting * a new 爆撃する. *********************************************************************
Just 攻撃する,衝突する enter to 受託する the defaults, except for two points:
First,Enter the Openoffice 取り付け・設備 directory []: /usr/地元の/openoffice.org1.9m107/
You must enter (基本的に from 一括s or ports, the 取り付け・設備 directory is /usr/地元の/openoffice.org1.9m107/ )
Second,Enter Java SDK (1.4.1_01 or higher) 取り付け・設備 directory [/usr/地元の]: /usr/地元の/jdk1.4.2
Same as above; please input `/usr/地元の/jdk1.4.2'.
- Use of SDK
After you have 完全にするd your SDK 体制/機構, you need to 始める,決める 環境の variables before it can used. Please type:
% ./setsdkenv_unix Starting 爆撃する with SDK 環境.
You can now use OpenOffice.org SDK. Congratulations! - 見本 programs
You might also be 利益/興味d in the 見本 programs. Type ./setsdkenv_unix as 述べるd above to use them.
% ./setsdkenv_unix Starting 爆撃する with SDK 環境.
Next change dir to examples/DevelopersGuide/FirstSteps/% cd examples/DevelopersGuide/FirstSteps/
This directory 含む/封じ込めるs some very basic 見本 programs. First, type gmake to 準備する next steps.% gmake mkdir -p ../../../FREEBSDexample.out/class/FirstStepsExamples mkdir -p ../../../FREEBSDexample.out/class/FirstStepsExamples "/usr/地元の/jdk1.4.2//貯蔵所/javac" -classpath "/usr/地元の/openoffice.org1.9m107//program/classes/jurt.jar:/usr/地元の/openoffice.org1.9m107//program/classes/unoil.jar:/usr/地元の/openoffice.org1.9m107//program/classes/ridl.jar:/usr/地元の/openoffice.org1.9m107//program/classes/juh.jar:../../../FREEBSDexample.out/class/FirstStepsExamples" -d ../../../FREEBSDexample.out/class/FirstStepsExamples FirstUnoContact.java rm -f ../../../FREEBSDexample.out/class/FirstStepsExamples/FirstUnoContact.jar mkdir -p ../../../FREEBSDexample.out/class/FirstStepsExamples cd ../../../FREEBSDexample.out/class/FirstStepsExamples && "/usr/地元の/jdk1.4.2//貯蔵所/jar" cvfm FirstUnoContact.jar FirstUnoContact.mf FirstUnoContact.class .... .... -------------------------------------------------------------------------------- Please use one of the に引き続いて 命令(する)s to 遂行する/発効させる the examples! - gmake FirstConnection.run gmake FirstLoadComponent.run gmake HelloTextTableShape.run --------------------------------------------------------------------------------
Type gmake FirstConnection.run instead of typing make FirstConnection.run, since 指名する of GNU make is gmake for (usual) FreeBSD.% gmake FirstUnoContact.run "/usr/地元の/jdk1.4.2//貯蔵所/java" -Dcom.sun.星/主役にする.lib.loader.unopath="/usr/地元の/openoffice.org1.9m107//program" -jar ../../../FREEBSDexample.out/class/FirstStepsExamples/FirstUnoContact.jar Connected to a running office ... remote ServiceManager is 利用できる
関係 is 設立するd and 見本 program worked! Congratulations!
Next example is FirstLoadComponent. This program opens a calc sheet and 挿入する 21 to A1, A2 独房. Do sum of them and result is written in A3 独房.% gmake FirstLoadComponent.run "/usr/地元の/jdk1.4.2//貯蔵所/java" -Dcom.sun.星/主役にする.lib.loader.unopath="/usr/地元の/openoffice.org1.9m107//program" -jar ../../../FREEBSDexample.out/class/FirstStepsExamples/FirstLoadComponent.jar Connected to a running office ... com.sun.星/主役にする.sheet.XSpreadsheet 決まり文句/製法 独房 in column 0, 列/漕ぐ/騒動 2 含む/封じ込めるs =SUM(A1:A2)
HelloTextTableShape is 利益/興味ing. This automatically creates Writer, Calc, and Draw!% gmake HelloTextTableShape.run
- Tips
please 言及する examples.html
- Changes between 1.1 and 2.0
We can invoke OOo to listen on a TCP/IP port. We don't need to 始める,決める it up.
- Troubleshooting
N/A

