Mostra notizie nelle discussioni
  • Avatar
    Scritto da
    Non Autenticato
    il 2009-11-25 12:44:00.0 alle 2009-11-25 12:44:00.0
    Clutter - Parte Seconda
    Tutti gli esempio sono andati per il verso giusto, ma prima o poi qualcosa doveva succedere. Ho googlato in lungo e in largo, ma non ci arrivo.

    Quando compilo:
    gcc -Wall -g `pkg-config clutter-0.8 clutter-gtk-0.8 --cflags --libs` main10.c -o main10


    mi dà questo, eppure libgdkpixbuf2 e libgdk-pixbuf2-dev sono installati:

    main10.c: In function ‘scale_texture_default’:
    main10.c:52: error: ‘GdkPixbuf’ undeclared (first use in this function)
    main10.c:52: error: (Each undeclared identifier is reported only once
    main10.c:52: error: for each function it appears in.)
    main10.c:52: error: ‘pixbuf’ undeclared (first use in this function)
    main10.c:52: warning: implicit declaration of function ‘clutter_texture_get_pixbuf’
    main10.c:55: warning: implicit declaration of function ‘gdk_pixbuf_get_height’
    main10.c: In function ‘load_images’:
    main10.c:87: error: ‘GdkPixbuf’ undeclared (first use in this function)
    main10.c:87: error: ‘pixbuf’ undeclared (first use in this function)
    main10.c:87: warning: implicit declaration of function ‘gdk_pixbuf_new_from_file’
    main10.c:93: warning: implicit declaration of function ‘clutter_texture_new_from_pixbuf_DEPRECATED_BY
    _clutter_texture_new_from_file_OR_clutter_texture_new_
    AND_clutter_texture_set_from_rgb_data’
    main10.c:93: warning: assignment makes pointer from integer without a cast
    • Avatar
      Scritto da
      Non Autenticato
      il 2009-11-25 13:27:00.0 alle 2009-11-25 13:27:00.0
      Re: Clutter - Parte Seconda

      - Scritto da:
      > Tutti gli esempio sono andati per il verso
      > giusto, ma prima o poi qualcosa doveva succedere.
      > Ho googlato in lungo e in largo, ma non ci
      > arrivo.
      >
      > Quando compilo:
      > gcc -Wall -g `pkg-config clutter-0.8
      > clutter-gtk-0.8 --cflags --libs` main10.c -o
      > main10
      >
      >
      > mi dà questo, eppure libgdkpixbuf2 e
      > libgdk-pixbuf2-dev sono installati:
      >
      >
      > main10.c: In function ‘scale_texture_default’:
      > main10.c:52: error: ‘GdkPixbuf’ undeclared (first
      > use in this
      > function)
      > main10.c:52: error: (Each undeclared identifier
      > is reported only
      > once
      > main10.c:52: error: for each function it appears
      > in.)
      > main10.c:52: error: ‘pixbuf’ undeclared (first
      > use in this
      > function)
      > main10.c:52: warning: implicit declaration of
      > function
      > ‘clutter_texture_get_pixbuf’
      > main10.c:55: warning: implicit declaration of
      > function
      > ‘gdk_pixbuf_get_height’
      > main10.c: In function ‘load_images’:
      > main10.c:87: error: ‘GdkPixbuf’ undeclared (first
      > use in this
      > function)
      > main10.c:87: error: ‘pixbuf’ undeclared (first
      > use in this
      > function)
      > main10.c:87: warning: implicit declaration of
      > function
      > ‘gdk_pixbuf_new_from_file’
      > main10.c:93: warning: implicit declaration of
      > function
      > ‘clutter_texture_new_from_pixbuf_DEPRECATED_BY
      > _clutter_texture_new_from_file_OR_clutter_texture_
      > AND_clutter_texture_set_from_rgb_data’
      > main10.c:93: warning: assignment makes pointer
      > from integer without a
      > cast

      ti sei dimenticato un #include ?
      • Avatar
        Scritto da
        Non Autenticato
        il 2009-11-25 13:28:00.0 alle 2009-11-25 13:28:00.0
        Re: Clutter - Parte Seconda

        - Scritto da:
        >
        > - Scritto da:
        > > Tutti gli esempio sono andati per il verso
        > > giusto, ma prima o poi qualcosa doveva
        > succedere.
        > > Ho googlato in lungo e in largo, ma non ci
        > > arrivo.
        > >
        > > Quando compilo:
        > > gcc -Wall -g `pkg-config clutter-0.8
        > > clutter-gtk-0.8 --cflags --libs` main10.c -o
        > > main10
        > >
        > >
        > > mi dà questo, eppure libgdkpixbuf2 e
        > > libgdk-pixbuf2-dev sono installati:
        > >
        > >
        > > main10.c: In function ‘scale_texture_default’:
        > > main10.c:52: error: ‘GdkPixbuf’ undeclared
        > (first
        > > use in this
        > > function)
        > > main10.c:52: error: (Each undeclared identifier
        > > is reported only
        > > once
        > > main10.c:52: error: for each function it appears
        > > in.)
        > > main10.c:52: error: ‘pixbuf’ undeclared (first
        > > use in this
        > > function)
        > > main10.c:52: warning: implicit declaration of
        > > function
        > > ‘clutter_texture_get_pixbuf’
        > > main10.c:55: warning: implicit declaration of
        > > function
        > > ‘gdk_pixbuf_get_height’
        > > main10.c: In function ‘load_images’:
        > > main10.c:87: error: ‘GdkPixbuf’ undeclared
        > (first
        > > use in this
        > > function)
        > > main10.c:87: error: ‘pixbuf’ undeclared (first
        > > use in this
        > > function)
        > > main10.c:87: warning: implicit declaration of
        > > function
        > > ‘gdk_pixbuf_new_from_file’
        > > main10.c:93: warning: implicit declaration of
        > > function
        > > ‘clutter_texture_new_from_pixbuf_DEPRECATED_BY
        > >
        > _clutter_texture_new_from_file_OR_clutter_texture_
        > > AND_clutter_texture_set_from_rgb_data’
        > > main10.c:93: warning: assignment makes pointer
        > > from integer without a
        > > cast
        >
        > ti sei dimenticato un #include ?

        Io ho messo quello che c'è nell'esempio:
        http://www.openismus.com/documents/clutter_tutoria...
        • Avatar
          Scritto da
          Non Autenticato
          il 2009-11-25 13:33:00.0 alle 2009-11-25 13:33:00.0
          Re: Clutter - Parte Seconda

          - Scritto da:
          >
          > - Scritto da:
          > >
          > > - Scritto da:
          > > > Tutti gli esempio sono andati per il verso
          > > > giusto, ma prima o poi qualcosa doveva
          > > succedere.
          > > > Ho googlato in lungo e in largo, ma non ci
          > > > arrivo.
          > > >
          > > > Quando compilo:
          > > > gcc -Wall -g `pkg-config clutter-0.8
          > > > clutter-gtk-0.8 --cflags --libs` main10.c -o
          > > > main10
          > > >
          > > >
          > > > mi dà questo, eppure libgdkpixbuf2 e
          > > > libgdk-pixbuf2-dev sono installati:
          > > >
          > > >
          > > > main10.c: In function ‘scale_texture_default’:
          > > > main10.c:52: error: ‘GdkPixbuf’ undeclared
          > > (first
          > > > use in this
          > > > function)
          > > > main10.c:52: error: (Each undeclared
          > identifier
          > > > is reported only
          > > > once
          > > > main10.c:52: error: for each function it
          > appears
          > > > in.)
          > > > main10.c:52: error: ‘pixbuf’ undeclared (first
          > > > use in this
          > > > function)
          > > > main10.c:52: warning: implicit declaration of
          > > > function
          > > > ‘clutter_texture_get_pixbuf’
          > > > main10.c:55: warning: implicit declaration of
          > > > function
          > > > ‘gdk_pixbuf_get_height’
          > > > main10.c: In function ‘load_images’:
          > > > main10.c:87: error: ‘GdkPixbuf’ undeclared
          > > (first
          > > > use in this
          > > > function)
          > > > main10.c:87: error: ‘pixbuf’ undeclared (first
          > > > use in this
          > > > function)
          > > > main10.c:87: warning: implicit declaration of
          > > > function
          > > > ‘gdk_pixbuf_new_from_file’
          > > > main10.c:93: warning: implicit declaration of
          > > > function
          > > > ‘clutter_texture_new_from_pixbuf_DEPRECATED_BY
          > > >
          > >
          > _clutter_texture_new_from_file_OR_clutter_texture_
          > > > AND_clutter_texture_set_from_rgb_data’
          > > > main10.c:93: warning: assignment makes pointer
          > > > from integer without a
          > > > cast
          > >
          > > ti sei dimenticato un #include ?
          >
          > Io ho messo quello che c'è nell'esempio:
          > http://www.openismus.com/documents/clutter_tutoria

          si ma vedi questo errore ad esempio

          main10.c:52: warning: implicit declaration of
          function ‘clutter_texture_get_pixbuf’

          significa che non trova la dichiarazione della funzione, che presumo sia in qualche header di clutter che non è stato #incluso
<softv>

Pagina generata in 21 millisecondi

Utenti attivi: 25 nell'ultimo minuto, 70 negli ultimi cinque minuti, 120 negli ultimi 15 minuti