convert vlc in static library

This forum is about all development around libVLC.
erjaimer
New Cone
New Cone
Posts: 5
Joined: 11 Mar 2010 22:54

convert vlc in static library

Postby erjaimer » 22 Mar 2010 17:50

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

erjaimer
New Cone
New Cone
Posts: 5
Joined: 11 Mar 2010 22:54

Re: convert vlc in static library

Postby erjaimer » 23 Mar 2010 10:52

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: convert vlc in static library

Postby Rémi Denis-Courmont » 26 Mar 2010 23:37

Static library build is not supported by the current plugin subsystem. It's not just a matter of tweaking the build system.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests