Page 1 of 1

convert vlc in static library

Posted: 22 Mar 2010 17:50
by erjaimer
Hi, I have a problem with vlc,my vlc vlc version is 1.0.5 :

sudo ./configure --enable-shared=no --enable-static && make && make install

I compile sdl example:

gcc -o test vlc_sdl.c -lvlc -lvlccore -L/lib -lhal -ldbus-1 -lrt -lpthread -ldl -lm -lSDL

ldd hola | grep vlc ----> OK!!! does not depend on external libraries.

,/test -->> it's not work.

I execte vlc in terminan y ¡¡¡¡horror!!!

$> vlc

[0x8688140] main libvlc error: no memcpy module matched "any"
[0x86bd1b8] main access error: no access module matched "file"
[0x86ab6b8] main input error: open of `file/xspf-open:///home/jaime/.local/share/vlc/ml.xspf' failed: no access module matched "file"
.........................................
........................................ ( and more more more )


There is some problem in link vlc as a static library? ( I'm interested in this way)
What way can I?

thanks in advance

Re: convert vlc in static library

Posted: 23 Mar 2010 10:52
by erjaimer
HELLO,excuse me gentlemen , the question is wrong.

I want to link libvlc and libvlccore in execution time.... more or less

my script code is:

#!/bin/bash
LD_RUN_PATH=./lib:$LD_RUN_PATH
export LD_RUN_PATH
gcc -o hola vlc_sdl.c -L/usr/lib -lvlc -L./lib -lSDL

but I noticed with ldd that libvlc.so depends livccore.so.

ldd ./lib/libvlc.so.2 | grep vlc

libvlccore.so.2 => /usr/lib/libvlccore.so.2 (0x0019a000)

I believe that the solution is to compile libvlc.so and to link with LD_RUN_PATH.

my intention is that vlc application will don't has to depend OS Instalation.

I want: ( lib is local directory , the application find the shared library here)

ldd ./lib/libvlc.so.2 | grep vlc

libvlccore.so.2 => ./lib/libvlccore.so.2

is it possible?

thank.

Re: convert vlc in static library

Posted: 26 Mar 2010 23:37
by Rémi Denis-Courmont
Static library build is not supported by the current plugin subsystem. It's not just a matter of tweaking the build system.