Can't build VLC - can't get past No package 'Qt5QuickControls2' found

*nix specific usage questions
mhd001
New Cone
New Cone
Posts: 2
Joined: 05 Jul 2020 23:38

Can't build VLC - can't get past No package 'Qt5QuickControls2' found

Postby mhd001 » 06 Jul 2020 05:41

I'm trying to build on Ubuntu 18.04.4 LTS. I installed and built a full Qt5 and then fully cloned vlc. I don't know how to get past this failure on Qt5QuickControls2. Can anyone tell me what works? Here are log highlights:

Code: Select all

$ git clone https://github.com/videolan/vlc.git Cloning into 'vlc'... ... $ cd vlc $ ./bootstrap ... Successfully bootstrapped $ ./configure PKG_CONFIG_PATH=~/repos/qt5/qtbase/lib/pkgconfig ... checking for QT... no configure: error: No package 'Qt5QuickControls2' found. If you want to build VLC without GUI, pass --disable-qt.

myQwil
New Cone
New Cone
Posts: 4
Joined: 17 Jan 2021 15:12

Re: Can't build VLC - can't get past No package 'Qt5QuickControls2' found

Postby myQwil » 17 Jan 2021 16:45

The package that needs to be installed is called qtquickcontrols2-5-dev

jholland
New Cone
New Cone
Posts: 1
Joined: 12 Mar 2022 13:21

Re: Can't build VLC - can't get past No package 'Qt5QuickControls2' found

Postby jholland » 12 Mar 2022 14:47

I hit this problem today, it's still not fixed as of now for someone getting started. It took some digging, but I just got past it.

To finish ./configure on today's master branch, the extra install I needed on ubuntu 20 was this:

Code: Select all

sudo apt install libxcb-shm0-dev libxcb-xv0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-composite0-dev libx11-xcb-dev qtquickcontrols2-5-dev qtdeclarative5-dev
.

After that, it could configure and build, but still would not display the gui properly due to qt errors at runtime, so in order to run it, I also had to install some more qt things:

Code: Select all

sudo apt install qml-module-qtquick-controls qml-module-qtqml-models2
HTH.

Acks: tho none of them quite had everything I needed, this was ultimately found with help from several other sources, so my thanks to their authors for these key breadcrumbs:
- https://github.com/void-linux/void-pack ... -599040082
- https://packages.ubuntu.com/bionic/qtdeclarative5-dev
- https://www.linux.org/threads/how-do-i- ... post-70456
- https://askubuntu.com/a/450990/640371
- https://stackoverflow.com/a/63075609/3427357


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests