Page 1 of 1

Unable to launch VLC UI interface via GTK

Posted: 14 Oct 2016 10:09
by pramodkalva
I want to launch the VLC UI interface from the GTK application using libvlc_add_intf API .

But some how VLC UI Interface does'nt launches from GTK application ,Console logs says Xlib not initialized for threads etc and
then VLC goes to command line mode .

Is their any other away to launch the VLC UI interface from the GTK Application ?

Console Log:

[0x1340598] main libvlc: Running vlc with the default interface. Use 'cvlc' to
use vlc without interface.
[0x1414888] main interface debug: looking for interface module matching "any":
19 candidates
../../../include/vlc_xlib.h:46:vlc_xlib_init: Xlib not initialized for
threads.
This process is probably using LibVLC incorrectly.
Pass "--no-xlib" to libvlc_new() to fix this.
[0x1414888] qt4 interface error: Xlib not initialized for threads
../../../include/vlc_xlib.h:46:vlc_xlib_init: Xlib not initialized for
threads.
This process is probably using LibVLC incorrectly.
Pass "--no-xlib" to libvlc_new() to fix this.
[0x1414888] skins2 interface error: Xlib not initialized for threads
[0x1414888] skins2 interface error: initializing xlib for multi-threading
failed
[0x1414888] skins2 interface error: cannot initialize OSFactory
[0x1414888] [cli] lua interface debug: Found lua interface script:
/usr/lib/vlc/lua/intf/cli.luac
[0x1414888] [cli] main interface debug: using interface module "lua"
[0x1414888] [cli] lua interface: Listening on host "*console".
VLC media player 2.1.6 Rincewind
Command Line Interface initialized. Type `help' for help.

Re: Unable to launch VLC UI interface via GTK

Posted: 14 Oct 2016 15:19
by Rémi Denis-Courmont

Re: Unable to launch VLC UI interface via GTK

Posted: 18 Oct 2016 08:56
by pramodkalva
Thanks for the link, However, I still fail to understand, Does it mean I cannot launch the QT interface while running my GTK application?

I tried adding the XInitThreads() on the thread as the man page suggested before I begin to call the libvlc_* functions & still see issues, I get a,
"GTK+ 2.x symbols detected, GTK+ 2.x and GTK+ 3.x in the same process in not supported"
It does seem that XInitThreads() is successful - but the error seems to come when libvlc_add_intf() is called.

Can you please suggest and help me understand this issue?
Thanks,

Re: Unable to launch VLC UI interface via GTK

Posted: 18 Oct 2016 16:59
by Rémi Denis-Courmont
That other (GTK versions) error is not from within VLC. Maybe a Qt limitation; I don't know.