sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1747217 - in /sis/branches/JDK8/application/sis-openoffice/src/main/unopkg: build-instruction.html org/ org/apache/ org/apache/sis/ org/apache/sis/openoffice/ org/apache/sis/openoffice/XReferencing.class sis.rdb
Date Tue, 07 Jun 2016 13:07:01 GMT
Author: desruisseaux
Date: Tue Jun  7 13:07:01 2016
New Revision: 1747217

URL: http://svn.apache.org/viewvc?rev=1747217&view=rev
Log:
Add the result of UNO compilation for OpenOffice.

Added:
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/openoffice/
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/openoffice/XReferencing.class
  (with props)
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/sis.rdb   (with props)
Modified:
    sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/build-instruction.html

Modified: sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/build-instruction.html
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/build-instruction.html?rev=1747217&r1=1747216&r2=1747217&view=diff
==============================================================================
--- sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/build-instruction.html (original)
+++ sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/build-instruction.html Tue
Jun  7 13:07:01 2016
@@ -21,66 +21,72 @@
 
 <html>
   <head>
-    <title>OpenOffice.org add-in build instructions</title>
+    <title>OpenOffice add-in build instructions</title>
     <meta charset="UTF-8">
   </head>
   <body>
-    <h1>OpenOffice.org add-in build instructions</h1>
+    <h1>OpenOffice add-in build instructions</h1>
+    <p style="font-size:smaller">
+      This page is adapted from the <a href="http://www.geoapi.org/geoapi-openoffice/build.html">GeoAPI
build page</a>.
+    </p>
     <p>
       All <code>XFoo</code> Java interfaces are generated from IDL files with
the same name.
-      As long as <code>XFoo</code> Java/IDL interfaces are not modified, there
is no need for the OpenOffice.org SDK.
+      As long as <code>XFoo</code> Java/IDL interfaces are not modified, there
is no need for the OpenOffice SDK.
       But if any <code>XFoo</code> 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 <i>"Tools / Package manager"</i> menu from OpenOffice.org
GUI).
-    </p>
-
-    <p>
-      See the requirement section in the <a href="http://www.geoapi.org/geoapi-openoffice/build.html">GeoAPI
build page</a>
-      for a list of required tools.
+      (users can also use the <i>"Tools / Package manager"</i> menu from OpenOffice
GUI).
     </p>
 
     <p>
-      Replace <var>ooo-path</var> by the path to the OpenOffice.org installation
directory.
-      That directory should contain the <code>program</code> and <code>ure-link</code>
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 <code>OpenOffice.org3.3_SDK</code>,
+      Replace <var>ooo-path</var> by the path to the OpenOffice installation
directory.
+      That directory should contain the <code>program</code> sub-directories
+      The OpenOffice SDK shall be installed as a sub-directory of the OpenOffice root directory.
+      If the name of that SDK directory is different than <code>OpenOffice_SDK</code>,
       then modify the <code>OO_SDK_HOME</code> value below accordingly.
     </p>
 
 <blockquote><pre>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</pre></blockquote>
+export OO_SDK_HOME=$OFFICE_BASE_HOME/OpenOffice_SDK
+export PATH=$OFFICE_BASE_HOME/program:$OO_SDK_HOME/bin:$PATH</pre></blockquote>
+
+
+<h2>Compiles the UNO <code>.urd</code> binary file:</h2>
+<blockquote><pre>cd application/sis-openoffice/src/main/java
+idlc -C -cid -w -I $OO_SDK_HOME/idl org/apache/sis/openoffice/*.idl</pre></blockquote>
+
+    <div><b>MacOS troubleshooting:</b>
+      if the above command fails with a message like:
+
+      <blockquote>“<code>dyld: Library not loaded: @executable_path/libreg.dylib.3</code>
+        (…) <code>Reason: image not found</code>”</blockquote>
 
+      try adding the following environment variable:
 
-<p>Compiles the UNO <code>.urd</code> binary file:</p>
-<blockquote><pre>cd modules/analytics/sis-openoffice/src/main/java
-idlc -C -cid -w -I $OO_SDK_HOME/idl org/opengis/openoffice/*.idl org/apache.sis/openoffice/*.idl</pre></blockquote>
+      <blockquote><pre>export DYLD_FALLBACK_LIBRARY_PATH=$OFFICE_BASE_HOME/program</pre></blockquote>
+    </div>
 
 
-<p>Compiles the UNO <code>.rdb</code> registry file:</p>
-<blockquote><pre>regmerge ../unopkg/sis.rdb /UCR org/opengis/openoffice/*.urd
org/apache.sis/openoffice/*.urd
-rm org/opengis/openoffice/*.urd org/apache.sis/openoffice/*.urd
+<h2>Compiles the UNO <code>.rdb</code> registry file:</h2>
+<blockquote><pre>regmerge ../unopkg/sis.rdb /UCR org/apache/sis/openoffice/*.urd
+rm org/apache/sis/openoffice/*.urd
 cd ../unopkg</pre></blockquote>
 
 
-<p>Creates the <code>.class</code> file for Java interfaces:</p>
-<blockquote><pre>javamaker -BUCR -nD sis.rdb $OFFICE_BASE_HOME/ure-link/share/misc/types.rdb
\
-    -Torg.opengis.openoffice.XReferencing \
-    -Torg.apache.sis.openoffice.XReferencing \
-    -Torg.apache.sis.openoffice.XNature</pre></blockquote>
+<h2>Creates the <code>.class</code> file for Java interfaces:</h2>
+<blockquote><pre>javamaker -BUCR -nD sis.rdb $OFFICE_BASE_HOME/program/types.rdb
\
+    -Torg.apache.sis.openoffice.XReferencing</pre></blockquote>
 
 
-<p>Derives a <code>.java</code> source from the <code>.class</code>
file:</p>
-<blockquote><pre>javap org.opengis.openoffice.XReferencing \
-   org.apache.sis.openoffice.XReferencing org.apache.sis.openoffice.XNature</pre></blockquote>
+<h2>Derives a <code>.java</code> source from the <code>.class</code>
file:</h2>
+<blockquote><pre>javap org.apache.sis.openoffice.XReferencing</pre></blockquote>
 
 
-<p>Build:</p>
+<h2>Build:</h2>
 <blockquote><pre>cd ../../..
 mvn install</pre></blockquote>
 
 
-<p>deploy:</p>
+<h2>Test in Apache OpenOffice:</h2>
 <blockquote><pre>cd target
 unopkg add sis-0.8-SNAPSHOT.oxt --log-file log.txt</pre></blockquote>
 

Added: sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/openoffice/XReferencing.class
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/openoffice/XReferencing.class?rev=1747217&view=auto
==============================================================================
Binary file - no diff available.

Propchange: sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/org/apache/sis/openoffice/XReferencing.class
------------------------------------------------------------------------------
    svn:mime-type = application/x-java-applet

Added: sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/sis.rdb
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/sis.rdb?rev=1747217&view=auto
==============================================================================
Binary file - no diff available.

Propchange: sis/branches/JDK8/application/sis-openoffice/src/main/unopkg/sis.rdb
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message