-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake .. error #1
Comments
Thank you for this! I am on mac so I haven't done much testing on Windows. So reporting windows issues is really helpful! I used to include unix headers like Now it should compile without extra steps! At least the most current build v0.1.2 should work. Since you got llama.cpp working I doubt its because of the following but just in case that error was because you did not have the whole llama.cpp subfolder, check that you get the llama.cpp submodule when downloading the repo:
Then there should be a folder called Do let me know if you still have issues building. Thanks again! |
Hi, I've been trying to follow this path as well, but got a different error. Results in two errors when using Any idea what's going on here? |
Hi, That is my fault. I should have updated this issue! The llmodel backend and upcoming gpt4all-backend (which I hope to switch soonish) use I hope this works on Windows:
You can get MinGW from MSYS2 but I think Visual Studio has support too, at least these docs show MinGW-w64 target. Let me know if this is too much of a hassle. Also let me know if you really need MSVC target. I could try to switch back from MinGW... I know it would be easier for Windows users. |
FYI, tried to get a cygwin + MinGW/MSYS22 toolchain working on Windows this week-end but got stuck. Despite trying all three versions of cmake I'm aware of (independent, inside VS or inside MSYS2), different MingGW installs, and both versions of VS (2022 vs VS Code) haha. I never got beyond either cmake telling me that there's no "MinGW Makefiles" build target, or VS 2022 telling me it doesn't know about unistd.h. :) This was a lesson and I'm not asking you to fix it. Instead I think I'll wait for the REST API, that will also make it easier to switch between different LLM providers and between local/hosted in the future. Thanks anyway for you help man, sorry I wasn't able to improve things! |
Oh wow! I didn't know it was such a hurdle. I'm sorry. :( Let me see if I can make the backend windows MSVC compatible and submit a pull request to the backend. If that gets approved, I can then once again switch back to using <windows.h>. This is a bit of back-and-forth but do I think it would be generally useful to have it easily compiled using Visual Studio. I just wanted to get the new backend working first because that actually improved things a LOT. Will update this issue if I can get it working again... I agree that if you're going to need different LLM providers, then REST API will be a better solution. |
EDIT: |
v0.2.0 comes with big changes:
Also updates during past few versions:
Big thanks to everyone so far! You have been hugely helpful. :) |
on windows (i had no problems compiling llama.cpp)
but here upon
cmake ..
`H:\LlamaGPTJ-chat\build>cmake ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30037.0
-- The CXX compiler identification is MSVC 19.29.30037.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
CMake Error at CMakeLists.txt:94 (add_subdirectory):
The source directory
does not contain a CMakeLists.txt file.
-- Configuring incomplete, errors occurred!`
The text was updated successfully, but these errors were encountered: