Kienyew / Puff

滚动歌词播放器 Music player with interactive lyrics view
3 stars 0 forks source link

Build failed : Failed to find Qt component "Quick". #1

Open bretttolbert opened 7 months ago

bretttolbert commented 7 months ago

I initially installed qt6-base-dev and cmake. I then got past one error by installing qt6-multimedia-dev.

I cannot figure out how to install the Qt6 "Quick" dependency. I have a /usr/lib/x86_64-linux-gnu/cmake/Qt6Quick3D/ directory but it's looking for a /usr/lib/x86_64-linux-gnu/cmake/Qt6Quick/ directory, which doesn't exist although I have libqt6quick6 installed.

I have installed libgl1-mesa-dev libglvnd-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6quick6 libqt6quickwidgets6 to no success.

brett@pentatonic:~/Git/Puff$ sudo apt install libqt6quick6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libqt6quick6 is already the newest version (6.2.4+dfsg-3ubuntu1).
libqt6quick6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.
brett@pentatonic:~/Git/Puff$ cmake -Bbuild
-- Could NOT find Qt6Quick (missing: Qt6Quick_DIR)
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
CMake Error at CMakeLists.txt:10 (find_package):
  Found package configuration file:

    /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake

  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt component "Quick".

  Expected Config file at
  "/usr/lib/x86_64-linux-gnu/cmake/Qt6Quick/Qt6QuickConfig.cmake" does NOT
  exist
Kienyew commented 7 months ago

@bretttolbert https://stackoverflow.com/questions/77764194/could-not-find-qt6quick-missing-qt6quick-dir Does this help?

If not, most package manager provides tool to search which package a file belongs to. For apt: https://wiki.debian.org/apt-file. Try to install it and run apt-file update && apt-file search Qt6QuickConfig.cmake to find any clue.