I'm trying to experiment with Clutter...but I'm stuck with some problems.
Let's note that I want to use it in a C++ project, now clutterMM doesn't
compile, but honestly I wanted to use the C library and incapsulate it in
some C++ classes of my own.

If I try to JUST include the lib in a empty project like this:


#include <clutter/clutter.h>


int main() {

    return 0;

}

I get a nightmare of errors on the include file, starting like:

In file included from /usr/include/clutter/clutter-color.h:30,
                 from /usr/include/clutter/clutter-actor.h:32,
                 from /usr/include/clutter/clutter.h:29,
                 from ../main.cpp:3:
/usr/include/clutter/clutter-fixed.h:39: error: expected constructor,
destructor, or type conversion before ‘typedef’
/usr/include/clutter/clutter-fixed.h:47: error: ‘gint32’ does not name a
type
/usr/include/clutter/clutter-fixed.h:287: error: ‘G_INLINE_FUNC’ does not
name a type
/usr/include/clutter/clutter-fixed.h:313: error: ‘G_INLINE_FUNC’ does not
name a type
/usr/include/clutter/clutter-fixed.h:325: error: ‘ClutterFixed’ does not
name a type
/usr/include/clutter/clutter-fixed.h:326: error: ‘ClutterFixed’ does not
name a type
/usr/include/clutter/clutter-fixed.h:328: error: ‘ClutterFixed’ does not
name a type
/usr/include/clutter/clutter-fixed.h:330: error: ‘ClutterFixed’ does not
name a type
...

and so on, I even tried to put extern "C" around the include, but still
gives the same results.

Note that I had two folders in usr/include one is clutter-0.8 the other
clutter-0.9 (Ubuntu). I set 2 symlinks (but the problem was even before)
like this:

ln -s clutter-08/clutter clutter
ln -s clutter-09/cogl cogl

no effect at all...

Any suggestion?

Reply via email to