All XFoo Java interfaces are generated from IDL files with the same name. As long as XFoo Java/IDL interfaces are not modified, there is no need for the OpenOffice.org SDK. But if any XFoo interface is modified, then the steps documented below must be done. The last step shall be executed on the client machine (users can also use the "Tools / Package manager" menu from OpenOffice.org GUI).
See the requirement section in the GeoAPI build page for a list of required tools.
Replace ooo-path by the path to the OpenOffice.org installation directory. This directory should contain the program and ure-link sub-directories. The OpenOffice.org SDK shall be installed as a sub-directory of the OpenOffice.org root directory. If the name of that SDK directory is different than OpenOffice.org3.3_SDK, then modify the OO_SDK_HOME value below accordingly.
export OFFICE_BASE_HOME=ooo-path export OO_SDK_HOME=$OFFICE_BASE_HOME/OpenOffice.org3.3_SDK export PATH=$OFFICE_BASE_HOME/ure-link/bin:$OO_SDK_HOME/bin:$PATH
cd modules/analytics/geotk-openoffice/src/main/java idlc -C -cid -w -I $OO_SDK_HOME/idl org/opengis/openoffice/*.idl org/geotoolkit/openoffice/*.idl
regmerge ../unopkg/geotk.rdb /UCR org/opengis/openoffice/*.urd org/geotoolkit/openoffice/*.urd rm org/opengis/openoffice/*.urd org/geotoolkit/openoffice/*.urd cd ../unopkg
javamaker -BUCR -nD geotk.rdb $OFFICE_BASE_HOME/ure-link/share/misc/types.rdb \
-Torg.opengis.openoffice.XReferencing \
-Torg.geotoolkit.openoffice.XReferencing \
-Torg.geotoolkit.openoffice.XNature