scalc UNO api compilation question about header files

Neeraj Rai rneeraj.rai at gmail.com
Thu Mar 7 16:16:00 PST 2013


Hi Caolanm/Stephan,

Ugly  works for me - no issues. Please bear with while I try to understand
this.

I have a makefile from Simple Calc example. It uses cppumaker to generate
some header files from my idl files. I think you are saying
Xdesktop/XEnumerationAccess
are genrated in that step. That works and I understand it now.
I don't understand what you said about " if you built an example, they are
generated".
I thought they depend on my idl or are they buildable before I start
writing any uno code?

Once they are generated, I need to specify those paths in -I <include> for
the _impl.o
One option is - I know where they are and I can explicitly include those
paths.
But I am wondering if they are put in any of the standard paths -
by standard path I mean those dir which are set by the sdk env script
(setsdkenv_unix.sh).

At this stage of learning, I would like to avoid including another make
file to let things work magically. The makefiiles in examples were too
complicated for me so I prefer stick with
the one that comes with Simple Calc example.

But I don't see any standard path pointing to  libreoffice-4.0.0.3/workdir.
Nor do I see those dir specified as args to cppumaker.
I am wondering how cppumaker decides where to generate the headers.
Once it knows about  libreoffice-4.0.0.3/workdir, it also decides about a
few other dirs:
e.g. offapi and udkapi.
How does it get those names ? If it is from env, I can use it in my make.
If it is hardcoded, that is fine too - I can hardcode it in my make.

thx
Neeraj

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130307/fa883c92/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 2880 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130307/fa883c92/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setenv
Type: application/octet-stream
Size: 165 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130307/fa883c92/attachment-0001.obj>


More information about the LibreOffice mailing list