How to build libllama.so with the new cmake #10938
-
I used to be able to do make -j libllama.so to get libllama.so and libggml.so. But I don't know how to do it now with the new cmake setup. Does anyone here know? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Oh lol, removing the first 3 lines from the Makefile and then doing:
Still works... I did not expect that. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. I tried it: [ 23%] Built target ggml-base But no .so files in build/src/ cd build/src |
Beta Was this translation helpful? Give feedback.
-
Thanks so much! I used the files build/src/libllama.dylib and build/ggml/src/libggml.dylib to replace my old .so files and I can confirm it works. |
Beta Was this translation helpful? Give feedback.
I should be possible to use the following command to build with
cmake
:$ cmake --build build --target llama
And the shared library should be created in
build/src/
afterwards.