Looking for a straightforward C++ tutorial

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Looking for a straightforward C++ tutorial

Postby iwbnwif » Sat Apr 13, 2013 1:25 pm

Hello forum.

This is my first attempt at using UNO from C++ and I am very much a beginner with some of the tools and concepts.

My environment is LibreOffice 4.0.2 on Ubuntu 12.10.

I have downloaded the SDK and tried to work through the "getting started" but it all seems very Java oriented and talks about setting up NetBeans / Eclipse etc.

So far all I have managed to achieve is run the "setsdkenv_unix" script and build the 4 examples (which are in /usr/lib/libreoffice/sdk/examples/cpp). They built okay and run.

But now I am getting stuck. What I want to do is build the example here:

If possible I would like to build it within my IDE (Codelite) but if not the command line is fine.

Currently I am getting errors in sal/types.h "Could not find 16-bit type, add support for your architecture" +++ for other types as well
Also sal/types.h "unknown platform" and
lbnames.h "No supported C++ compiler environment" (although there of course is)

Thank you for helping!
LibreOffice 3.4.4 Linux Mint 12
Posts: 7
Joined: Tue Jan 10, 2012 2:21 pm

Re: Looking for a straightforward C++ tutorial

Postby acknak » Sun Apr 14, 2013 3:14 pm

If you don't get a response here, I'd suggest you try one of the developer mailing lists, either at Apache OO, or LibO.
AOO4/LO5 • Linux • Fedora 23
User avatar
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Looking for a straightforward C++ tutorial

Postby hanya » Sun Apr 14, 2013 3:46 pm

Some environmental definitions are required to build examples with headers from SDK. See sdk/settings/settings.mk file and make files for these examples.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Looking for a straightforward C++ tutorial

Postby iwbnwif2 » Sun Apr 14, 2013 5:32 pm

Thanks guys for the tips.
LibreOffice 4.0 on Ubuntu 12.10
Posts: 2
Joined: Tue Feb 26, 2013 3:52 pm

Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest