Submodules not included on pub.dev
This project includes llama.cpp as a submodule, and it is used when running an Android build.
The submodule is not included in the published package on pub.dev, though, leading to errors.
CMake Error at CMakeLists.txt:16 (add_subdirectory):
add_subdirectory given source "./llama.cpp" which is not an existing
directory.
Exactly the same error here
@hacker1024 as a workaround, I have put the whole llama.cpp repo in:
"C:\Users****\AppData\Local\Pub\Cache\hosted\pub.dev\llama_cpp_dart-0.0.8\src\llama.cpp"
Not ideal, but it works for now.
if you can make a PR, I would love to merge it
As far as I'm aware, this isn't really something code-related as it is more that something went wrong while running pub publish.
I need to manually cd into the package from under ~/.pub_cache to clone the llama.cpp into its /src folder to make it run
I checked the .gitmodules why are you using two versions of the llama.cpp library? Do you know the binaries from the releases e.g. https://github.com/ggerganov/llama.cpp/releases/tag/b4493 ?
My guess that using them would also save a lot of time.