-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
README: Update with CMake and windows example #748
Conversation
README.md
Outdated
@@ -145,6 +145,9 @@ git clone https://github.com/ggerganov/llama.cpp | |||
cd llama.cpp | |||
make | |||
|
|||
#For Windows and CMake, use the following command instead: | |||
cmake -S . -B build/ -G "MinGW Makefiles" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this only works for mingw. but installing a vs community edition is much simpler for average users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed, you could add the following lines for the people using vs and cmake:
cd <path_to_llama_folder>
mkdir build
cd build
cmake ..
cmake --build . --config Release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have updated it with your suggestion
@ggerganov shall we consider to only use CMake to build the project? Maintaining makefile + cmake it hard. I already noticed some difference between two build system. When we need to pull in external dependency, it will be trickier to do so in Makefile. |
@@ -145,6 +145,13 @@ git clone https://github.com/ggerganov/llama.cpp | |||
cd llama.cpp | |||
make | |||
|
|||
#For Windows and CMake, use the following command instead: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the instruction looks good. can we also mentioned that the user needs to install visual studio?
@howard0su For now we will keep the Makefile since it is the most trivial way to build the project and a lot of developers appreciate the simplicity |
Added example to build the project using CMake since lot of people have been enquiring about this