Public bug reported:
Hello,
It seems to be impossible to compile any project using Qt6 VirtualKeyboard due
to the missing file.
To reproduce:
1. Install dependencies: apt update && apt install cmake g++ make lsb-release
qt6-base-dev qt6-declarative-dev qt6-virtualkeyboard-dev
2. Make a minimal CMakeLists.txt:
```
cmake_minimum_required(VERSION 3.16)
project(helloworld)
find_package(Qt6 REQUIRED COMPONENTS Core VirtualKeyboard)
qt_standard_project_setup()
qt_add_executable(helloworld
main.cpp
)
target_link_libraries(helloworld PRIVATE Qt6::Core Qt6::VirtualKeyboard)
```
main.cpp:
```
int main() {}
```
3. Run `cmake .` trying to generate the cmake files
4. The following error occurs:
```
cmake ..
CMake Error at
/usr/lib/x86_64-linux-gnu/cmake/Qt6VirtualKeyboard/Qt6VirtualKeyboardConfigVersion.cmake:2
(include):
include could not find requested file:
/usr/lib/x86_64-linux-gnu/cmake/Qt6VirtualKeyboard/Qt6VirtualKeyboardConfigVersionImpl.cmake
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake:167 (find_package)
CMakeLists.txt:5 (find_package)
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at
least version "0.5.0")
-- Configuring incomplete, errors occurred!
```
Expected behaviour:
This minimal project does generate & compile properly.
Other qt6 related packages do seem to have the
[...]ConfigVersionImpl.cmake file inside of them, this one is an
outlier. I tried looking for it with apt-file, but no other package
provides it.
Looking at other distros (Arch) I can see that they do provide this
file: https://archlinux.org/packages/extra/x86_64/qt6-virtualkeyboard/
As a workaround manually copying it from an Arch system and adjusting
the version fixes the issue.
System information:
# lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
# apt-cache policy qt6-virtualkeyboard-dev
qt6-virtualkeyboard-dev:
Installed: 6.4.2+dfsg-4build2
Candidate: 6.4.2+dfsg-4build2
Version table:
*** 6.4.2+dfsg-4build2 500
500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
100 /var/lib/dpkg/status
I ran Ubuntu in a Docker container for this reproduction to get a clean system,
but the same problem appears on a freshly installed Ubuntu Desktop 24.04.1 LTS.
** Affects: qt6-virtualkeyboard (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2087539
Title:
Impossible to build anything requiring qt6-virtualkeyboard with CMake
due to missing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt6-virtualkeyboard/+bug/2087539/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs