Hello,

you're doing C++ ! Let me fix something, I will re-mail you once it's ok.

Rno

On Fri, Apr 10, 2009 at 11:03 AM, Liborio Nemorini <[email protected]> wrote:
> Hi Rno,
>
> I tried to compile using all the include path and the libs listed by
> pkg-config as you suggested to me, but I still have the same error. This is
> the source code I'm trying to compile:
>
>
>
> //---------------------------------------------------
> #include <clutter/clutter.h>
> #include <clutter-vlc.h>
>
> static ClutterColor color_light_blue = { 0xaa, 0xaa, 0xff, 0xff };
>
> int
>         main(int ac, char** av)
> {
>     ClutterActor* stage;
>     ClutterActor* texture;
>
>     clutter_init(&ac, &av);
>   clutter_vlc_init();
>
>     stage = clutter_stage_get_default();
>     clutter_stage_set_color(CLUTTER_STAGE(stage), &color_light_blue);
>
>     texture = clutter_vlc_video_texture_new();
>     clutter_media_set_uri(CLUTTER_MEDIA(texture),
> "/home/alex/Videos/w.avi");
>     clutter_media_set_playing(CLUTTER_MEDIA(texture), TRUE);
>
>     clutter_actor_set_size(texture, 320, 240);
>     clutter_actor_set_position(texture,
>                                clutter_actor_get_width(stage) / 2 -
> clutter_actor_get_width(texture) / 2,
>                                        clutter_actor_get_height(stage) / 2 -
> clutter_actor_get_height(texture) / 2);
>
>     clutter_container_add_actor(CLUTTER_CONTAINER(stage), texture);
>
>     clutter_actor_show(stage);
>
>     clutter_main();
>
>   clutter_vlc_cleanup();
>
>     return 0;
> }
> //---------------------------------------------------
>
> and this is what I get from the compiler:
>
> cd '/home/alex/development/test/cluttervlc/debug' && WANT_AUTOCONF_2_5="1"
> WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" make -k
> make all-recursive
> Making all in src
> g++ -DHAVE_CONFIG_H -I. -I/home/alex/development/test/cluttervlc/src -I..
> -I/usr/local/include/clutter-0.9/clutter-vlc/ -I/usr/include/libpng12
> -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/cairo
> -I/usr/include/gtk-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0
> -I/usr/include/pango-1.0 -I/usr/include/clutter-0.8 -I/usr/local/include -O0
> -g3 -MT cluttervlc.o -MD -MP -MF .deps/cluttervlc.Tpo -c -o cluttervlc.o
> /home/alex/development/test/cluttervlc/src/cluttervlc.cpp
> mv -f .deps/cluttervlc.Tpo .deps/cluttervlc.Po
> /bin/bash ../libtool --tag=CXX --mode=link g++ -O0 -g3 -o cluttervlc
> cluttervlc.o -lclutter-vlc-0.8 -lclutter-glx-0.8 -lvlc -lpangocairo-1.0
> -lgthread-2.0 -lrt -lgdk_pixbuf_xlib-2.0 -lpango-1.0 -lcairo
> -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
> g++ -O0 -g3 -o cluttervlc cluttervlc.o /usr/local/lib/libclutter-vlc-0.8.so
> /usr//lib/libclutter-glx-0.8.so /usr/local/lib/libvlc.so
> /usr/lib/libpangocairo-1.0.so /usr/lib/libgthread-2.0.so -lrt
> /usr/lib/libgdk_pixbuf_xlib-2.0.so /usr/lib/libpango-1.0.so
> /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so -lm
> /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0..so
> /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr//lib -Wl,--rpath -Wl,/usr//lib
> cluttervlc.o: In function `main':
> /home/alex/development/test/cluttervlc/src/cluttervlc.cpp:16: undefined
> reference to `clutter_vlc_init()'
> /home/alex/development/test/cluttervlc/src/cluttervlc.cpp:36: undefined
> reference to `clutter_vlc_cleanup()'
> collect2: ld returned 1 exit status
> make[2]: *** [cluttervlc] Error 1
> make[2]: Target `all' not remade because of errors.
> make[1]: *** [all-recursive] Error 1
> make[2]: Nothing to be done for `all-am'.
> make: *** [all] Error 2
> *** Exited with status: 2 ***
>
>
> Have you got any idea of what is happening?
>
> Thanks a lot for your help
> Billy
>
> --- Gio 9/4/09, Arnaud VALLAT <[email protected]> ha scritto:
>
> Da: Arnaud VALLAT <[email protected]>
> Oggetto: Re: [clutter] Texture and VLC window
> A: [email protected]
> Cc: [email protected]
> Data: Giovedì 9 Aprile 2009, 21:03
>
> Hello,
>
> clutter_vlc_init is defined within clutter-vlc-main.h. Have type 'sudo
> make install' ?
>
> It would be better to use pkg-config to retrieve
>  cflags and ldflags
> instead of doing it by yourself.
>
> `pkg-config --cflags clutter-vlc-0.8`
> `pkg-config --libs clutter-vlc-0.8`
>
>
> if it still doesn't work, please copy / paste error, warning outputs
> to let us help you.
>
>
> By the way I have added a new branch to vlc-vout-clutter for
> clutter-0.8, I forgot to add it yesterday. So don't forget to use it
> instead of the master branch.
>
>
> Hopes it helps.
>
> Rno
>
> On Thu, Apr 9, 2009 at 6:14 PM, Liborio Nemorini <[email protected]>
> wrote:
>> Hi Rno,
>> thank you very much. Your code is really useful for me.
>> I tried the clutter-0.8 branch and it works.
>> I only don't understand one thing.
>>
>> I compiled the example you supplied and everything works, however, when I
>> try to compile my own code (I use Kdevelop), it says "undefined
> symbol:
>> clutter_vlc_init()
>> ". I linked against
>  -lclutter-vlc-0.8, in fact all other symbols
> (like
>> clutter_vlc_video_texture_new(), and others) are correctly linked. Where
> is
>> clutter_vlc_init() defined? Should I link against other libraries?
>>
>> Thanks again in advance for your availability.
>> Billy
>>
>> --- Mer 8/4/09, Arnaud VALLAT <[email protected]> ha scritto:
>>
>> Da: Arnaud VALLAT <[email protected]>
>> Oggetto: Re: [clutter] Texture and VLC window
>> A: [email protected]
>> Cc: [email protected]
>> Data: Mercoledì 8 Aprile 2009, 17:39
>>
>> Hello,
>>
>> I have added clutter-0.8 branch to clutter-vlc. It works fine here. It
>> used the same video-player as clutter-gst.
>>
>> I have also corrected the README on the master branch :-)
>>
>> Regards,
>>
>> Rno
>> --
>>
>>   "Given enough eyeballs, all bugs are shallow"
>>
>  Eric Steven Raymond
>> --
>> To unsubscribe send a mail to [email protected]
>>
>>
>>
>
>
>
> --
>
>   "Given enough eyeballs, all bugs are shallow"
>     Eric Steven Raymond
>
>



-- 

  "Given enough eyeballs, all bugs are shallow"
    Eric Steven Raymond
--
To unsubscribe send a mail to [email protected]

Reply via email to