[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: llama.cpp, whisper.cpp, ggml: Next steps



[Christian Kastner]
> Adding the following to the "configure" step worked for me:
>
>     -DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_TARGET_MULTIARCH)/ggml
>     -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF \
>
>     $ ldd debian/libwhisper1/usr/lib/x86_64-linux-gnu/libwhisper.so.1
>           linux-vdso.so.1 (0x00007fb42c970000)
>           libggml.so => /usr/lib/x86_64-linux-gnu/ggml/glibc-hwcaps/x86-64-v4/libggml.so (0x00007fb42c8df000)
>           libggml-base.so => /usr/lib/x86_64-linux-gnu/ggml/glibc-hwcaps/x86-64-v4/libggml-base.so (0x00007fb42c830000)


Thanks.  Tried this approach, and get the same result.  But the binaries
are missing the required rpath/runpath:
 
  % ldd debian/whisper.cpp/usr/bin/whisper-stream |grep not 
          libggml.so => not found
          libggml-base.so => not found
  %

> By the way -- why TARGET instead of HOST? Genuinely curious, I thought
> its use case was just for toolchains.

Which TARGET?  Most likely it is because I have no idea how to properly
adjust cmake and is just cargo-culting until I get something limping
along. :)

-- 
Happy hacking
Petter Reinholdtsen


Reply to: