Problems in load new module

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
arborbr01
Blank Cone
Blank Cone
Posts: 26
Joined: 10 Feb 2011 19:41
VLC version: 2.0.5
Operating System: Linux
Location: Sao Paulo - Brasil
Contact:

Problems in load new module

Postby arborbr01 » 13 Jun 2011 18:28

Good morning for all.

I'd just written a new module for VLC that search camera IPs in the network and write the damera's data into a database.
I'd tested it as stand alone and it works fine.

When I inserted it in the vlc machine, I'd received a message like below:

ataualpa:/home/rede/share/projeto/vlc-1.1.9 # ./qvlc -vvv
VLC media player 1.1.9 The Luggage (revision exported)
[0x6057e0] main libvlc debug: VLC media player - 1.1.9 The Luggage
[0x6057e0] main libvlc debug: Copyright © 1996-2011 the VideoLAN team
[0x6057e0] main libvlc debug: revision exported
[0x6057e0] main libvlc debug: configured with ./configure '--prefix=/usr/local' '--with-x' '--enable-xvideo' '--enable-sdl' '--enable-mad' '--enable-sqlite' '--with-sqlite=/usr' '--with-dvbpsi=/usr/include/dvbpsi' '--enable-a52' '--with-a52=/usr/include/a52dec' '--enable-vorbis' '--enable-ogg' '--enable-theora' '--enable-mkv' '--enable-freetype' '--enable-fribidi' '--enable-speex' '--enable-flac' '--enable-live555' '--with-live555-tree=/usr/local/lib/live' '--enable-skins2' '--enable-alsa' '--enable-ncurses' '--enable-run-as-root' '--enable-realrtsp' '--enable-qt4' '--enable-osso_screensaver=no' '--enable-goom=no' 'PKG_CONFIG_PATH=/usr/local/Trolltech/Qt-4.7.1/lib/pkgconfig:'
[0x6057e0] main libvlc debug: translation test: code is "C"
[0x6057e0] main libvlc debug: checking plugin modules
[0x6057e0] main libvlc debug: loading plugins cache file /usr/local/lib/vlc/plugins/plugins-04081e-fe8.dat
[0x6057e0] main libvlc debug: recursively browsing `/usr/local/lib/vlc/plugins'
[0x6057e0] main libvlc warning: cannot load module `/usr/local/lib/vlc/plugins/access/libfindip_plugin.so' (/usr/local/lib/vlc/plugins/access/libfindip_plugin.so: undefined symbol: sqlite3_column_text)
[0x6057e0] main libvlc warning: cannot load module `/usr/local/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x6057e0] main libvlc debug: saving plugins cache /usr/local/lib/vlc/plugins/plugins-04081e-fe8.dat
[0x6057e0] main libvlc debug: module bank initialized (400 modules)
[0x6057e0] main libvlc debug: opening config file (/root/.config/vlc/vlcrc)
[0x6057e0] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU
[0x6057e0] main libvlc debug: looking for memcpy module: 3 candidates
[0x6057e0] main libvlc debug: using memcpy module "memcpymmxext"
[0x6eda80] main input debug: Creating an input for 'Media Library'
[0x6eda80] main input debug: Input is a meta file: disabling unneeded options
[0x6eda80] main input debug: using timeshift granularity of 50 MiB
[0x6eda80] main input debug: using timeshift path '/tmp'
[0x6eda80] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/root/.local/share/vlc/ml.xspf'
[0x6eda80] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf'
[0x6f0d80] main demux debug: looking for access_demux module: 2 candidates
[0x6f0d80] main demux debug: no access_demux module matching "file" could be loaded
[0x6f0d80] main demux debug: TIMER module_need() : 0.331 ms - Total 0.331 ms / 1 intvls (Avg 0.331 ms)
[0x6eda80] main input debug: creating access 'file' path='/root/.local/share/vlc/ml.xspf'
[0x6f0d50] main access debug: looking for access module: 2 candidates
[0x6f0d50] filesystem access debug: opening file `/root/.local/share/vlc/ml.xspf'
[0x6f0d50] main access debug: using access module "filesystem"
[0x6f0d50] main access debug: TIMER module_need() : 0.161 ms - Total 0.161 ms / 1 intvls (Avg 0.161 ms)
[0x6f21c0] main stream debug: Using AStream*Stream
[0x6f21c0] main stream debug: pre buffering
[0x6f21c0] main stream debug: received first data after 0 ms
[0x6f21c0] main stream debug: pre-buffering done 296 bytes in 0s - 41294 KiB/s
[0x6f3330] main stream debug: looking for stream_filter module: 5 candidates
[0x6f3330] main stream debug: no stream_filter module matching "any" could be loaded
[0x6f3330] main stream debug: TIMER module_need() : 0.290 ms - Total 0.290 ms / 1 intvls (Avg 0.290 ms)
[0x6f3330] main stream debug: looking for stream_filter module: 1 candidate
[0x6f3330] main stream debug: using stream_filter module "stream_filter_record"
[0x6f3330] main stream debug: TIMER module_need() : 0.083 ms - Total 0.083 ms / 1 intvls (Avg 0.083 ms)
[0x6eda80] main input debug: creating demux: access='file' demux='xspf-open' path='/root/.local/share/vlc/ml.xspf'
[0x709c50] main demux debug: looking for demux module: 1 candidate
[0x709c50] playlist demux debug: using XSPF playlist reader
[0x709c50] main demux debug: using demux module "playlist"
[0x709c50] main demux debug: TIMER module_need() : 0.123 ms - Total 0.123 ms / 1 intvls (Avg 0.123 ms)
[0x70da40] main demux meta debug: looking for meta reader module: 2 candidates
[0x70da40] lua demux meta debug: Trying Lua scripts in /root/.local/share/vlc/lua/meta/reader
[0x70da40] lua demux meta debug: Trying Lua scripts in /usr/local/lib/vlc/lua/meta/reader
[0x70da40] lua demux meta debug: Trying Lua playlist script /usr/local/lib/vlc/lua/meta/reader/filename.luac
[0x70da40] lua demux meta debug: Trying Lua scripts in /usr/local/share/vlc/lua/meta/reader
[0x70da40] main demux meta debug: no meta reader module matching "any" could be loaded
[0x70da40] main demux meta debug: TIMER module_need() : 1.772 ms - Total 1.772 ms / 1 intvls (Avg 1.772 ms)
[0x6eda80] main input debug: `file/xspf-open:///root/.local/share/vlc/ml.xspf' successfully opened
[0x70da40] main xml debug: looking for xml module: 2 candidates
[0x70da40] main xml debug: using xml module "xml"
[0x70da40] main xml debug: TIMER module_need() : 0.409 ms - Total 0.409 ms / 1 intvls (Avg 0.409 ms)
[0x709c50] playlist demux debug: parsed 0 tracks successfully
[0x70da40] main xml debug: removing module "xml"
[0x6eda80] main input debug: EOF reached
[0x709c50] main demux debug: removing module "playlist"
[0x6f3330] main stream debug: removing module "stream_filter_record"
[0x6f0d50] main access debug: removing module "filesystem"
[0x6eda80] main input debug: TIMER input launching for 'Media Library' : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
[0x6f0490] main interface debug: looking for interface module: 1 candidate
[0x6f0490] main interface debug: using interface module "hotkeys"
[0x6f0490] main interface debug: TIMER module_need() : 0.201 ms - Total 0.201 ms / 1 intvls (Avg 0.201 ms)
[0x6eeec0] main interface debug: looking for interface module: 1 candidate
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x6f4c00] main playlist debug: Activated
[0x6eeec0] main interface debug: using interface module "inhibit"
[0x6eeec0] main interface debug: TIMER module_need() : 1.372 ms - Total 1.372 ms / 1 intvls (Avg 1.372 ms)
[0x6f4c00] main playlist debug: rebuilding array of current - root Playlist
[0x6f2250] main interface debug: looking for interface module: 1 candidate
[0x6f4c00] main playlist debug: rebuild done - 0 items, index -1
[0x6f2250] main interface debug: using interface module "signals"
[0x6f2250] main interface debug: TIMER module_need() : 0.126 ms - Total 0.126 ms / 1 intvls (Avg 0.126 ms)
[0x6f5ce0] main interface debug: looking for interface module: 1 candidate
[0x6f5ce0] main interface debug: using interface module "globalhotkeys"
[0x6f5ce0] main interface debug: TIMER module_need() : 0.838 ms - Total 0.838 ms / 1 intvls (Avg 0.838 ms)
[0x6f0200] main interface debug: looking for interface module: 1 candidate
Blocked: call to setlocale(6, "")
Blocked: call to setlocale(6, "")
[0x8d1420] main generic debug: looking for extension module: 1 candidate
[0x8d1420] lua generic debug: Opening EXPERIMENTAL Lua Extension module
[0x8d1420] lua generic debug: Trying Lua scripts in /root/.local/share/vlc/lua/extensions
[0x8d1420] lua generic debug: Trying Lua scripts in /usr/local/lib/vlc/lua/extensions
[0x8d1420] lua generic debug: Trying Lua playlist script /usr/local/lib/vlc/lua/extensions/allocine-fr.luac
[0x8d1420] lua generic debug: Scanning Lua script /usr/local/lib/vlc/lua/extensions/allocine-fr.luac
[0x8d1420] lua generic debug: Script /usr/local/lib/vlc/lua/extensions/allocine-fr.luac has the following capability flags: 0xc
[0x8d1420] lua generic debug: Trying Lua scripts in /usr/local/share/vlc/lua/extensions
[0x8d1420] main generic debug: using extension module "lua"
[0x8d1420] main generic debug: TIMER module_need() : 0.393 ms - Total 0.393 ms / 1 intvls (Avg 0.393 ms)
[0x6f0200] main interface debug: using interface module "qt4"
[0x6f0200] main interface debug: TIMER module_need() : 400.174 ms - Total 400.174 ms / 1 intvls (Avg 400.174 ms)
[0x6057e0] main libvlc debug: deactivating the playlist
[0x6f4c00] main playlist debug: Deactivate
[0x94e750] main playlist export debug: saving Media Library to file /root/.local/share/vlc/ml.xspf
[0x94e750] main playlist export debug: looking for playlist export module: 1 candidate
[0x94e750] main playlist export debug: using playlist export module "export"
[0x94e750] main playlist export debug: TIMER module_need() : 0.319 ms - Total 0.319 ms / 1 intvls (Avg 0.319 ms)
[0x94e750] main playlist export debug: removing module "export"
[0x6f4c00] main playlist debug: Deactivated
[0x6057e0] main libvlc debug: removing all services discovery tasks
[0x6057e0] main libvlc debug: removing all interfaces
[0x6f0200] qt4 interface debug: requesting exit...
[0x6f0200] qt4 interface debug: waiting for UI thread...
[0x6f0200] qt4 interface debug: Exec finished()
[0x6f0200] qt4 interface debug: Video is not needed anymore
[0x6f0200] qt4 interface debug: Killing extension dialog provider
[0x6f0200] qt4 interface debug: ExtensionsDialogProvider is quitting...
[0x8d1420] lua generic debug: Deactivating all loaded extensions
[0x8d1420] lua generic debug: All extensions are now deactivated
[0x8d1420] main generic debug: removing module "lua"
[0x6f0200] main interface debug: removing module "qt4"
[0x6f5ce0] main interface debug: removing module "globalhotkeys"
[0x6f2250] main interface debug: removing module "signals"
[0x6eeec0] main interface debug: removing module "inhibit"
[0x6f0490] main interface debug: removing module "hotkeys"
[0x6f4c00] main playlist debug: destroying
[0x6057e0] main libvlc debug: TIMER ML Load : Total 3.662 ms / 1 intvls (Avg 3.662 ms)
[0x6057e0] main libvlc debug: TIMER Items array build : Total 0.022 ms / 1 intvls (Avg 0.022 ms)
[0x6057e0] main libvlc debug: TIMER ML Dump : Total 0.463 ms / 1 intvls (Avg 0.463 ms)
[0x6057e0] main libvlc debug: removing stats
[0x6057e0] main libvlc debug: removing module "memcpymmxext"

Should you tell me what is going on?
Thanks in advance.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problems in load new module

Postby Jean-Baptiste Kempf » 13 Jun 2011 18:47

missing sqlite3 so?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: Problems in loading module

Postby Rémi Denis-Courmont » 13 Jun 2011 20:53

Your plugin is not linked correctly. It looks like you missed -lsqlite or something in the linker flags.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

arborbr01
Blank Cone
Blank Cone
Posts: 26
Joined: 10 Feb 2011 19:41
VLC version: 2.0.5
Operating System: Linux
Location: Sao Paulo - Brasil
Contact:

Re: Problems in load new module

Postby arborbr01 » 14 Jun 2011 19:59

Here I show you my configure.ac, and I had put -lsqlite in the proper place(I think:-)
...................
VLC_ADD_LIBS([access_http access_mms access_udp access_tcp access_ftp access_rtmp access_output_udp access_output_shout access_output_rtmp sap slp oldhttp stream_out_standard stream_out_rtp stream_out_raop vod_rtsp access_realrtsp findip rtp oldtelnet oldrc netsync gnutls growl_udp flac ts audioscrobbler lua remoteosd zvbi audiobargraph_a netsync],[-lws2_32])
.................
dnl FINDIP (Ip Look Up) plugin
dnl
dnl =========================== FINDIP============================
VLC_ADD_CFLAGS([findip],[-I/usr/include])
VLC_ADD_LIBS([findip], [-L/usr/lib -lsqlite3])
VLC_ADD_PLUGIN([findip])
dnl =========================== FINDIP============================

...........................
AC_CONFIG_FILES([
............
modules/access/findip/Makefile
.......................])
findip is my new module.

I put sqlite3.h in the file, and so on.
I cut the rest of the file because it is too large to be put here.

Isn't it OK?

Tanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Problems in load new module

Postby Jean-Baptiste Kempf » 16 Jun 2011 00:45

look at what is inside vlc-config for your findip plugin
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 51 guests