go-skynet / go-llama.cpp

LLama.cpp golang bindings
MIT License
658 stars 80 forks source link

Problems after download recent updates #173

Open Andreh1982 opened 1 year ago

Andreh1982 commented 1 year ago

Hello, actually i'm using this binding in a personal project (thank you go-skynet for the opportunity) and after download the lastest code, i'm getting the follow error:

github.com/go-skynet/go-llama.cpp binding.cpp:1:10: fatal error: common.h: No such file or directory 1 | #include "common.h" | ^~~~~~ compilation terminated.

I guess i miss something but i cant find what is happening, can you guys help me?

mudler commented 1 year ago

Did you updated the submodules too? Try a fresh clone otherwise

Andreh1982 commented 1 year ago

Screenshot from 2023-08-20 20-20-54 Screenshot from 2023-08-20 20-22-04 Hey Ettore! :)

I will try a fresh install, but maybe you can check if i'm doing right. The idea is to use as a module inside my project:

1 - Cloned the repo inside my project folder; 2 - Compiled the libbinding.a; 3 - Copy the libbinding.a to the root folder of my project; 4 - Copy the folder llama.cpp to the root folder of my project; 5 - Copy the file llama.h to the root folder of my project;

Is that right? Being honest, i was only following the errors and trying to fix then. But this one from "common.h"... damn! haha

ps1: sorry the late! ps2: Screenshot from the file folder and the command running the project (the old who is working okie).