devbox
devbox copied to clipboard
[Package Issue Report]: <qt6.full> Unable to build qt6 application
Are you requesting a new package or reporting an issue on an existing one? Reporting issue with qt6.full package
If reporting an issue on an existing one, what is the name of the package?
qt6.full
What changes are you requesting? I do the following in shell in the devbox playground at https://devbox.sh/new
> devbox add qt6.full cmake pkgconfig
> git clone https://github.com/pkuniec/qt6_cmake_example.git
> mkdir build
> cd build
> cmake ../qt6_cmake_example/
I get this output:
-- The CXX compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/iiq295j1z4q1sxmdbrl2j8ma3l5ns4wr-gcc-wrapper-11.3.0/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- 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)
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
-- Configuring done (1.4s)
CMake Error at /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:603 (add_executable):
Cannot find source file:
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/metatypes/qt6core_release_metatypes.json
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Call Stack (most recent call first):
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:564 (_qt_internal_create_executable)
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:777 (qt6_add_executable)
app/CMakeLists.txt:1 (qt_add_executable)
CMake Error at /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2369 (add_library):
Cannot find source file:
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/metatypes/qt6quick_release_metatypes.json
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Call Stack (most recent call first):
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2295 (_qt_internal_add_library)
/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2391 (qt6_add_library)
app/Example/CMakeLists.txt:1 (qt_add_library)
-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
I see that the file complained about does not exist:
> ls /nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/metatypes/qt6core_release_metatypes.json
ls: cannot access '/nix/store/gcgfdiaj8yafh3c2kcwagqcc04dndmxv-qt-full-6.6.0/metatypes/qt6core_release_metatypes.json': No such file or directory
That file does exist in other places in /nix/store
❯ find /nix/store -name qt6core_release_metatypes.json
/nix/store/0hb20vrnjnnlssa030kxqwbnjr6kr4jh-qtbase-6.6.0/metatypes/qt6core_release_metatypes.json
/nix/store/v68cn0sdlz7iicjnq7gr48gx2sbn15i9-profile/metatypes/qt6core_release_metatypes.json
I'm not sure if qt6.full is broken or if I am somehow supposed to configure cmake to look in multiple package stores to do the build.