C++ Macro example: DocumentLoader
Stephan Bergmann
sbergman at redhat.com
Mon Feb 1 05:04:00 PST 2016
On 02/01/2016 12:24 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"
> 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.
I cannot reproduce that problem; works fine here. You can use something like
netstat -an | grep 2083
to check that nothing is listening on port 2083 before you start
soffice, and then again check that soffice started to listen on that
port after starting soffice.
More information about the LibreOffice
mailing list