C++ Macro example: DocumentLoader

aitor_czr aitor_czr at gnuinos.org
Mon Feb 1 03:24:00 PST 2016


Hi Stephan,

On 02/01/2016 09:39 AM, Stephan Bergmann wrote:
> On 01/30/2016 01:42 PM, aitor_czr wrote:
>> # 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
>
> You probably did not (re-)run the setsdkenv_unix script 
> (<http://api.libreoffice.org/docs/install.html>)? It drops you into a 
> sub-shell where "." is on PATH.

I built the DocumentLoader example succesfully, but running it this is 
what i get:

$ 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"
Error: cannot establish a connection using 
'uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager':
        Connector : couldn't connect to socket (Success)
Makefile:101: recipe for target 'DocumentLoader.run' failed
make: *** [DocumentLoader.run] Error 1

I tried doing:

$/usr/lib/libreoffice/program/soffice 
"--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager" &

before running the application, but it doesn't work.

Cheers,

    Aitor.

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


More information about the LibreOffice mailing list