cmake fails to generate QT6 build on Ubuntu 26.04

Started by Ferdi, May 18, 2026, 06:52:54 AM

Previous topic - Next topic

Ferdi

Since upgrading to Ubuntu 26.04 I can no longer build avidemux from git. This is because cmake fails to generate the QT6 part with the following error:

  Imported target "Qt6::GuiPrivate" includes non-existent path

    "/usr/include/x86_64-linux-gnu/qt6/QtGui/6.10.2"


Ferdi

When looking at the logfile, at first the qt6 include paths are correctly found.

However later on, another cmake script apparently adds the qt6 version number to the end of that path. This version number directory does not exist on my system causing the qt6 build to fail.

eumagga0x2a

Quote from: Ferdi on May 19, 2026, 07:54:36 PMThis version number directory does not exist on my system

A big disclaimer: I don't have a working Ubuntu 26.04 on my PC yet (will probably create a VM as it doesn't seem to run on bare metal where gdm3 fails with NVIDIA driver installed – a combination where Fedora with RPM Fusion just works), but the list of files in qt6-base-private-dev

URL: https://packages.ubuntu.com/resolute/amd64/qt6-base-private-dev/filelist
includes the versioned directory. Will try to reproduce once I have got 26.04 running.

Ferdi

The package qt6-base-private-dev is not listed, nor installed as a dependency from the createDebFromSourceUbuntu.bash script.

It probably was installed in 25.10, Avidemux build without issue, but likely was removed by the upgrade to 26.04

Anyway installing the package solved the problem. I suggest adding it to the createDebFromSourceUbuntu.bash script so it gets installed when needed.

eumagga0x2a

Quote from: Ferdi on May 20, 2026, 10:25:51 PMThe package qt6-base-private-dev is not listed, nor installed as a dependency from the createDebFromSourceUbuntu.bash script.

Exactly, just wanted to post this as I saw your reply. The package is automatically installed only when building appImage in a Docker container so far. I wonder whether it could be made optional (i.e. package missing = disable all Wayland-related code), but for now it needs to be installed manually as you have done.