C++ Macro example: DocumentLoader

aitor_czr aitor_czr at gnuinos.org
Sat Jan 30 04:42:41 PST 2016


Hi all,

I trying to build the following C++ macro example.

http://api.libreoffice.org/examples/cpp/DocumentLoader/

But i get the following error:

# make
--------------------------------------------------------------------------------
The example loads the "test.odt" document in the DocumentLoader example 
directory.
If you want to load your own document, please use:
   DocumentLoader 
-env:URE_MORE_TYPES="/usr/lib/libreoffice/ure-link/share/misc/types.rdb" 
"filename" [connection_url]
-
Use the following command to execute the example!
-
make DocumentLoader.run
-
NOTE: This example does not use the new UNO bootstrap mechanism, it uses 
still a socket
       connection. The example use the 
defaultBootstrap_InitialComponentContext method and provides
       the additional office types via the UNO environment variable 
-env:URE_MORE_TYPES=...
       Before you can run this example you have to start your office in 
listening mode.
-
   soffice 
"--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"
--------------------------------------------------------------------------------

# make DocumentLoader.run
cd /usr/lib/libreoffice/sdk/LINUXexample.out/bin && DocumentLoader 
-env:URE_MORE_TYPES=file://"/types/offapi.rdb" 
"/usr/lib/libreoffice/sdk/test.odt"
/bin/sh: 1: DocumentLoader: not found
Makefile:101: recipe for target 'DocumentLoader.run' failed
make: *** [DocumentLoader.run] Error 127

Any hints?

Thanks in advance,

     Aitor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20160130/d1d27587/attachment.html>


More information about the LibreOffice mailing list