Skip to content

cmake : add install() for impl libraries#23511

Merged
ggerganov merged 6 commits into
masterfrom
gg/cmake-fix-builds
May 22, 2026
Merged

cmake : add install() for impl libraries#23511
ggerganov merged 6 commits into
masterfrom
gg/cmake-fix-builds

Conversation

@ggerganov
Copy link
Copy Markdown
Member

@ggerganov ggerganov commented May 22, 2026

Overview

cont #23462

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f (#23462). Without this, cmake --install fails to copy
the shared libraries, causing runtime errors like:

llama-server: error while loading shared libraries: libllama-server-impl.so: cannot open shared object file

Fixes #23494

Additional information

Addresses #23494 (comment)

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES. llama.cpp + pi + Qwen3.6-27B-MTP:Q8_0

ggerganov added 5 commits May 22, 2026 10:12
Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: #23494 (comment)

Assisted-by: llama.cpp:local pi
@ggerganov
Copy link
Copy Markdown
Member Author

@CISC
Copy link
Copy Markdown
Member

CISC commented May 22, 2026

build-info.h problem still present:
https://github.com/ggml-org/llama.cpp/actions/runs/26274420858/job/77335160714?pr=23511

@ggerganov
Copy link
Copy Markdown
Member Author

YOLO merge?

Copy link
Copy Markdown
Member

@danbev danbev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally.

@ggerganov ggerganov marked this pull request as ready for review May 22, 2026 08:45
@ggerganov ggerganov requested review from a team and ngxson as code owners May 22, 2026 08:45
@ggerganov ggerganov merged commit bbce619 into master May 22, 2026
7 of 46 checks passed
@ggerganov ggerganov deleted the gg/cmake-fix-builds branch May 22, 2026 08:46
@CISC
Copy link
Copy Markdown
Member

CISC commented May 22, 2026

@Green-Sky
Copy link
Copy Markdown
Collaborator

Was about to complain 😄

@github-actions github-actions Bot added android Issues specific to Android examples devops improvements to build systems and github actions server labels May 22, 2026
Alex7MV pushed a commit to Alex7MV/claude_llama.cpp that referenced this pull request May 22, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
ProTekk pushed a commit to ProTekk/buun-llama-cpp that referenced this pull request May 22, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
gabe-l-hart added a commit to gabe-l-hart/llama.cpp that referenced this pull request May 22, 2026
* origin/master:
server: only parse empty msg if continuing an assistant msg (ggml-org#23506)
perplexity : fix integer overflow (ggml-org#23496)
SYCL: improve MoE prefill throughput (ggml-org#23142)
sycl : Level Zero detection in ggml_sycl_init (ggml-org#23097)
SYCL : gated_delta_net K>1 (ggml-org#23174)
SYCL: add BF16 to DMMV kernel path (~4x tg speedup on Intel Arc) (ggml-org#21580)
docs: Update documentation with Granite 4.0/4.1 (ggml-org#23404)
ggml-zendnn : add Q8_0 quantization support (ggml-org#23414)
cmake : build router app only during standalone builds (ggml-org#23521)
vocab : fix HybridDNA tokenizer (ggml-org#23466)
cmake : add install() for impl libraries + fix apple builds (ggml-org#23511)
CUDA: fix PDL CC check for JIT compilation (ggml-org#23471)
cmake : remove STATIC from impl libraries, enable LLAMA_BUILD_APP by default (ggml-org#23462)
Update WebGPU support and add link to blog/demo (ggml-org#23483)
vulkan: fuse snake activation (mul, sin, sqr, mul, add) (ggml-org#22855)
@sasa7812
Copy link
Copy Markdown

Let's delete the broken images, people keep downloading them and keep opening duplicate bugs about missing libraries. Ideally, triggering image rebuild would be great

baramofme pushed a commit to baramofme/llama-cpp-turboquant that referenced this pull request May 23, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
srossitto79 pushed a commit to srossitto79/llama.cpp that referenced this pull request May 23, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
testeddoughnut pushed a commit to testeddoughnut/llama.cpp that referenced this pull request May 25, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
Alex7MV pushed a commit to Alex7MV/claude_llama.cpp that referenced this pull request May 27, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
fewtarius pushed a commit to fewtarius/llama.cpp that referenced this pull request May 30, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit 276a721. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
turbo-tan pushed a commit to turbo-tan/llama.cpp-tq3 that referenced this pull request Jun 2, 2026
…#23511)

* pi : update

* ci : fix ios build

* ci : fix andoroid

* ci : fix apple builds

* cmake : add install() for impl libraries

Add install(TARGETS <target> LIBRARY) for all -impl libraries that were
changed from STATIC to shared (controlled by BUILD_SHARED_LIBS) in
commit bb28c1f. Without this, cmake --install fails to copy the shared
libraries, causing runtime errors like:

  llama-server: error while loading shared libraries: libllama-server-impl.so

Ref: ggml-org#23494 (comment)

Assisted-by: llama.cpp:local pi

* ci : fix xcframework build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Issues specific to Android devops improvements to build systems and github actions examples server

Projects

None yet

5 participants