我建立了vlc,但是没有任何接口(linux)

时间:2018-11-28 10:03:24

标签: debian vlc vlc-qt

我使用apt build-dep vlc安装了所有libvlc-软件包。 我还安装了指南https://wiki.videolan.org/UnixCompile的所有软件包。

我构建了vlc 3.0,因为4需要更高版本的qt。

vlc -l | grep face
VLC media player 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264)
  lua                    Command-line interface
  lua                    Lua Playlist Parser Interface
  motion                 motion control interface
  gestures               Mouse gestures control interface
  dbus                   D-Bus control interface
  xcb_hotkeys            Global Hotkeys interface
  dummy                  Dummy interface
  hotkeys                Hotkeys management interface
  oldrc                  Remote control interface
  vdpau_chroma           VDPAU surface conversions
  vdpau_chroma           VDPAU surface conversions
  skins2                 Skinnable Interface
  skins2                 Skinnable Interface
  qt                     Qt interface
  qt                     Qt interface
  ncurses                Ncurses interface
  glconv_vaapi_drm       VA-API OpenGL surface converter for DRM
  glconv_vdpau           VDPAU OpenGL surface converter
  glconv_vaapi_x11       VA-API OpenGL surface converter for X11

vlc -I ncurses打开一个“终端”界面,此界面仅是cli。 ncurses interface

现在vlc或(vlc -I qt)得到:

vlc
[...]
QPainter::setOpacity: Painter not active
QPainter::drawPath: Painter not active
QPainter::setPen: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawPath: Painter not active
QPainter::setBrush: Painter not active
QPainter::setOpacity: Painter not active
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
QWidget::setMinimumSize: (/QStatusBar) The largest allowed size is (16777215,16777215)
QWidget::setMaximumSize: (/QStatusBar) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
[0000560153078430] main playlist: playlist is empty
QWidget::setMinimumSize: (/FirstRun) Negative sizes (-491607381,-491607381) are not possible
QXcbConnection: XCB error: 2 (BadValue), sequence: 420, resource id: 0, major code: 1 (CreateWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 421, resource id: 41943045, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 422, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 423, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 424, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 426, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 427, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 428, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 432, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 436, resource id: 41943045, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 437, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 440, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 441, resource id: 41943045, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 445, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 446, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 449, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 450, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 2 (BadValue), sequence: 452, resource id: 0, major code: 1 (CreateWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 453, resource id: 41943049, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 454, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 455, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 456, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 458, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 459, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 460, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 461, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 465, resource id: 41943049, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 466, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 469, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 470, resource id: 41943049, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 474, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 475, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 476, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 479, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 482, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 483, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 500, resource id: 41943049, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 501, resource id: 41943049, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 502, resource id: 41943049, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 503, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 504, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 505, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 506, resource id: 41943049, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 507, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 508, resource id: 41943049, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 509, resource id: 41943049, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 510, resource id: 41943049, major code: 8 (MapWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 512, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 513, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 2 (BadValue), sequence: 522, resource id: 0, major code: 1 (CreateWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 523, resource id: 41943056, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 524, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 525, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 526, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 528, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 529, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 530, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 531, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 535, resource id: 41943056, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 536, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 539, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 540, resource id: 41943056, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 544, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 545, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 548, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 549, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 551, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 552, resource id: 41943056, major code: 12 (ConfigureWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 553, resource id: 41943056, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 554, resource id: 41943056, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 555, resource id: 41943056, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 556, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 557, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 558, resource id: 41943056, major code: 19 (DeleteProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 559, resource id: 41943056, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 560, resource id: 41943056, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 561, resource id: 41943056, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 562, resource id: 41943056, major code: 19 (DeleteProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 563, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 564, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 565, resource id: 41943045, major code: 12 (ConfigureWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 566, resource id: 41943045, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 567, resource id: 41943045, major code: 2 (ChangeWindowAttributes), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 568, resource id: 41943045, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 569, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 570, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 571, resource id: 41943045, major code: 19 (DeleteProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 572, resource id: 41943045, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 573, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 574, resource id: 41943045, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 575, resource id: 41943045, major code: 19 (DeleteProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 576, resource id: 41943045, major code: 8 (MapWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 578, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
QXcbConnection: XCB error: 3 (BadWindow), sequence: 579, resource id: 41943045, major code: 18 (ChangeProperty), minor code: 0
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/FirstRun) Negative sizes (-491607381,-491607381) are not possible
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)

编辑:如果我运行env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc,它可以工作,但是不舒服。我该如何解决?我无法从应用程序启动它或无法通过vlc打开。
如何将默认界面(qt)更改为例如skins2?

3 个答案:

答案 0 :(得分:1)

QT_AUTO_SCREEN_SCALE_FACTOR=0添加到文件/etc/environment中,如果不存在,请创建它并重新启动!

答案 1 :(得分:0)

我不知道svg界面,但看来ncurses界面应该可以在常规设置中正常工作。

vlc -I ncurses

答案 2 :(得分:0)

注意,GNOME上与Debian Stretch 9预先包装在一起的VLC构建已损坏。

不止几个论坛(以下来源)引用了Debian 9(Stretch)上VLC出现的此问题,下面推荐一些解决该问题的方法。问题与QT安装错误配置有关-同样是GUI安装中出现的错误。

首先,一个想法是通过重新安装QT(降级为QT4)来解决此问题。这是一个的想法。当然,这将成为您操作系统上其他应用程序的依赖项,并且您不想在尝试这种解决方案时陷入困境,没有出路。

对我有用的修复程序:正如另一个用户所说的,您必须更改传递给“ vlc”的环境变量,该变量在运行时会被拾取。您可以通过将命令添加到“ vlc”命令之前的简单命令来完成此操作:

# run this at the terminal to solve this problem temporarily

env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc 

这将允许从终端运行VLC时显示VLC GUI。但是,您可能想从其他地方运行,例如通过GNOME Launchers屏幕。

请尝试以下方法,以获得更永久的解决方案:

  • 转到文件/etc/environment(如果不存在,请以超级用户身份创建)
  • 将以下内容添加到该文件的新行中 QT_AUTO_SCREEN_SCALE_FACTOR=0
  • 重新启动系统

重新启动后,通过单击启动器图标再次运行VLC。将打开VLC GUI,您将获得所需的结果。

(这种情况在其他地方发生的证据:https://forum.manjaro.org/t/cannot-run-vlc-on-fresh-install-of-gnome-17-0-2/27846

也:(https://forum.videolan.org/viewtopic.php?t=144780

(有关相同问题和解决方案,请参见videolan.org这个问题:https://forum.videolan.org/viewtopic.php?f=13&t=146342#p480536