Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: fodder on January 11, 2013, 06:32:29 PM

Title: [SOLVED] Vlc.tcz Web Interface (http)
Post by: fodder on January 11, 2013, 06:32:29 PM
Problem: I cannot find or get the VLC http interface to work.
Questions:
Details:
Result of: vlc --intf dummy --extraintf http -v
Quote
VLC media player 2.0.4 Twoflower (revision 2.0.3-289-g6e6100a)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libaccess_jack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libdtv_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/liblibbluray_plugin.so' (libbluray.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/liblinsys_sdi_plugin.so' (libzvbi.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libpulsesrc_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/access/libv4l2_plugin.so' (libv4l2.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_filter/libsamplerate_plugin.so' (libsamplerate.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_output/libjack_plugin.so' (libjack.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/audio_output/libpulse_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/codec/libfluidsynth_plugin.so' (libfluidsynth.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/codec/libzvbi_plugin.so' (libzvbi.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/demux/libmod_plugin.so' (libmodplug.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/demux/libts_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/misc/libgnutls_plugin.so' (libgnutls.so.28: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/mux/libmux_ts_plugin.so' (libdvbpsi.so.7: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/services_discovery/libpulselist_plugin.so' (libpulse.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/text_renderer/libsvg_plugin.so' (librsvg-2.so.2: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/video_output/libxcb_glx_plugin.so' (libGL.so.1: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot load module `/tmp/tcloop/vlc/usr/local/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x95be0c8] main libvlc warning: cannot create /tmp/tcloop/vlc/usr/local/lib/vlc/plugins/plugins.dat.8593 (Read-only file system)
[0x9649128] main interface error: no suitable interface module
[0x95ce948] dummy interface: using the dummy interface module...

Any help and or suggestions would be greatly appreciated!

fodder
Title: Re: Vlc.tcz Web Interface (http)
Post by: AmatCoder on January 12, 2013, 03:32:16 PM
As far as I know, web interface needs lua module and vlc extension was compiled without it, as you can see:

Code: [Select]
tc@box:~$ vlc -vv
VLC media player 2.0.4 Twoflower (revision 2.0.3-289-g6e6100a)
[0x81270c8] main libvlc debug: VLC media player - 2.0.4 Twoflower
[0x81270c8] main libvlc debug: Copyright © 1996-2012 VLC authors and VideoLAN
[0x81270c8] main libvlc debug: revision 2.0.3-289-g6e6100a
[0x81270c8] main libvlc debug: configured with ./configure  '--prefix=/usr/local' [...] '--disable-lua' [...]
Title: Re: Vlc.tcz Web Interface (http)
Post by: fodder on January 14, 2013, 01:14:16 PM
As far as I know, web interface needs lua module and vlc extension was compiled without it, as you can see:

Thanks so much for the reply.  You are correct that it requires the lua module - that is precisely what I was afraid of.

So the only way to get it to work would be to recreate the extension with a version compiled without "--disable-lua", correct? (I.e. there is no way to enable it in the existing extension?)

fodder
Title: Re: Vlc.tcz Web Interface (http)
Post by: AmatCoder on January 14, 2013, 03:26:49 PM
So the only way to get it to work would be to recreate the extension with a version compiled without "--disable-lua", correct? (I.e. there is no way to enable it in the existing extension?)
No, recompilation is mandatory... :(
Title: Re: Vlc.tcz Web Interface (http)
Post by: fodder on January 14, 2013, 03:38:13 PM
It looks like the components for a full version have already been created, even though the completed extension is not available in the repo: http://tc-ext-tools.googlecode.com/svn/packages/vlc-full/

I'm reading up on how to use tc-ext-tools for the first time, any tips would be greatly appreciated!  :)
Title: Re: Vlc.tcz Web Interface (http)
Post by: AmatCoder on January 14, 2013, 03:53:50 PM
Quick tutorial (step by step):

Code: [Select]
tce-load -i svn
svn checkout http://tc-ext-tools.googlecode.com/svn/trunk tc-ext-tools
cd tc-ext-tools
cp config.sample .config
./install.sh
svn checkout http://tc-ext-tools.googlecode.com/svn/packages/vlc-full
cd vlc-full
buildit

This should create a vlc-full.tcz extension.
Title: Re: Vlc.tcz Web Interface (http)
Post by: fodder on January 14, 2013, 06:28:57 PM
AmatCoder, you have been very helpful, thanks so much for your time.

I'll be looking more into this tomorrow morning, but in case the error is something obvious to you, the creation process successfully got through configuration but failed compiling with these as the last few lines:

Code: [Select]
/usr/local/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[5]: *** [libxcb_glx_plugin.la] Error 1
make[5]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules/video_output'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tc/tc-ext-tools/storage/vlc-full/src/temp/vlc-2.0.4'
make: *** [all] Error 2

fodder
Title: Re: Vlc.tcz Web Interface (http)
Post by: tinypoodle on January 14, 2013, 07:01:10 PM
http://forum.tinycorelinux.net/index.php?topic=11757.0
Title: Re: Vlc.tcz Web Interface (http)
Post by: fodder on January 17, 2013, 07:07:13 PM
Success!

Thanks again, AmatCoder, for all your help and tinypoodle for the tip. (Note: I ended up having to install both nvidia-glx-dev.tcz and nvidia-glx.tcz. Without nvidia-glx.tcz I got this error "/usr/bin/ld: cannot find -lGL".)

To help any others reading this, after the compilation process is complete the extension files are placed into /home/tc/tc-ext-tools/storage/.

To save your compiled extension for later use (without having to rebuild it), copy the .tcz, .tcz.dep, and .tcz.md5.txt files.  Then for future installs you can copy those files into your /tce/optional/ directory and install the extension using the "Load App Locally" option.

I do have one resulting question about dependencies: When installing locally, is there any way to have the dependencies download automatically?

In my searching I was unable to find much info on installing locally at all. For example, is there a tce-load command for local extensions?

Again, thanks for any help and/or points in the right direction.

fodder
 

Title: Re: Vlc.tcz Web Interface (http)
Post by: Arslan S. on January 18, 2013, 03:10:30 AM
why don't you submit it if you have a working full build of vlc

just add a note to changelog stating what you have done with your name included in paranthesis
Title: Re: Vlc.tcz Web Interface (http)
Post by: fodder on January 22, 2013, 11:08:30 AM
why don't you submit it if you have a working full build of vlc

just add a note to changelog stating what you have done with your name included in paranthesis

Sure, I was hesitant to consider that option because I didn't put the source files together myself - you did all the hard work and all I did was build the extension from your files.  :)  Actually, I also wondered if there was a reason that it was not already built and in the repo (like maybe it is not complete?) and I don't have the time to completely test it.

But since you recommend it I will certainly do so as soon as I get some time to research the submission process.

Thanks!
fodder


Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: Rich on January 22, 2013, 11:19:40 AM
Hi fodder
Quote
as soon as I get some time to research the submission process.
See:
http://wiki.tinycorelinux.net/wiki:creating_extensions
Go to the  Send to  section at the bottom of the page.
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: vinnie on January 25, 2013, 03:09:21 PM
great, when it is ready I will test too to hear the midi through fluidsynth (currently it seems that it is not supported)
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: fodder on January 31, 2013, 03:37:25 PM
Alright, it has been submitted - hopefully I did everything correctly.  :)
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: vinnie on February 01, 2013, 06:18:26 PM
when it is possible I will try and let you know how it went
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: vinnie on February 02, 2013, 01:07:46 AM
playing midi works flawlessly!
Finally!  ;D
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: Arslan S. on February 19, 2013, 01:24:09 PM
Any changes in the configure line or did you just build the latest revision ? If so can you please send me the patch to commit to the server ?
Title: Re: [SOLVED] Vlc.tcz Web Interface (http)
Post by: fodder on February 19, 2013, 02:16:58 PM
Any changes in the configure line or did you just build the latest revision ? If so can you please send me the patch to commit to the server ?

Nope, no changes at all to what you had here: http://tc-ext-tools.googlecode.com/svn/packages/vlc-full/

I just checked it out (Revision 946), added a note to the .info file, and built it using tc-ext-tools.