scalc UNO api compilation question about header files
Stephan Bergmann
sbergman at redhat.com
Thu Mar 7 02:47:06 PST 2013
On 03/06/2013 09:44 PM, Neeraj Rai wrote:
> 1. how is the header XDesktop.hpp generated and should it be in the path
> pointed by any of the standard vars
> (OO_SDK_HOME, (OO_SDK_URE_HOME, OO_SDK_OUT)
Those .hpp (and internal .hdl) files corresponding to UNOIDL entities
(declared in .idl files) are not included in the SDK, but rather need to
be generated via cppumaker. The SDK's settings/stdtarget.mk has target
$(SDKTYPEFLAG) for wholesale generation of those C++ header files
corresponding to all of LO's .idl files.
See e.g. SDK's examples/cpp/DocumentLoader/Makefile for including std.mk
and stdtarget.mk and making compilation of C++ sources depend on
$(SDKTYPEFLAGS). (This also explains why building your own C++ code
against the SDK sometimes happens to work and sometimes not---if you
already built one of the C++ examples, the headers are already
generated. All of this is hopelessly ugly.)
Stephan
More information about the LibreOffice
mailing list