Looking for a straightforward C++ tutorial

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
iwbnwif
Posts: 7
Joined: Tue Jan 10, 2012 2:21 pm

Looking for a straightforward C++ tutorial

Post by iwbnwif »

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:
http://wiki.openoffice.org/wiki/Documen ... onnections

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
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Looking for a straightforward C++ tutorial

Post by acknak »

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
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Looking for a straightforward C++ tutorial

Post by hanya »

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
iwbnwif2
Posts: 2
Joined: Tue Feb 26, 2013 3:52 pm

Re: Looking for a straightforward C++ tutorial

Post by iwbnwif2 »

Thanks guys for the tips.
LibreOffice 4.0 on Ubuntu 12.10
Post Reply