[vlc] Problems linking to libvlc.a
Varol Okan
Varol.Okan at MovingSatellites.com
Fri Dec 17 04:00:49 CET 2004
Bonjour,
First off thank you for VLC this is a very interesting project. I love
it and I would love to write a interface to the library in Qt.
Unfortunately qvlc is not built anymore and the PAST TWO DAYS I could
not find any information.
I don't have GTK++ installed, thus I don't have wxWidget, thus I don't
have the wxWidget GUI. HELP ...
I have a simple application main.cpp
#include <stdlib.h>
#include <stdio.h>
#include <vlc/vlc.h>
int main( int argc, char ** argv )
{
const char *pVersion = NULL;
pVersion = VLC_Version ();
printf (" <%s> \n", pVersion);
return 0;
}
which I compile using:
g++ -c -pipe -O2 -march=i586 -mcpu=i686 -Wall -W -g -I. -I/usr/include
-o main.o main.cpp
g++ -o test main.o `vlc-config --cxxflags --libs`
but I get this error message :
main.o(.text+0x16): In function `main':
/home/me/test_vlc/main.cpp:7: undefined reference to `VLC_Version'
I compiled vlc 0.8.1 from source and have only a static library libvlc.a.
I tried a lot of variations on the build commands, notably adding -lvlc
but no luck there just more error messages.
Can someone help me ?
+-+-++-+-++-+-++-+-++-+-++-+-++-+-++-+-++-+-++-+-++-+-++-+-+
me at linux:~/project/test_vlc> vlc -vvvv
VLC media player 0.8.1 Janus
[00000001] main vlc debug: opening config file /home/me/.vlc/vlcrc
[00000001] main vlc warning: config file /home/me/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file
/home/me/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 163 modules
[00000001] main vlc debug: opening config file /home/me/.vlc/vlcrc
[00000001] main vlc warning: config file /home/me/.vlc/vlcrc does not
exist yet
[00000000] main root debug: VLC media player - version 0.8.1 Janus - (c)
1996-2004 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure
--disable-skins2 --disable-wxwindows --enable-qt
--with-ffmpeg-tree=../ffmpeg-20041113
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/me/.vlc/vlcrc
[00000001] main vlc warning: config file /home/me/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: checking builtin modules
[00000001] main vlc debug: checking plugin modules
[00000001] main vlc debug: loading plugins cache file
/home/me/.vlc/cache/plugins-04041e.dat
[00000001] main vlc debug: recursively browsing `modules'
[00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main vlc debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 163 modules
[00000001] main vlc debug: opening config file /home/me/.vlc/vlcrc
[00000001] main vlc warning: config file /home/me/.vlc/vlcrc does not
exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000203] main playlist debug: creating group Normal with id 1 at
position 0
[00000203] main playlist debug: waiting for thread completion
[00000203] main playlist debug: thread 1079663536 (playlist) created at
priority 0 (src/playlist/playlist.c:107)
[00000204] main interface debug: looking for interface module
[00000204] main interface debug: probing 1 candidate
[00000052] main module debug: using interface module "hotkeys"
[00000204] main interface debug: interface initialized
[00000204] main interface debug: thread 1081785264 (interface) created
at priority 0 (src/interface/interface.c:209)
[00000206] main interface debug: looking for interface module
[00000206] main interface debug: probing 1 candidate
Remote control interface initialized, `h' for help
[00000050] main module debug: using interface module "rc"
[00000206] main interface debug: interface initialized
[00000206] main interface debug: thread 1083919280 (manager) created at
priority 0 (src/interface/interface.c:194)
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list