thx for your answer, it works well with clutter 1.0.10
Le 19/02/2010 17:25, Emmanuele Bassi a écrit :
On Fri, 2010-02-19 at 15:53 +0100, Bastien Bouzerau wrote:
Hi everybody, I'm a beginner in clutter developping. So I try to do
beginner tutorial from tuxradar.
http://www.tuxradar.com/content/clutter-beginners-tutorialhttp://www.tuxradar.com/content/clutter-beginners-tutorial
But when I compile example.com, I have this error..
gcc example.c -o clutterapp `pkg-config clutter-1.0 --cflags --libs`
/usr/include/clutter-1.0/clutter/clutter-json.h:9,
from /usr/include/clutter-1.0/clutter/clutter-scriptable.h:34,
from /usr/include/clutter-1.0/clutter/clutter.h:64,
from example.c:1:
/usr/include/clutter-1.0/clutter/json/json-types.h:25:2: erreur:
#error "Only<json-glib/json-glib.h> can be included directly."
I am on Fedora 12 and I installed packages
clutter-1.0.6-1.fc12.i686
gtk+
libX11
clutter 1.0.6 is slightly old - the latest stable release of clutter 1.0
is 1.0.10.
anyway, it shouldn't fail - and surely it shouldn't fail with that error
since the Clutter you are compiling against is apparently using the
internal JSON-GLib copy instead of depending on the system one; and the
internal JSON-GLib copy *does not have the inclusion guard* that
contains that error. only the upstream JSON-GLib uses that inclusion
guard.
I think you might have some odd installation issue - some stale
pkg-config file or a conflicting header installed from a previously
compiled Clutter.
I've found this bugs http://bugs.gentoo.org/show_bug.cgi?id=240433
but I don't understand what gnome-base/gail-1000 is
GNOME-Gail doesn't have anything to do with Clutter and/or JSON-GLib.
should I work on an Ubuntu or a Debian instead of Fedora ?
Clutter is currently developed on Ubuntu, Debian, Fedora and Mandriva;
I'm a Fedora user. I can assure you, you can probably use any Linux
distribution under the sun. :-)
ciao,
Emmanuele.
--
To unsubscribe send a mail to [email protected]