[vlc-devel] Module doesn't load

francesco at bltitalia.com francesco at bltitalia.com
Tue May 23 18:32:28 CEST 2017


On Tue, May 23, 2017 6:23 pm, Jean-Baptiste Kempf wrote:
> On Tue, 23 May 2017, at 18:15, Francesco, Cuzzocrea wrote:
>> Hi to all
>>
>> I've downloaded and compiled vlc version 2.2.5.1 and works fine. After
>> following the instruction for an
>>
>> out of tree compile (https://wiki.videolan.org/OutOfTreeCompile/) I
>> wrote an access_demux skeleton
>>
>>
>> vlc_module_begin ()
>>     set_text_domain(DOMAIN)
>>      set_shortname ( "BLT_Import" )
>>      set_description( N_("BLT Files demuxer" ) )
>>      set_capability( "access_demux", 100 )
>>      set_category( CAT_INPUT )
>>      set_subcategory( SUBCAT_INPUT_DEMUX )
>>      set_callbacks( DemuxOpen, DemuxClose )
>>      add_submodule()
>>      set_capability("access",100)
>>      set_callbacks(AccessOpen,AccessClose);
>> vlc_module_end ()
>>
>> Both the open functions returns VLC_SUCCESS (doing nothing for now).
>> I've compiled and installed, but after
>> command ./vlc --reset-plugins-cache I can't see my plugin in the section
>> Tools -> Plugin and Extensions ->Plugins.
>> How can I detect why my plugin isn't loaded ?
>
>
> ./vlc -vvv --list > /dev/null should give you the module loading
> warnigns.
>
>
> --
> Jean-Baptiste Kempf -  President
> +33 672 704 734
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

Here is result:

alfredo at alfredo-Z97N-WIFI:~/vlc-2.2.5.1$ ./vlc -vvv --color --list >
/dev/null
VLC media player 2.2.5.1 Umbrella (revision 2.2.5.1-14-g05b653355c)
[000055eea03b13d8] core libvlc debug: VLC media player - 2.2.5.1 Umbrella
[000055eea03b13d8] core libvlc debug: Copyright © 1996-2017 the VideoLAN team
[000055eea03b13d8] core libvlc debug: revision 2.2.5.1-14-g05b653355c
[000055eea03b13d8] core libvlc debug: configured with ./configure 
'--disable-chromaprint'
[000055eea03b13d8] core libvlc debug: searching plug-in modules
[000055eea03b13d8] core libvlc debug: loading plugins cache file
/home/alfredo/vlc-2.2.5.1/src/.libs/vlc/plugins/plugins.dat
[000055eea03b13d8] core libvlc warning: cannot read
/home/alfredo/vlc-2.2.5.1/src/.libs/vlc/plugins/plugins.dat: No such file
or directory
[000055eea03b13d8] core libvlc debug: recursively browsing
`/home/alfredo/vlc-2.2.5.1/src/.libs/vlc/plugins'
[000055eea03b13d8] core libvlc debug: saving plugins cache
/home/alfredo/vlc-2.2.5.1/src/.libs/vlc/plugins/plugins.dat
[000055eea03b13d8] core libvlc debug: loading plugins cache file
/home/alfredo/vlc-2.2.5.1/modules/plugins.dat
[000055eea03b13d8] core libvlc debug: recursively browsing
`/home/alfredo/vlc-2.2.5.1/modules'
[000055eea03b13d8] core libvlc warning: cannot load module
`/home/alfredo/vlc-2.2.5.1/modules/misc/.libs/libgnutls_plugin.so'
(/home/alfredo/vlc-2.2.5.1/modules/misc/.libs/libgnutls_plugin.so:
undefined symbol: nettle_sha1_init)
[000055eea03b13d8] core libvlc warning: cannot load module
`/home/alfredo/vlc-2.2.5.1/modules/.libs/liblibbluray_plugin.so'
(/home/alfredo/vlc-2.2.5.1/modules/.libs/liblibbluray_plugin.so: undefined
symbol: xmlFree)
[000055eea03b13d8] core libvlc debug: saving plugins cache
/home/alfredo/vlc-2.2.5.1/modules/plugins.dat
[000055eea03b13d8] core libvlc debug: plug-ins loaded: 415 modules
[000055eea03b13d8] core libvlc debug: opening config file
(/home/alfredo/.config/vlc/vlcrc)
[000055eea03b13d8] core libvlc debug: translation test: code is "C"
alfredo at alfredo-Z97N-WIFI:~/vlc-2.2.5.1$

may be the makefile installs in a wrong place ? Makefile is :

PREFIX = /usr/local
LD = ld
CC = cc
PKG_CONFIG = pkg-config
INSTALL = install
CFLAGS = -g -O2 -Wall -Wextra
LDFLAGS =
LIBS =
VLC_PLUGIN_CFLAGS := $(shell $(PKG_CONFIG) --cflags vlc-plugin)
VLC_PLUGIN_LIBS := $(shell $(PKG_CONFIG) --libs vlc-plugin)

libdir = $(PREFIX)/lib
plugindir = $(libdir)/vlc-2.2.5.1/plugins


	mkdir -p -- $(DESTDIR)$(plugindir)/misc
	$(INSTALL) --mode 0755 libblt_plugin.so $(DESTDIR)$(plugindir)/misc

regards
Francesco







More information about the vlc-devel mailing list