Ubuntu compile failing

This forum is about all development around libVLC.
matthias26345
New Cone
New Cone
Posts: 2
Joined: 02 Mar 2024 03:43

Ubuntu compile failing

Postby matthias26345 » 02 Mar 2024 03:46

New install of Ubuntu 22. I followed the [UnixCompile][https://wiki.videolan.org/UnixCompile/] guide.

When running `./compile` it ended up with this error:

Code: Select all

configure: error: No package 'xcb-xkb' found. Pass --disable-xcb to skip X11 support.
Apparently I already have libx11-xcb-dev:

Code: Select all

$ sudo apt-get install libx11-xcb-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done libx11-xcb-dev is already the newest version (2:1.7.5-1ubuntu0.3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [code]

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

Re: Ubuntu compile failing

Postby Rémi Denis-Courmont » 02 Mar 2024 09:45

You know you could search it yourself: https://packages.ubuntu.com/search?sear ... c&arch=any

Or you could just have tried to match the missing package name, that being "xcb-xkb"... so libxcb-xkb-dev.

If you get stuck on something so trivial, you're probably going to have a real hard time later when you git some not so obvious hurdle.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

matthias26345
New Cone
New Cone
Posts: 2
Joined: 02 Mar 2024 03:43

Re: Ubuntu compile failing

Postby matthias26345 » 02 Mar 2024 20:09

I am not an expert at linux packages. I am reporting an issue with the instructions, so others like me can resolve the same issue, or perhaps the wiki page can be updated so no one encounters these errors in the future.

Thanks for the link to the Ubuntu package search page, and it looks like there's a ".pc" suffix that's required? Anyway, I'll keep it in mind the next time I'm debugging a build.

After installing libxcb-xkb-dev, that error no longer appears.

A new error appeared:

Code: Select all

configure: error: No package 'Qt5Quick' found No package 'Qt5QuickWidgets' found Package 'Qt5Quick', required by 'Qt5QuickControls2', not found. If you want to build VLC without GUI, pass --disable-qt.
Searching the Ubuntu packages returns

Code: Select all

qtdeclarative5-dev
After installing that, the configure command succeeds without issue.

Would it make sense to add libxcb-xkb-dev and qtdeclarative5-dev to the apt install command on the wiki page? Either under "Prepare your environment" or "Troubleshooting", depending on how typical this error is.

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

Re: Ubuntu compile failing

Postby Rémi Denis-Courmont » 03 Mar 2024 11:09

It depends what version you are trying to build (and on which Ubuntu version). There are literally over a hundred different dependencies, so it is simply not possible to list them all. Those packages are new dependencies of VLC 4, so it may be misleading to add them to the wiki when stable releases don't actually use them, and Linux distros might not universally provide them.

But anyway, my point being, to compile VLC, you need to be at least able to sort such a comparatively trivial problem on your own.
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 1 guest