About libvlc...
Posted: 06 Aug 2008 10:15
Hello there,
I'm trying to use libvlc to play video in a program i'm writing in C++. I use version 0.8.6h. I tried to have this sample working : http://wiki.videolan.org/LibVLC_SampleCode_SDL
But it doesn't compile, for the reason that it doesn't find the type libvlc_media_t (and some other things). This sample looks obsolete, as I didn't find any occurrence of libvlc_meedia_t type in the source of vlc.
So I would like to know, if anyone is used with the latest libvlc, what changes I should do to this sample to have it compile ? The current document is still incomplete so it's a bit hard to understand how it works.
Here's gcc log :
Thanks
I'm trying to use libvlc to play video in a program i'm writing in C++. I use version 0.8.6h. I tried to have this sample working : http://wiki.videolan.org/LibVLC_SampleCode_SDL
But it doesn't compile, for the reason that it doesn't find the type libvlc_media_t (and some other things). This sample looks obsolete, as I didn't find any occurrence of libvlc_meedia_t type in the source of vlc.
So I would like to know, if anyone is used with the latest libvlc, what changes I should do to this sample to have it compile ? The current document is still incomplete so it's a bit hard to understand how it works.
Here's gcc log :
Please note that I added #include <vlc/libvlc.h> who was already missing.gcc vlctest.c `sdl-config --cflags --libs` -I/usr/include -lvlc
vlctest.c: In function 'main':
vlctest.c:69: error: 'libvlc_media_t' undeclared (first use in this function)
vlctest.c:69: error: (Each undeclared identifier is reported only once
vlctest.c:69: error: for each function it appears in.)
vlctest.c:69: error: 'm' undeclared (first use in this function)
vlctest.c:70: error: 'libvlc_media_player_t' undeclared (first use in this function)
vlctest.c:70: error: 'mp' undeclared (first use in this function)
vlctest.c:75: error: 'VLC_TREE' undeclared (first use in this function)
vlctest.c:75: error: expected '}' before string constant
vlctest.c:137: warning: passing argument 2 of 'libvlc_new' from incompatible pointer type
Thanks