Skip to content

Building failes when adding to project #103

Description

@jimmyd-be

Describe the bug
When adding this library to our code using "Option 2: Importing the code in your project" we are getting errors.

PLatform:

  • OS: Fedora
  • Version 41

To Reproduce
Steps to reproduce the behavior:
Add the library to cmake

Expected behavior
When adding the project to my cmake file it gives errors when trying to build the library. When cloning QtUsb repo and build it from there we do not getting any errors.

Additional context
Cmake errors are:

CMake Error at /usr/lib64/cmake/Qt6/QtPublicTargetHelpers.cmake:307 (set_property):
Attempt to promote imported target "Threads::Threads" to global scope (by
setting IMPORTED_GLOBAL) which is not built in this directory.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt6/QtPublicTargetHelpers.cmake:348 (__qt_internal_promote_target_to_global)
/usr/lib64/cmake/Qt6/QtPublicTargetHelpers.cmake:332 (_qt_internal_promote_3rd_party_target_to_global)
/usr/lib64/cmake/Qt6/QtPublicDependencyHelpers.cmake:59 (_qt_internal_promote_3rd_party_provided_target_and_3rd_party_deps_to_global)
/usr/lib64/cmake/Qt6/Qt6Dependencies.cmake:34 (_qt_internal_find_third_party_dependencies)
/usr/lib64/cmake/Qt6/Qt6Config.cmake:146 (include)
build/_deps/qtusb-src/CMakeLists.txt:16 (find_package)

CMake Warning at /usr/lib64/cmake/Qt6/QtBuildHelpers.cmake:12 (message):
The officially supported CMake generator for building Qt is Ninja / Ninja
Multi-Config. You are using: 'Unix Makefiles' instead. Thus, you might
encounter issues. Use at your own risk.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt6/QtBuildHelpers.cmake:396 (qt_internal_validate_cmake_generator)
/usr/lib64/cmake/Qt6/QtBuild.cmake:4 (qt_internal_setup_build_and_global_variables)
/usr/lib64/cmake/Qt6/QtSetup.cmake:6 (include)
/usr/lib64/cmake/Qt6/QtBuildRepoHelpers.cmake:21 (include)
/usr/lib64/cmake/Qt6/QtBuildRepoHelpers.cmake:232 (qt_build_internals_set_up_private_api)
/usr/lib64/cmake/Qt6/QtBuildRepoHelpers.cmake:548 (qt_build_repo_begin)
build/_deps/qtusb-src/CMakeLists.txt:26 (qt_build_repo)

-- Force setting build type to 'RelWithDebInfo'.
CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:464 (message):
feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
run.
Call Stack (most recent call first):
/usr/lib64/cmake/Qt6/QtBuildInformation.cmake:31 (feature_summary)
/usr/lib64/cmake/Qt6/QtBuildRepoHelpers.cmake:396 (qt_print_feature_summary)
/usr/lib64/cmake/Qt6/QtBuildRepoHelpers.cmake:557 (qt_build_repo_end)
build/_deps/qtusb-src/CMakeLists.txt:26 (qt_build_repo)

Happy hollidays and hope someone can help me with this.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions