Page 1 of 1

[Solved] Compiling DocumentLoader example in LO 4.0.0

Posted: Fri Mar 01, 2013 7:05 am
by SNM90
Hi,

I'm using LibreOffice 4.0.0 SDK on Windows 7 using Microsoft Visual Studio 2010 as the C++ compiler environment. When trying out the SDK example of DocumentLoader, I'm having a lot of compiler errors including missing header files in some of the paths (eg. RuntimeException.hpp is one let's say). These files are not included in the SDK, and to back trace these and download from the net all these files is very inconvenient. So can someone please share their .rar file of this example which is running in a similar environment? Any help is deeply appreciated.

Thanks!

Re: Compiling DocumentLoader example in LibreOffice 4.0.0

Posted: Fri Mar 01, 2013 10:49 pm
by Charlie Young
Well, I'm using AOO on Windows, so I hope this is close enough.

Have you done this? (substitute whatever the analogs are for LibreOffice):

Code: Select all

cppumaker -Gc -BUCR -O"C:\Program Files\OpenOffice.org 3\Basis\sdk\includecpp" "C:\Program Files\OpenOffice.org 3\URE\misc\types.rdb" "C:\Program Files\OpenOffice.org 3\basis\program\offapi.rdb"
That creates all the needed header files in one swoop. You need to manually create the indicated includecpp folder before running this, then add said folder to the Include Directories of your project.

If that solves the header file problem, you may run into some other roadblocks. Let us know.

Re: Compiling DocumentLoader example in LibreOffice 4.0.0

Posted: Mon Mar 04, 2013 6:18 am
by SNM90
Hi Charlie,

As a matter of fact, I hadn't run this command before. Actually I'm totally new to all of this and the industry. Can you also tell me what exactly this command does exactly? Also, I need to learn how to use the Libreoffice APIs. What is the simplest way to go about it? As in, an example that would would one most basic API, and I only write the .cpp.

The problem with the headers has been resolved. I'll see if I face any more problems. Will get back to you surely if needed.

Thanks a ton!