QtExcel / QXlsx

Excel file(*.xlsx) reader/writer library using Qt 5 or 6. Descendant of QtXlsxWriter.
https://qtexcel.github.io/QXlsx/
MIT License
1.16k stars 358 forks source link

CmakeLists fails to configure on Qt 6.4.1 xubuntu 20.04 #271

Closed afendin closed 1 year ago

afendin commented 1 year ago

Just tried to open HelloWorld project

Running /home/amir/Programs/Qt/Tools/CMake/bin/cmake -S /home/amir/Projects/QXlsx/HelloWorld -B /home/amir/builds/HelloWorld-Desktop_Qt_6_4_1_GCC_64bit-Debug in /home/amir/builds/HelloWorld-Desktop_Qt_6_4_1_GCC_64bit-Debug.
-- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) 
Current Path of QXlsx
/home/amir/Projects/QXlsx/HelloWorld/QXlsx/../
/home/amir/Projects/QXlsx/HelloWorld/QXlsx/../QXlsx/header/
/home/amir/Projects/QXlsx/HelloWorld/QXlsx/../QXlsx/source/
-- Configuring done
CMake Error at /home/amir/Programs/Qt/6.4.1/gcc_64/lib/cmake/Qt6Gui/Qt6GuiTargets.cmake:85 (set_target_properties):
  The link interface of target "Qt6::GuiPrivate" contains:

    XKB::XKB

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /home/amir/Programs/Qt/6.4.1/gcc_64/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake:52 (include)
  /home/amir/Programs/Qt/6.4.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake:157 (find_package)
  CMakeLists.txt:13 (find_package)

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
CMake process exited with exit code 1.

Elapsed time: 00:00.
afendin commented 1 year ago

Had to to install libxkbcommon-dev