<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="monospace">Hi all,<br>
<br>
I trying to build the following C++ macro example.<br>
<br>
<a href="http://api.libreoffice.org/examples/cpp/DocumentLoader/">http://api.libreoffice.org/examples/cpp/DocumentLoader/</a><br>
<br>
But i get the following error:<br>
<br>
# make<br>
--------------------------------------------------------------------------------<br>
The example loads the "test.odt" document in the DocumentLoader
example directory.<br>
If you want to load your own document, please use:<br>
DocumentLoader
-env:URE_MORE_TYPES="/usr/lib/libreoffice/ure-link/share/misc/types.rdb"
"filename" [connection_url]<br>
-<br>
Use the following command to execute the example!<br>
-<br>
make DocumentLoader.run<br>
-<br>
NOTE: This example does not use the new UNO bootstrap mechanism,
it uses still a socket<br>
connection. The example use the
defaultBootstrap_InitialComponentContext method and provides<br>
the additional office types via the UNO environment variable
-env:URE_MORE_TYPES=...<br>
Before you can run this example you have to start your
office in listening mode.<br>
-<br>
soffice
"--accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"<br>
--------------------------------------------------------------------------------<br>
<br>
# make DocumentLoader.run<br>
cd /usr/lib/libreoffice/sdk/LINUXexample.out/bin &&
DocumentLoader -env:URE_MORE_TYPES=<a class="moz-txt-link-freetext" href="file://">file://</a>"/types/offapi.rdb"
"/usr/lib/libreoffice/sdk/test.odt"<br>
/bin/sh: 1: DocumentLoader: not found<br>
Makefile:101: recipe for target 'DocumentLoader.run' failed<br>
make: *** [DocumentLoader.run] Error 127<br>
<br>
Any hints?<br>
<br>
Thanks in advance,<br>
<br>
Aitor.</font><br>
</body>
</html>