Я создал VLC, но нет никакого интерфейса (Linux) - PullRequest
0 голосов
/ 28 ноября 2018

Я использовал 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 открывает интерфейс «терминала»это не что иное, как кли. интерфейс ncurses

Теперь 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 голосов
/ 02 декабря 2018

Добавьте QT_AUTO_SCREEN_SCALE_FACTOR=0 в файл /etc/environment, если он существует, если нет, то создайте его и перезагрузите!

0 голосов
/ 18 декабря 2018

Внимание, сборка VLC, поставляемая в комплекте с Debian Stretch 9 для GNOME, сломана.

Более чем на нескольких форумах (источники ниже) ссылаются на эту проблему, которая возникает с VLC на Debian 9 (Stretch), и ниже рекомендуется несколько способов ее обойти.Проблема связана с неправильной настройкой установки QT - опять же, ошибка, которая появляется в вашей установке с графическим интерфейсом.

Во-первых, одна из идей - обойти эту проблему путем переустановки QT (понижение до QT4).Это плохая идея.Это, безусловно, будет зависеть от других приложений в вашей ОС, и вы не хотите застревать на полпути без выхода из положения при попытке такого решения.

Исправление, которое работало для меня: как другой пользовательзаявил, что вы должны изменить переменную окружения, передаваемую в "vlc", которую он выбирает при запуске.Вы можете сделать это с помощью простой команды добавления команды к команде "vlc":

# run this at the terminal to solve this problem temporarily

env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc 

Это позволит отображать графический интерфейс VLC при запуске VLC с терминала.Тем не менее, вы можете запустить из другого места, например, через экран запуска GNOME.

Попробуйте это вместо более постоянного решения:

  • Перейдите к файлу /etc/environment (создайте его как суперпользователь, если он не существует)
  • Добавьтепосле этого файла в новой строке QT_AUTO_SCREEN_SCALE_FACTOR=0
  • перезагрузите систему

После перезагрузки снова запустите VLC, щелкнув значок запуска.Откроется графический интерфейс VLC, и вы получите желаемый результат.

(свидетельство того, что это происходит в другом месте: 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)

0 голосов
/ 30 ноября 2018

Я не знаю об интерфейсе svg, но похоже, что интерфейс ncurses должен работать в обычной установке.

vlc -I ncurses
...