Unable to launch VLC UI interface via GTK

This forum is about all development around libVLC.
pramodkalva
New Cone
New Cone
Posts: 8
Joined: 17 Aug 2016 12:11
VLC version: 2.1.6
Operating System: Linux

Unable to launch VLC UI interface via GTK

Postby pramodkalva » 14 Oct 2016 10:09

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.

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

Re: Unable to launch VLC UI interface via GTK

Postby Rémi Denis-Courmont » 14 Oct 2016 15:19

Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pramodkalva
New Cone
New Cone
Posts: 8
Joined: 17 Aug 2016 12:11
VLC version: 2.1.6
Operating System: Linux

Re: Unable to launch VLC UI interface via GTK

Postby pramodkalva » 18 Oct 2016 08:56

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,

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

Re: Unable to launch VLC UI interface via GTK

Postby Rémi Denis-Courmont » 18 Oct 2016 16:59

That other (GTK versions) error is not from within VLC. Maybe a Qt limitation; I don't know.
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 26 guests