Help compiling an idl for an Add-in

lucass lucass at gmail.com
Tue Nov 10 15:42:18 PST 2015


To be sure i ran ./setsdkenv_unix --force-configure

My configurations:

 ************************************************************************
 *
 * SDK environment is prepared for Linux
 *
 * SDK = /usr/lib/libreoffice/sdk
 * Office = /usr/lib/libreoffice
 * Make = /usr/bin
 * Zip = /usr/bin
 * cat = /bin
 * sed = /bin
 * C++ Compiler = /usr/bin
 * Java = /home/lucas/Programs/jdk1.8.0_25
 * SDK Output directory = /home/lucas/loOut/libreoffice5.0_sdk
 * Auto deployment = YES
 *
 ************************************************************************

Still having the same compilation error.

➜  sdk  /usr/lib/libreoffice/sdk/bin/idlc -C -O
/home/lucas/dev/clojurecalc/ClojureCalc/build/idl/urd -I
/home/lucas/dev/clojurecalc/ClojureCalc/src -I /usr/lib/libreoffice/sdk/idl
/home/lucas/dev/clojurecalc/ClojureCalc/src/com/github/beothorn/clojurecalc/ClojureCalc.idl
Compiling:
/home/lucas/dev/clojurecalc/ClojureCalc/src/com/github/beothorn/clojurecalc/ClojureCalc.idl
<command-line>:1 [62:62] : Statement can not be parsed: syntax error,
unexpected $undefined
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:80 [42:42] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:94 [5:8] :
Statement can not be parsed: syntax error, unexpected IDL_VOID
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:94 [19:19] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:100 [5:8] :
Statement can not be parsed: syntax error, unexpected IDL_VOID
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:100 [19:19] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:102 [1:1] :
Statement can not be parsed: syntax error, unexpected '}', expecting $end
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:102 [2:2] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [1:1] :
Statement can not be parsed: syntax error, unexpected '}', expecting $end
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [2:2] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [4:4] :
Statement can not be parsed: syntax error, unexpected '}', expecting $end
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [5:5] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [7:7] :
Statement can not be parsed: syntax error, unexpected '}', expecting $end
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [8:8] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [10:10] :
Statement can not be parsed: syntax error, unexpected '}', expecting $end
/usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl:105 [11:11] :
Statement can not be parsed: definitions
/usr/lib/libreoffice/sdk/bin/idlc.bin: detected 16
errors/usr/lib/libreoffice/sdk/bin/idlc.bin Version 1.1


On Tue, Nov 10, 2015 at 11:57 AM, lucass <lucass at gmail.com> wrote:

> When using the ubuntu sdk I did do that, I setted the same cpp from which
> I copied the version output and the sdk from the libreoffice-dev package.
> I'm not at my computer right now.
> I saw that setsdkenv_unix prints all setted values, I'll recheck them
> later and send it here.
>
> Thanks
>
> On Tue, Nov 10, 2015 at 11:16 AM, Stephan Bergmann <sbergman at redhat.com>
> wrote:
>
>> On 11/10/2015 01:53 PM, lucass wrote:
>>
>>> I downloaded the rpm file on the official site and extracted it (using
>>> the file compression tool that comes with ubuntu).
>>> I couldn't make idlc work, but I think it was because my own lack of
>>> experience.
>>> When running idlc it complained about not finding libreglo.so .
>>>
>>
>> For one, you need to configure the LO SDK before using it, by running its
>> setsdkenv_unix.sh, see <http://api.libreoffice.org/docs/install.html>).
>> Did you do that?  If not, that is maybe also the reason why the
>> Ubuntu-provided LO SDK does not work for you.
>>
>> For another, a LO SDK should always be used in combination with a
>> matching LO installation.  It is unwise and unsupported to use a LO SDK
>> downloaded from libreoffice.org together with a Ubuntu-provided LO
>> installation.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151110/441a9a71/attachment.html>


More information about the LibreOffice mailing list