Andrew Ziem wrote:
Hello,

I heard it's easy to package ogltrans as oxt, so I wonder if I am closer to success or closer to exposing my ignorance. :)

I have an oxt**, but it fails to load with error like
(com.sun.start.lang.DisposedException) {{{Message = "URP_Bridge : disposed\X000a(tid=22) Unexpected connection closure", Context = (com.sun.star.uno.XInterface) @0}}}.

Basically, I did this:
1. Compile OOH680_m12 with --enable-ogltrans --enable-opengl
2. regcomp -register  -r ogltrans.rdb  -c libOGLTrans.uno.so

Step 2 is not necessary. It is the Extension Manager (or alternatively the unopkg command line tool) that will register your extension's UNO component library with OOo's services registry. The additional ogltrans.rdb is at best harmless, and at worst a source of errors.

3. createExtPackage.pl  ogltrans.oxt  *rdb *so

No idea what createExtPackage.pl does, sorry.

4. Try to load in OOo 2.4.0 Linux vanilla.

The libOGLTrans.uno.so in your extension does not only link against URE libraries, but also against OOo's libvcl680li.so, libcomphelp4gcc3.so, and libcanvastools680li.so. That means that it will only work against very specific versions of OOo, if it works at all (see <http://porting.openoffice.org/servlets/ReadMsg?list=mac&msgNo=6872>). (Also, its RPATH is not what one would expect of an extension library, see <http://www.openoffice.org/servlets/ReadMsg?list=interface-announce&msgNo=1154>.)

5. Fail.

For registration (see comments to step 2 above), your extension's libOGLTrans.uno.so is loaded into an extra process running uno.bin, which it crashes:

#0  rtl_str_getLength (pStr=0x0) at strtmpl.c:78
#1  0xb3c85505 in comphelper::service_decl::ServiceDecl::writeInfo (
    this=0xb404cd50, xKey=0xb6172640) at ustrbuf.hxx:399
#2  0xb40478d3 in comphelper::service_decl::component_writeInfoHelper ()
from .../UserInstallation/user/uno_packages/cache/uno_packages/pNpE9x_/ogltrans.oxt/libOGLTrans.uno.so
#3  0xb404374c in component_writeInfo ()
from .../UserInstallation/user/uno_packages/cache/uno_packages/pNpE9x_/ogltrans.oxt/libOGLTrans.uno.so
#4  0xb7cec538 in s_writeInfo (pParam=0xb486cc56)
    at /so/ws/OOH680/src/cppuhelper/source/shlib.cxx:482
[...]

6. Add transitions-ogl.xml to the .oxt with maybe wrong path and/or wrong mime type application/vnd.sun.star.configuration-data
7. Try again to load
8. Fail


**Here's my oxt:
http://www.openoffice.org/nonav/issues/showattachment.cgi/52536/ogltrans.oxt

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to