On Sat, 2009-04-25 at 16:48 +0200, Dario Rossi wrote: > As an Integration to my previous post: as I try to include Clutter > headers in any project I have (and that compiles fine) I get: > > /usr/include/clutter/clutter-fixed.h:39: error: expected ‘=’, ‘,’, > ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ > /usr/include/clutter/clutter-fixed.h:47: error: expected ‘=’, ‘,’, > ‘;’, ‘asm’ or ‘__attribute__’ before > ‘ClutterAngle_REPLACED_BY_CoglAngle’
> at the beginning of the errors.... What can this be??? you are using clutter-0.8 headers with clutter-0.9 API. see below why. > 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... DO. NOT. EVER. DO. THAT. remove those symlinks *at once*. and don't *ever* install a library from sources into a global location line /usr -- use /usr/local (the default) or something like jhbuild[0] and a completely custom prefix. this whole mess started because you haven't been using pkg-config: http://www.openismus.com/documents/clutter_tutorial/0.9/docs/tutorial/html/chapter-headers-and-linking.html when you compile any clutter-based application you should be doing: gcc -Wall \ `pkg-config --cflags clutter-0.9` \ -o your-app your-app.c \ `pkg-config --libs clutter-0.9` if you are using the 0.9 API, or: gcc -Wall \ `pkg-config --cflags clutter-0.8` \ -o your-app your-app.c \ `pkg-config --libs clutter-0.8` if you are using the 0.8 API. ciao, Emmanuele. +++ [0] http://live.gnome.org/Jhbuild -- Emmanuele Bassi, Senior Engineer | [email protected] Intel Open Source Technology Center | http://oss.intel.com -- To unsubscribe send a mail to [email protected]
