[vlc-devel] Re: API VLC 0.9.0

jf massol jf.massol at gmail.com
Fri Jun 15 10:07:08 CEST 2007


Hello and thanks to both of you for replying,

I only install 0.9.0 on a Debian Unstable through apt, when I tried to
compile my program which works(ed) perfectly with 0.86a (API) I got some
errors like these :

/* ******************************************************** */
/c++$ g++ -Wall -pedantic Server_sock.cpp main.cpp Stream_test.cpp
webtv.cpp-o server -lvlc
/tmp/ccRgLm8t.o: In function `Stream_test::isAvailable()':
Stream_test.cpp:(.text+0xb0): undefined reference to
`libvlc_playlist_isplaying'
/tmp/ccRgLm8t.o: In function `Stream_test::start(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)':
Stream_test.cpp:(.text+0xd7): undefined reference to `libvlc_playlist_clear'
Stream_test.cpp:(.text+0x108): undefined reference to `libvlc_playlist_add'
Stream_test.cpp:(.text+0x116): undefined reference to
`libvlc_exception_raised'
Stream_test.cpp:(.text+0x12d): undefined reference to
`libvlc_exception_get_message'
Stream_test.cpp:(.text+0x1af): undefined reference to `libvlc_playlist_play'
Stream_test.cpp:(.text+0x1bd): undefined reference to
`libvlc_exception_raised'
Stream_test.cpp:(.text+0x1d4): undefined reference to
`libvlc_exception_get_message'
/tmp/ccRgLm8t.o: In function `Stream_test::init()':
Stream_test.cpp:(.text+0x272): undefined reference to
`libvlc_exception_init'
Stream_test.cpp:(.text+0x28f): undefined reference to `libvlc_new'
Stream_test.cpp:(.text+0x2a5): undefined reference to
`libvlc_exception_raised'
Stream_test.cpp:(.text+0x2bc): undefined reference to
`libvlc_exception_get_message'
Stream_test.cpp:(.text+0x310): undefined reference to
`libvlc_exception_clear'
collect2: ld returned 1 exit status
/* ******************************************************************* */

My compile CLI : g++ -Wall -pedantic Server_sock.cpp main.cppStream_test.cpp
webtv.cpp -o server -lvlc

Whatever I do, I keep getting these errors, I checked my /usr/lib/include (a
vlc folder within containing 5 files : libvlc.h, vlc.h, mediacontrol.h,
mediacontrol_structures.h and libvlc_structures.h) ; /usr/lib/vlc (don't
have this one in my lib), I have /usr/lib/libvlc.a ; /usr/lib/libvlc.so;
/usr/lib/libvlc-control.so; /usr/lib/libvlc.so.1; /usr/lib/libvlc-
control.so.0    ; /usr/lib/libvlc.so.1.0.0; /usr/lib/libvlc-control.so.0.0.0
.

Remembering, there were more files within /usr/vlc/include like vout.h etc.
I didn't remember whether there was ***_structures headers.
Normally, there was a VLC folder within /usr/lib, I only have ***.so.

Regards,

jf


2007/6/14, Pierre d'Herbemont <pdherbemont at free.fr>:
>
>
> On 14 juin 07, at 21:21, Jean-François Massol wrote:
>
> > Hello everyone,
> >
> > I asked a question a while ago. It was about VLC and RTSP proxy. I
> > made the change to make VLC accept and stream to the correct
> > address (the proxy is between the client and the VOD server).
> > Within my project, I have formats imperatives (Only H.264 or Mpeg-2
> > over UDP (rtsp-raw-mux in 0.9.0 thanks to the developer)). So, I
> > don't think that VLC 0.86 support this feature, I haven't check it
> > yet, so I have to use API 0.9.0 in order to design my program. But
> > I read up on API changes into this mailing list, it would seem that
> > API undergoes a lots of changes. I used 0.86's one, but currently
> > i'm a little bit lost in 0.9.0's one. Is 0.9 API usable actually or
> > is it submitted to hard changes ? I tried to compile my program
> > with only 0.9.0 installed but I always obtain "undefined references
> > to ...".
>
> There are going to be some changes to libvlc that I hope to commit
> soon... But as Rémi said the mediacontrol API won't change much, and
> you should be able to rely on it safely.
>
> What undefined symbol do you get?
>
> Pierre.
> --
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070615/f6afe3f9/attachment.html>


More information about the vlc-devel mailing list