Search This Blog

Wednesday, February 25, 2015

Installing LibreOffice SDK on Ubuntu

I needed to write some small applications to export data from a spreadsheet into a script. Since I was using LibreOffice Calc, I started looking for a SDK. The information on the SDK can be found on this site.

http://api.libreoffice.org

which provides documentation and tutorials on the SDK.



However, there is a simpler way to install the SDK on your Ubuntu environment. That is using our familiar command sudo apt-get install ...

$ sudo apt-get install libreoffice-dev



This installs LibreOffice SDK on your machine. Next step was to configure everything. To do so, I had to first locate the installation, which can be done by searching for the following file (setsdkenv_unix.sh).

$ locate setsdkenv_unix.sh



Having found the location on your machine, you need to execute this as a source file using the syntax below.

$ . /usr/lib/libreoffice/sdk/setsdkenv_unix.sh

or

$ source /usr/lib/libreoffice/sdk/setsdkenv_unix.sh

This executes the environment to setup the application.


Now we are ready to run our programs.

No comments: