Mostra notizie nelle discussioni
  • Avatar
    Scritto da
    Non Autenticato
    il 2009-11-24 22:54:00.0 alle 2009-11-24 22:54:00.0
    PROGRAMMATORI! Clutter Aiuto!
    Con quale comando lo compilo questo? Ho tutte le librerie, ma non si vede che non metto qualcosa nei pkgconfig:

    #include <gtk/gtk.h>
    #include <clutter/clutter.h>
    #include <clutter-gtk/gtk-clutter-embed.h>
    #include <stdlib.h>

    ClutterActor *stage = NULL;

    static gboolean
    on_button_clicked (GtkButton *button, gpointer user_data)
    {
    static gboolean already_changed = FALSE;
    if(already_changed)
    {
        ClutterColor stage_color = { 0x00, 0x00, 0x00, 0xff }; /* Black */
        clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
    }
    else
    {
        ClutterColor stage_color = { 0x20, 0x20, 0xA0, 0xff };
        clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);
    }

    already_changed = !already_changed;

    return TRUE; /* Stop further handling of this event. */
    }

    static gboolean
    on_stage_button_press (ClutterStage *stage, ClutterEvent *event, gpointer user_data)
    {
    gint x = 0;
    gint y = 0;
    clutter_event_get_coords (event, &x, &y);

    g_print ("Stage clicked at (%d, %d)\n", x, y);

    return TRUE; /* Stop further handling of this event. */
    }

    int main(int argc, char *argv[])
    {
    ClutterColor stage_color = { 0x00, 0x00, 0x00, 0xff }; /* Black */

    clutter_init (&argc, &argv);
    gtk_init (&argc, &argv);

    /* Create the window and some child widgets: */
    GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    GtkWidget *vbox = gtk_vbox_new (FALSE, 6);
    gtk_container_add (GTK_CONTAINER (window), vbox);
    gtk_widget_show (vbox);
    GtkWidget *button = gtk_button_new_with_label ("Change Color");
    gtk_box_pack_end (GTK_BOX (vbox), button, FALSE, FALSE, 0);
    gtk_widget_show (button);
    g_signal_connect (button, "clicked",
        G_CALLBACK (on_button_clicked), NULL);

    /* Stop the application when the window is closed: */
    g_signal_connect (window, "hide",
                        G_CALLBACK (gtk_main_quit), NULL);

    /* Create the clutter widget: */
    GtkWidget *clutter_widget = gtk_clutter_embed_new ();
    gtk_box_pack_start (GTK_BOX (vbox), clutter_widget, TRUE, TRUE, 0);
    gtk_widget_show (clutter_widget);

    /* Set the size of the widget,
       * because we should not set the size of its stage when using GtkClutterEmbed.
       */
    gtk_widget_set_size_request (clutter_widget, 200, 200);

    /* Get the stage and set its size and color: */
    stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (clutter_widget));
    clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color);

    /* Show the stage: */
    clutter_actor_show (stage);

    /* Connect a signal handler to handle mouse clicks and key presses on the stage: */
    g_signal_connect (stage, "button-press-event",
        G_CALLBACK (on_stage_button_press), NULL);

    /* Show the window: */
    gtk_widget_show (GTK_WIDGET (window));

    /* Start the main loop, so we can respond to events: */
    gtk_main ();

    return EXIT_SUCCESS;

    }
    • Avatar
      Scritto da
      Non Autenticato
      il 2009-11-25 08:32:00.0 alle 2009-11-25 08:32:00.0
      Re: PROGRAMMATORI! Clutter Aiuto!
      up

      Ho provato che per il primo esempio che avevano messo andava bene:
      gcc -Wall \
              `pkg-config --cflags clutter-0.9` \
              -o your-app main.c \
              `pkg-config --libs clutter-0.9`

      Cos'altro manca per compilare quello che ho postato in questo thraed?
      • Avatar
        Scritto da
        Non Autenticato
        il 2009-11-25 08:42:00.0 alle 2009-11-25 08:42:00.0
        Re: PROGRAMMATORI! Clutter Aiuto!

        - Scritto da:
        > up
        >
        > Ho provato che per il primo esempio che avevano
        > messo andava
        > bene:
        > gcc -Wall \
        >         `pkg-config --cflags clutter-0.9` \
        >         -o your-app main.c \
        >         `pkg-config --libs clutter-0.9`
        >
        > Cos'altro manca per compilare quello che ho
        > postato in questo
        > thraed?

        e che errore ti da? Newbie, inesperto
        • Avatar
          Scritto da
          Non Autenticato
          il 2009-11-25 08:47:00.0 alle 2009-11-25 08:47:00.0
          Re: PROGRAMMATORI! Clutter Aiuto!

          - Scritto da:
          >
          > - Scritto da:
          > > up
          > >
          > > Ho provato che per il primo esempio che avevano
          > > messo andava
          > > bene:
          > > gcc -Wall \
          > >         `pkg-config --cflags clutter-0.9` \
          > >         -o your-app main.c \
          > >         `pkg-config --libs clutter-0.9`
          > >
          > > Cos'altro manca per compilare quello che ho
          > > postato in questo
          > > thraed?
          >
          > e che errore ti da? Newbie, inesperto

          Tutto quanto non ci sta, metto la parte iniziale:
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘GSEAL’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘GSEAL’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91: error: duplicate member ‘({anonymous})’
          In file included from /usr/include/gtk-2.0/gtk/gtk.h:182,
                           from main2.c:1:
          /usr/include/gtk-2.0/gtk/gtktextview.h:72: warning: parameter names (without types) in function declaration
          /usr/include/gtk-2.0/gtk/gtktextview.h:72: error: field ‘GSEAL’ declared as a function

          e quella finale:

          /usr/include/gtk-2.0/gtk/gtktreestore.h:60: error: duplicate member ‘GSEAL’
          /usr/include/gtk-2.0/gtk/gtktreestore.h:61: error: duplicate member ‘GSEAL’
          In file included from /usr/include/gtk-2.0/gtk/gtk.h:202,
                           from main2.c:1:
          /usr/include/gtk-2.0/gtk/gtkuimanager.h:62: warning: parameter names (without types) in function declaration
          /usr/include/gtk-2.0/gtk/gtkuimanager.h:62: error: field ‘GSEAL’ declared as a function
          main2.c:3:43: error: clutter-gtk/gtk-clutter-embed.h: No such file or directory
          main2.c: In function ‘main’:
          main2.c:63: warning: implicit declaration of function ‘gtk_clutter_embed_new’
          main2.c:63: warning: initialization makes pointer from integer without a cast
          main2.c:73: warning: implicit declaration of function ‘gtk_clutter_embed_get_stage’
          main2.c:73: warning: implicit declaration of function ‘GTK_CLUTTER_EMBED’
          main2.c:73: warning: assignment makes pointer from integer without a cast
          • Avatar
            Scritto da
            Non Autenticato
            il 2009-11-25 08:57:00.0 alle 2009-11-25 08:57:00.0
            Re: PROGRAMMATORI! Clutter Aiuto!

            - Scritto da:
            >
            > - Scritto da:
            > >
            > > - Scritto da:
            > > > up
            > > >
            > > > Ho provato che per il primo esempio che
            > avevano
            > > > messo andava
            > > > bene:
            > > > gcc -Wall \
            > > >         `pkg-config --cflags clutter-0.9` \
            > > >         -o your-app main.c \
            > > >         `pkg-config --libs clutter-0.9`
            > > >
            > > > Cos'altro manca per compilare quello che ho
            > > > postato in questo
            > > > thraed?
            > >
            > > e che errore ti da? Newbie, inesperto
            >
            > Tutto quanto non ci sta, metto la parte iniziale:
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘GSEAL’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘GSEAL’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
            > error: duplicate member
            > ‘({anonymous})’
            > In file included from
            > /usr/include/gtk-2.0/gtk/gtk.h:182,
            >                 from main2.c:1:
            > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
            > warning: parameter names (without types) in
            > function
            > declaration
            > /usr/include/gtk-2.0/gtk/gtktextview.h:72: error:
            > field ‘GSEAL’ declared as a
            > function
            >
            > e quella finale:
            >
            > /usr/include/gtk-2.0/gtk/gtktreestore.h:60:
            > error: duplicate member
            > ‘GSEAL’
            > /usr/include/gtk-2.0/gtk/gtktreestore.h:61:
            > error: duplicate member
            > ‘GSEAL’
            > In file included from
            > /usr/include/gtk-2.0/gtk/gtk.h:202,
            >                 from main2.c:1:
            > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
            > warning: parameter names (without types) in
            > function
            > declaration
            > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
            > error: field ‘GSEAL’ declared as a
            > function
            > main2.c:3:43: error:
            > clutter-gtk/gtk-clutter-embed.h: No such file or
            > directory

            > main2.c: In function ‘main’:
            > main2.c:63: warning: implicit declaration of
            > function
            > ‘gtk_clutter_embed_new’
            > main2.c:63: warning: initialization makes pointer
            > from integer without a
            > cast
            > main2.c:73: warning: implicit declaration of
            > function
            > ‘gtk_clutter_embed_get_stage’
            > main2.c:73: warning: implicit declaration of
            > function
            > ‘GTK_CLUTTER_EMBED’
            > main2.c:73: warning: assignment makes pointer
            > from integer without a
            > cast

            mancano alcuni header (proprio quelli di clutter) e forse (ma non ne sono certo) hai bisogno di librerie gtk specifiche (magari più aggiornate, non so)
            • Avatar
              Scritto da
              Non Autenticato
              il 2009-11-25 09:07:00.0 alle 2009-11-25 09:07:00.0
              Re: PROGRAMMATORI! Clutter Aiuto!

              - Scritto da:
              >
              > - Scritto da:
              > >
              > > - Scritto da:
              > > >
              > > > - Scritto da:
              > > > > up
              > > > >
              > > > > Ho provato che per il primo esempio che
              > > avevano
              > > > > messo andava
              > > > > bene:
              > > > > gcc -Wall \
              > > > >         `pkg-config --cflags clutter-0.9` \
              > > > >         -o your-app main.c \
              > > > >         `pkg-config --libs clutter-0.9`
              > > > >
              > > > > Cos'altro manca per compilare quello che ho
              > > > > postato in questo
              > > > > thraed?
              > > >
              > > > e che errore ti da? Newbie, inesperto
              > >
              > > Tutto quanto non ci sta, metto la parte
              > iniziale:
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘GSEAL’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘GSEAL’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
              > > error: duplicate member
              > > ‘({anonymous})’
              > > In file included from
              > > /usr/include/gtk-2.0/gtk/gtk.h:182,
              > >                 from main2.c:1:
              > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
              > > warning: parameter names (without types) in
              > > function
              > > declaration
              > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
              > error:
              > > field ‘GSEAL’ declared as a
              > > function
              > >
              > > e quella finale:
              > >
              > > /usr/include/gtk-2.0/gtk/gtktreestore.h:60:
              > > error: duplicate member
              > > ‘GSEAL’
              > > /usr/include/gtk-2.0/gtk/gtktreestore.h:61:
              > > error: duplicate member
              > > ‘GSEAL’
              > > In file included from
              > > /usr/include/gtk-2.0/gtk/gtk.h:202,
              > >                 from main2.c:1:
              > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
              > > warning: parameter names (without types) in
              > > function
              > > declaration
              > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
              > > error: field ‘GSEAL’ declared as a
              > > function
              > > main2.c:3:43: error:
              > > clutter-gtk/gtk-clutter-embed.h: No such
              > file
              > or
              > > directory
              > > main2.c: In function ‘main’:
              > > main2.c:63: warning: implicit declaration of
              > > function
              > > ‘gtk_clutter_embed_new’
              > > main2.c:63: warning: initialization makes
              > pointer
              > > from integer without a
              > > cast
              > > main2.c:73: warning: implicit declaration of
              > > function
              > > ‘gtk_clutter_embed_get_stage’
              > > main2.c:73: warning: implicit declaration of
              > > function
              > > ‘GTK_CLUTTER_EMBED’
              > > main2.c:73: warning: assignment makes pointer
              > > from integer without a
              > > cast
              >
              > mancano alcuni header (proprio quelli di clutter)
              > e forse (ma non ne sono certo) hai bisogno di
              > librerie gtk specifiche (magari più aggiornate,
              > non
              > so)

              Mancava libclutter-gtk-0.8.dev lo 0.9 non lo vedo anche se c'è clutter 0.9
              Quindi poi ho dovuto dare:
              gcc -Wall -g `pkg-config clutter-0.8 clutter-gtk-0.8 --cflags --libs` main.c -o your-app
              e funziona!!!!!!!!!!
              • Avatar
                Scritto da
                Non Autenticato
                il 2009-11-25 09:08:00.0 alle 2009-11-25 09:08:00.0
                Re: PROGRAMMATORI! Clutter Aiuto!

                - Scritto da:
                >
                > - Scritto da:
                > >
                > > - Scritto da:
                > > >
                > > > - Scritto da:
                > > > >
                > > > > - Scritto da:
                > > > > > up
                > > > > >
                > > > > > Ho provato che per il primo esempio che
                > > > avevano
                > > > > > messo andava
                > > > > > bene:
                > > > > > gcc -Wall \
                > > > > >         `pkg-config --cflags clutter-0.9`
                > \
                > > > > >         -o your-app main.c \
                > > > > >         `pkg-config --libs clutter-0.9`
                > > > > >
                > > > > > Cos'altro manca per compilare quello che
                > ho
                > > > > > postato in questo
                > > > > > thraed?
                > > > >
                > > > > e che errore ti da? Newbie, inesperto
                > > >
                > > > Tutto quanto non ci sta, metto la parte
                > > iniziale:
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘GSEAL’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘GSEAL’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                > > > error: duplicate member
                > > > ‘({anonymous})’
                > > > In file included from
                > > > /usr/include/gtk-2.0/gtk/gtk.h:182,
                > > >                 from main2.c:1:
                > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                > > > warning: parameter names (without types) in
                > > > function
                > > > declaration
                > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                > > error:
                > > > field ‘GSEAL’ declared as a
                > > > function
                > > >
                > > > e quella finale:
                > > >
                > > > /usr/include/gtk-2.0/gtk/gtktreestore.h:60:
                > > > error: duplicate member
                > > > ‘GSEAL’
                > > > /usr/include/gtk-2.0/gtk/gtktreestore.h:61:
                > > > error: duplicate member
                > > > ‘GSEAL’
                > > > In file included from
                > > > /usr/include/gtk-2.0/gtk/gtk.h:202,
                > > >                 from main2.c:1:
                > > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                > > > warning: parameter names (without types) in
                > > > function
                > > > declaration
                > > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                > > > error: field ‘GSEAL’ declared as a
                > > > function
                > > > main2.c:3:43: error:
                > > > clutter-gtk/gtk-clutter-embed.h: No such
                > > file
                > > or
                > > > directory
                > > > main2.c: In function ‘main’:
                > > > main2.c:63: warning: implicit declaration of
                > > > function
                > > > ‘gtk_clutter_embed_new’
                > > > main2.c:63: warning: initialization makes
                > > pointer
                > > > from integer without a
                > > > cast
                > > > main2.c:73: warning: implicit declaration of
                > > > function
                > > > ‘gtk_clutter_embed_get_stage’
                > > > main2.c:73: warning: implicit declaration of
                > > > function
                > > > ‘GTK_CLUTTER_EMBED’
                > > > main2.c:73: warning: assignment makes pointer
                > > > from integer without a
                > > > cast
                > >
                > > mancano alcuni header (proprio quelli di
                > clutter)
                > > e forse (ma non ne sono certo) hai bisogno di
                > > librerie gtk specifiche (magari più aggiornate,
                > > non
                > > so)
                >
                > Mancava libclutter-gtk-0.8.dev lo 0.9 non lo vedo
                > anche se c'è clutter
                > 0.9
                > Quindi poi ho dovuto dare:
                > gcc -Wall -g `pkg-config clutter-0.8
                > clutter-gtk-0.8 --cflags --libs` main.c -o
                > your-app
                > e funziona!!!!!!!!!!

                prego amico A bocca aperta
                • Avatar
                  Scritto da
                  Non Autenticato
                  il 2009-11-25 09:11:00.0 alle 2009-11-25 09:11:00.0
                  Re: PROGRAMMATORI! Clutter Aiuto!

                  - Scritto da:
                  >
                  > - Scritto da:
                  > >
                  > > - Scritto da:
                  > > >
                  > > > - Scritto da:
                  > > > >
                  > > > > - Scritto da:
                  > > > > >
                  > > > > > - Scritto da:
                  > > > > > > up
                  > > > > > >
                  > > > > > > Ho provato che per il primo esempio che
                  > > > > avevano
                  > > > > > > messo andava
                  > > > > > > bene:
                  > > > > > > gcc -Wall \
                  > > > > > >         `pkg-config --cflags
                  > clutter-0.9`
                  > > \
                  > > > > > >         -o your-app main.c \
                  > > > > > >         `pkg-config --libs clutter-0.9`
                  > > > > > >
                  > > > > > > Cos'altro manca per compilare quello che
                  > > ho
                  > > > > > > postato in questo
                  > > > > > > thraed?
                  > > > > >
                  > > > > > e che errore ti da? Newbie, inesperto
                  > > > >
                  > > > > Tutto quanto non ci sta, metto la parte
                  > > > iniziale:
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘GSEAL’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘GSEAL’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                  > > > > error: duplicate member
                  > > > > ‘({anonymous})’
                  > > > > In file included from
                  > > > > /usr/include/gtk-2.0/gtk/gtk.h:182,
                  > > > >                 from main2.c:1:
                  > > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                  > > > > warning: parameter names (without types) in
                  > > > > function
                  > > > > declaration
                  > > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                  > > > error:
                  > > > > field ‘GSEAL’ declared as a
                  > > > > function
                  > > > >
                  > > > > e quella finale:
                  > > > >
                  > > > > /usr/include/gtk-2.0/gtk/gtktreestore.h:60:
                  > > > > error: duplicate member
                  > > > > ‘GSEAL’
                  > > > > /usr/include/gtk-2.0/gtk/gtktreestore.h:61:
                  > > > > error: duplicate member
                  > > > > ‘GSEAL’
                  > > > > In file included from
                  > > > > /usr/include/gtk-2.0/gtk/gtk.h:202,
                  > > > >                 from main2.c:1:
                  > > > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                  > > > > warning: parameter names (without types) in
                  > > > > function
                  > > > > declaration
                  > > > > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                  > > > > error: field ‘GSEAL’ declared as a
                  > > > > function
                  > > > > main2.c:3:43: error:
                  > > > > clutter-gtk/gtk-clutter-embed.h: No such
                  > > > file
                  > > > or
                  > > > > directory
                  > > > > main2.c: In function ‘main’:
                  > > > > main2.c:63: warning: implicit declaration of
                  > > > > function
                  > > > > ‘gtk_clutter_embed_new’
                  > > > > main2.c:63: warning: initialization makes
                  > > > pointer
                  > > > > from integer without a
                  > > > > cast
                  > > > > main2.c:73: warning: implicit declaration of
                  > > > > function
                  > > > > ‘gtk_clutter_embed_get_stage’
                  > > > > main2.c:73: warning: implicit declaration of
                  > > > > function
                  > > > > ‘GTK_CLUTTER_EMBED’
                  > > > > main2.c:73: warning: assignment makes
                  > pointer
                  > > > > from integer without a
                  > > > > cast
                  > > >
                  > > > mancano alcuni header (proprio quelli di
                  > > clutter)
                  > > > e forse (ma non ne sono certo) hai bisogno di
                  > > > librerie gtk specifiche (magari più
                  > aggiornate,
                  > > > non
                  > > > so)
                  > >
                  > > Mancava libclutter-gtk-0.8.dev lo 0.9 non lo
                  > vedo
                  > > anche se c'è clutter
                  > > 0.9
                  > > Quindi poi ho dovuto dare:
                  > > gcc -Wall -g `pkg-config clutter-0.8
                  > > clutter-gtk-0.8 --cflags --libs` main.c -o
                  > > your-app
                  > > e funziona!!!!!!!!!!
                  >
                  > prego amico A bocca aperta

                  Grazie Sorride

                  Se lo mettessero negli esempi come si compila sta roba, incrementerebbero il numero di sviluppatori
                  • Avatar
                    ☺
                    Scritto da
                    il 2009-11-25 09:40:00.0 alle 2009-11-25 09:40:00.0
                    Trollate totali: 3068
                    Re: PROGRAMMATORI! Clutter Aiuto!

                    - Scritto da:
                    >
                    > - Scritto da:
                    > >
                    > > - Scritto da:
                    > > >
                    > > > - Scritto da:
                    > > > >
                    > > > > - Scritto da:
                    > > > > >
                    > > > > > - Scritto da:
                    > > > > > >
                    > > > > > > - Scritto da:
                    > > > > > > > up
                    > > > > > > >
                    > > > > > > > Ho provato che per il primo esempio
                    > che
                    > > > > > avevano
                    > > > > > > > messo andava
                    > > > > > > > bene:
                    > > > > > > > gcc -Wall \
                    > > > > > > >         `pkg-config --cflags
                    > > clutter-0.9`
                    > > > \
                    > > > > > > >         -o your-app main.c \
                    > > > > > > >         `pkg-config --libs
                    > clutter-0.9`
                    > > > > > > >
                    > > > > > > > Cos'altro manca per compilare quello
                    > che
                    > > > ho
                    > > > > > > > postato in questo
                    > > > > > > > thraed?
                    > > > > > >
                    > > > > > > e che errore ti da? Newbie, inesperto
                    > > > > >
                    > > > > > Tutto quanto non ci sta, metto la parte
                    > > > > iniziale:
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:86:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘GSEAL’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:89:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘GSEAL’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktextbuffer.h:91:
                    > > > > > error: duplicate member
                    > > > > > ‘({anonymous})’
                    > > > > > In file included from
                    > > > > > /usr/include/gtk-2.0/gtk/gtk.h:182,
                    > > > > >                 from main2.c:1:
                    > > > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                    > > > > > warning: parameter names (without types)
                    > in
                    > > > > > function
                    > > > > > declaration
                    > > > > > /usr/include/gtk-2.0/gtk/gtktextview.h:72:
                    > > > > error:
                    > > > > > field ‘GSEAL’ declared as a
                    > > > > > function
                    > > > > >
                    > > > > > e quella finale:
                    > > > > >
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktreestore.h:60:
                    > > > > > error: duplicate member
                    > > > > > ‘GSEAL’
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtktreestore.h:61:
                    > > > > > error: duplicate member
                    > > > > > ‘GSEAL’
                    > > > > > In file included from
                    > > > > > /usr/include/gtk-2.0/gtk/gtk.h:202,
                    > > > > >                 from main2.c:1:
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                    > > > > > warning: parameter names (without types)
                    > in
                    > > > > > function
                    > > > > > declaration
                    > > > > >
                    > /usr/include/gtk-2.0/gtk/gtkuimanager.h:62:
                    > > > > > error: field ‘GSEAL’ declared as a
                    > > > > > function
                    > > > > > main2.c:3:43: error:
                    > > > > > clutter-gtk/gtk-clutter-embed.h: No
                    > such
                    > > > > file
                    > > > > or
                    > > > > > directory
                    > > > > > main2.c: In function ‘main’:
                    > > > > > main2.c:63: warning: implicit declaration
                    > of
                    > > > > > function
                    > > > > > ‘gtk_clutter_embed_new’
                    > > > > > main2.c:63: warning: initialization makes
                    > > > > pointer
                    > > > > > from integer without a
                    > > > > > cast
                    > > > > > main2.c:73: warning: implicit declaration
                    > of
                    > > > > > function
                    > > > > > ‘gtk_clutter_embed_get_stage’
                    > > > > > main2.c:73: warning: implicit declaration
                    > of
                    > > > > > function
                    > > > > > ‘GTK_CLUTTER_EMBED’
                    > > > > > main2.c:73: warning: assignment makes
                    > > pointer
                    > > > > > from integer without a
                    > > > > > cast
                    > > > >
                    > > > > mancano alcuni header (proprio quelli di
                    > > > clutter)
                    > > > > e forse (ma non ne sono certo) hai bisogno
                    > di
                    > > > > librerie gtk specifiche (magari più
                    > > aggiornate,
                    > > > > non
                    > > > > so)
                    > > >
                    > > > Mancava libclutter-gtk-0.8.dev lo 0.9 non lo
                    > > vedo
                    > > > anche se c'è clutter
                    > > > 0.9
                    > > > Quindi poi ho dovuto dare:
                    > > > gcc -Wall -g `pkg-config clutter-0.8
                    > > > clutter-gtk-0.8 --cflags --libs` main.c -o
                    > > > your-app
                    > > > e funziona!!!!!!!!!!
                    > >
                    > > prego amico A bocca aperta
                    >
                    > Grazie Sorride
                    >
                    > Se lo mettessero negli esempi come si compila sta
                    > roba, incrementerebbero il numero di
                    > sviluppatori

                    Dio cristo ma l'arabo è più semplice di sti linguaggi Deluso
                    Ma come fate a capire? Ma come siete nati? Con quale cervello? Sorpresa
                    • Avatar
                      ☺
                      Scritto da
                      il 2009-11-25 09:45:00.0 alle 2009-11-25 09:45:00.0
                      Trollate totali: 42885
                      Re: PROGRAMMATORI! Clutter Aiuto!

                      - Scritto da: dfsxsfd

                      > Dio cristo ma l'arabo è più semplice di sti
                      > linguaggi
                      > Deluso

                      Hola, bestemmiona Sorride !
                      Questi linguaggi sono logici, sono molto piu' semplici di linguaggi "umani" Sorride

                      > Ma come fate a capire? Ma come siete nati? Con
                      > quale cervello?

                      Il mio superiore, inscatolato in un corpo divino Ficoso
                      Seriamente: Basta studiare Occhiolino !
                      `"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
                      • Avatar
                        ☺
                        Scritto da
                        il 2009-11-25 09:50:00.0 alle 2009-11-25 09:50:00.0
                        Trollate totali: 3068
                        Re: PROGRAMMATORI! Clutter Aiuto!

                        - Scritto da: Giambo

                        Hola, bestemmiona Sorride !

                        Non è una bestemmia.

                        > Questi linguaggi sono logici, sono molto piu'
                        > semplici di linguaggi "umani"
                        > Sorride

                        Maaa se lo dici tu.

                        > Il mio superiore, inscatolato in un corpo divino
                        > Ficoso

                        Affascinante A bocca aperta

                        > Seriamente: Basta studiare Occhiolino !

                        Maa se lo dici tu, per me è una caratteristica personale.
                        • Avatar
                          ☺
                          Scritto da
                          il 2009-11-25 09:54:00.0 alle 2009-11-25 09:54:00.0
                          Trollate totali: 42885
                          Re: PROGRAMMATORI! Clutter Aiuto!

                          - Scritto da: dfsxsfd

                          >> Hola, bestemmiona Sorride !
                          >
                          > Non è una bestemmia.

                          E' "pronunciare il nome di Dio invano", il mio amico Benedetto XVI direbbe che brucerai per l'eternita' sulla graticola infernale A bocca storta

                          > > Questi linguaggi sono logici, sono molto piu'
                          > > semplici di linguaggi "umani"
                          > > Sorride
                          >
                          > Maaa se lo dici tu.

                          Fidati di Giambo, e' una brava persona Occhiolino

                          > > Il mio superiore, inscatolato in un corpo divino
                          > > Ficoso
                          >
                          > Affascinante A bocca aperta

                          Si, decisamente Ficoso

                          > > Seriamente: Basta studiare Occhiolino !
                          >
                          > Maa se lo dici tu, per me è una caratteristica
                          > personale.

                          Si, infatti poche donne studiano informatica.
                          Deve avere qualcosa a che fare con il modo nel quale il cervello maschile e quello femminile si e' evoluto ...
                          `"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
                          • Avatar
                            ☺
                            Scritto da
                            il 2009-11-25 09:58:00.0 alle 2009-11-25 09:58:00.0
                            Trollate totali: 3068
                            Re: PROGRAMMATORI! Clutter Aiuto!

                            - Scritto da: Giambo
                            > E' "pronunciare il nome di Dio invano", il mio
                            > amico Benedetto XVI direbbe che brucerai per
                            > l'eternita' sulla graticola infernale
                            > A bocca storta


                            Noooo. Deluso
                            Mi è caduto un mito... tu che sei amico del papa nazinger In lacrime

                            > Fidati di Giambo, e' una brava persona Occhiolino
                            Annoiato

                            > Si, decisamente Ficoso

                            Dicevo in generale, tu non so non ti ho mai visto.
                            Affascinante per me è tutto ciò che non conosco ma che in qualche modo mi incuriosisce.

                            > Si, infatti poche donne studiano informatica.
                            > Deve avere qualcosa a che fare con il modo nel
                            > quale il cervello maschile e quello femminile si
                            > e' evoluto
                            > ...

                            Non so anche se è vero che siete un pò strambi.
                            • Avatar
                              ☺
                              Scritto da
                              il 2009-11-25 10:00:00.0 alle 2009-11-25 10:00:00.0
                              Trollate totali: 42885
                              Re: PROGRAMMATORI! Clutter Aiuto!

                              - Scritto da: dfsxsfd

                              > > E' "pronunciare il nome di Dio invano", il mio
                              > > amico Benedetto XVI direbbe che brucerai per
                              > > l'eternita' sulla graticola infernale
                              > > A bocca storta
                              >
                              > Noooo. Deluso
                              > Mi è caduto un mito... tu che sei amico del papa
                              > nazinger
                              > In lacrime

                              Piu' che amici, qui dentro direi che siamo quasi una persona sola Ficoso !

                              > > Si, decisamente Ficoso
                              >
                              > Dicevo in generale, tu non so non ti ho mai visto.

                              Ah, ecco ora mi spiego perche' ancora non mi fai una corte spietata A bocca storta ... Ficoso Con la lingua fuori !

                              > > Si, infatti poche donne studiano informatica.
                              > > Deve avere qualcosa a che fare con il modo nel
                              > > quale il cervello maschile e quello femminile si
                              > > e' evoluto
                              > > ...
                              >
                              > Non so anche se è vero che siete un pò strambi.

                              Chiedi a Fata, che mi conosce "bene" ... Sono una persona generosa, allegra e timida. Una persona normale, nella norma Occhiolino !
                              Cioe', non sono strambo come Achille o il Sassofono, per intenderci A bocca storta
                              `"la realta' non e' cosi' terrificante come vogliono farti credere" - Giambo ` - Wakko che cita Giambo
<softv>

Pagina generata in 124 millisecondi

Utenti attivi: 12 nell'ultimo minuto, 27 negli ultimi cinque minuti, 56 negli ultimi 15 minuti