Contents. How to install the SDK and compile the C examples The following points are important, if you want to succeed in building C components and snippets:. You need to have OpenOffice.org and OpenOffice SDK in the identical version.
You need to install the SDK into a directory other than the one of the AOO application. It is strongly recommended to install the newest Java JDK on your system. Make your operating system up to date.
If you have questions, use your preferred search engine first. If this not works visit: to get help. Installation under Mac OS X. The text below describes the installation of the SDK 4.1.0 and OpenOffice 4.1.0 on Mac OS X 10.9.4 with Xcode 4.1.1. It would works for other Intel Mac configurations too. Install Xcode.
You can get it from the Apple App Store. Perhaps you must be registered as Mac developer under. Install newest OpenOffice and the corresponding SDK from (Choose MacOSx86-64).
(Optional) Install MacPorts from. You need MacPorts to install optional Unix-like software needed by the SDK. Test the SDK. Open a terminal and look for the SDK folder. Now type and run: cd./setsdkenvunix # Need to run every time before you use the SDK cd examples/cpp/DocumentLoader make soffice '-accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager' & make DocumentLoader.run If everything went fine, you should see a new document, with the content of /examples/cpp/DocumentLoader/test.odt. Further informations see: and Its recommended to use Eclipse or Netbeans to develop with OpenOffice SDK.
There are plugins for booth, but they don't support C programming. Feel free to help adding this feature: For Eclipse visit. For Netbeans visit.
To work with the SDK and C use an editor of your choice. Installation under LINUX. The text below describe the installation of the SDK 4.1.0 for OpenOffice.org 4.1.0 under Ubuntu.
Make sure you have development tools installed: sudo aptitude install gcc make build-essential. Install newest OpenOffice and the corresponding SDK from or type and run sudo aptitude install openoffice.org openoffice.org-dev openoffice.org-dev-doc.
Test the SDK. Open a terminal and look for the SDK folder. Now type and run: cd./setsdkenvunix # Need to run every time before you use the SDK cd examples/cpp/DocumentLoader make soffice '-accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager' & make DocumentLoader.run If everything went fine, you should see a new document, with the content of /examples/cpp/DocumentLoader/test.odt. Further informations see: and Its recommended to use Eclipse or Netbeans to develop with OpenOffice SDK. There are plugins for booth, but they don't support C programming. Feel free to help adding this feature: For Eclipse visit. For Netbeans visit.
Bear in mind the easier way to construct the examples of the SDK is to use the makefiles provided. If you want to start a project, begin with modifying an example of the SDK. You need a compiler out of the Microsoft Visual Studio family (other compilers like MinGW have turned out to be hard to configure for OOo on Windows). The first thing after having installed the SDK is to launch the configureWindowsNT.bat and set all the necessary directories for proper use of the SDK. If that has been done you have already installed everything, but.wait. one very important thing you should still know of: Every time you want to run your own code or one of the SDK examples you need to launch the setsdkenvWindows batch file from your command shell. The title of it should now be 'Shell prepared for SDK'.
Happy coding, compiling and building now (I tell you it's easy from now on!). GanescuCarmen describes some problems he encounter when trying SDK examples under Windows: “I also use the 1.1 OO version. I had a lots of problems. Finally I succeeded to obtain the the header files, and in VC I needed some library to be included into project and some files(uno.idl) to be added to rdb files. It was very hard to understand what it means registry(the rdb file not the Registry itself).
I was expecting to register something in Registry but it wasn't like this. And with the service manager I had some problems, with the port, because the connection with 8100 port was not done.
Db: 4.80:previous Sdk Installer For Mac Download
I had to modify a file and to add some code for 8100 port. But I did it and it works now.” Installing with the free MS Visual C Toolkit 2003. This section needs help for update because MS Visual C Toolkit 2003 seems no more available. Please have a look at Microsoft for the free Visual C tools at the moment. I have installed DevCpp to have a make executable file. I have downloaded the free Visual C Toolkit 2003 here: and then I have installed it.