Skip to content

CMake configure fails with Qt6 and -DBUILD_SHARED_LIBS=OFF due to missing export target log4qt_resources_1 #85

@SquallATF

Description

@SquallATF

When configuring log4qt with Qt6 and static libraries (-DBUILD_SHARED_LIBS=OFF), CMake fails immediately during the configure step:

-- The C compiler identification is Clang 21.1.1 with MSVC-like command-line
-- The CXX compiler identification is Clang 21.1.1 with MSVC-like command-line
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/llvm21/bin/clang-cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/llvm21/bin/clang-cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
Qt6 found.
-- Qt version is 6.9.2
-- Log4Qt: Registered logging support as qml module (org.log4qt)
-- Log4Qt: Enabling qml logging support
-- Log4Qt: Disabling database logging support - disabled by cmake option
-- Log4Qt: Enabling telnet logging support
-- Configuring done (6.9s)
CMake Error: install(EXPORT "log4qt_targets" ...) includes target "log4qt" which requires target "log4qt_resources_1" that is not in any export set.
CMake Error: install(EXPORT "log4qt_targets" ...) includes target "log4qt" which requires target "log4qt_resources_1" that is not in any export set.
CMake Error: install(EXPORT "log4qt_targets" ...) includes target "log4qt" which requires target "log4qt_resources_1" that is not in any export set.
CMake Error: install(EXPORT "log4qt_targets" ...) includes target "log4qt" which requires target "log4qt_resources_1" that is not in any export set.
-- Generating done (0.4s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions