Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
fdr400 opened this issue Jan 24, 2025 · 0 comments · Fixed by #409
Closed

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

fdr400 opened this issue Jan 24, 2025 · 0 comments · Fixed by #409

Comments

@fdr400
Copy link
Contributor

fdr400 commented Jan 24, 2025

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

fdr400 added a commit to fdr400/clickhouse-cpp that referenced this issue Jan 27, 2025
@Enmk Enmk closed this as completed in #409 Feb 17, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant