Skip to content

libzip build issue on vanilla Ubuntu 22.04 #104

@donjan

Description

@donjan

Running qss-compiler 128c937 on a fresh Ubuntu 22.04 VM with Python 3.10.6.
Default Conan 1.59.0 profile and CMake updated to 3.26.1.

Observed behaviour

The build fails with

CMake Error at cmake/AddQSSC.cmake:115 (target_link_libraries):
  Target "QSSCPayloadZip" links to:

    libzip::zip

  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.

Expected behaviour
The build system should pick up on libzip.

Workaround
Telling CMake to use the OS's zip library works, but requires additional intervention.

--- a/lib/Payload/ZipPayload/CMakeLists.txt
+++ b/lib/Payload/ZipPayload/CMakeLists.txt
@@ -24,7 +24,7 @@ qssc_add_plugin(QSSCPayloadZip QSSC_PAYLOAD_PLUGIN
 
         LINK_LIBS
         QSSCPayload
-        libzip::zip
+        zip

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