[vlc] libvlc help

Remi Denis-Courmont rdenis at simphalempin.com
Fri Apr 25 22:57:47 CEST 2008


That's -llibvlc-control, but version 0.8.6 was very preliminary.

Remi Denis

-- message original --
Sujet:	[vlc] libvlc help
De:	P CP <pcarvalho_18 at hotmail.com>
Date:		25.04.2008 20:24


Hello,

I'm trying to compile a simple program using libvlc, but some functions are not found.
I'm using libvlc 0.8.6c under Ubuntu 7.04 (Feisty).
This is what I did:

1) Configure vlc:
./configure --with-ffmpeg-config-path=/home/projetao/ffmpeg/ --with-live555-tree=/home/projetao/live/ --with-ffmpeg-tree=/home/projetao/ffmpeg --disable-mad --disable-libmpeg2 --disable-wxwidgets --disable-skins2 --enable-v4l --enable-release --enable-live555 --enable-static

(where /home/projetao is where are the other libs)

2) Make VLC:
make

3) Copied the source code for linux from http://wiki.videolan.org/LibVLC_Tutorial_086c

4) Tried to compile the code using the following lines:
export VLC_SRC=/home/projetao/vlc-0.8.6c
gcc -I ${VLC_SRC}/include/ -lvlc -L ${VLC_SRC}/src/.libs/ demo.c -o demo

But the second line didn't work (the path ${VLC_SRC}/src/.libs/ doesn't even exist), so I tried to change the -L option to the path where the libvlc.a is:
gcc -I ${VLC_SRC}/include/ -lvlc -L ${VLC_SRC}/src/ demo.c -o demo

Then the following errors showed up:
/tmp/ccOW4Ahx.o: In function `quit_on_exception':
demo.c:(.text+0xd): undefined reference to `libvlc_exception_raised'
demo.c:(.text+0x1c): undefined reference to `libvlc_exception_get_message'
/tmp/ccOW4Ahx.o: In function `main':
demo.c:(.text+0x6a): undefined reference to `libvlc_exception_init'
demo.c:(.text+0x82): undefined reference to `libvlc_new'
demo.c:(.text+0xb1): undefined reference to `libvlc_playlist_add'
demo.c:(.text+0xe8): undefined reference to `libvlc_playlist_play'
demo.c:(.text+0x10a): undefined reference to `libvlc_destroy'
collect2: ld returned 1 exit status

Can someone please help me to compile this simple demo?

_________________________________________________________________
Connect to the next generation of MSN Messenger 
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
______________________________________________________
vlc mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc




More information about the vlc mailing list