Skip to content

Impossible to link with statically built clickhouse-cpp-lib #408

Description

@fdr400

Installation command:

$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_INSTALL_PREFIX=/usr
$ cmake --build build
$ cmake --install build

That command only installs /usr/lib/libclickhouse-cpp-lib.a library.

But, by default, clickhouse building cityhash from sources, but it does not install it, it remains in build/contrib/build/contrib/cityhash/cityhash/libcityhash.a

Cityhash is not provided with basic Ubuntu package managers, though statically linked clickhouse can not be linked to the target project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions