Replies: 2 comments
-
@mudler I have a windows build! Not the best but at least a build.
Now figuring out what works and what not
fixing models manually...
Yeah, not the best result :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Last update here, from now on work on the build will result in PRs or issues. All the current changes (breaks unixoide systems currently): dionysius/LocalAI@master...windows_build
should build through and you'll have a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm no C++ dev and just liked to see how far I can get. There is no guarantee that I even use the tools correctly or configure stuff correctly. There is no need for Visual Studio and might even be better to not have it and/or the visual build tools installed as it is annoyingly interfering in some circumstances.
As a first attempt there are no gpu accelerators set, so trying to build it as minimally as possible.
Prereqs:
This helps to describe the base line of the environment and operation. There are definitely alternative ways. My current package manager is scoop, but this works definitely also with chocolatey packages and other package managers etc. - choose your favourite. Git is expected to be already installed.
and follow printed post-installation commands.
Open fresh
git bash
so we have all the new envs.Preparation:
Get a clean checkout of your wished repo state and make a new branch, e.g.
git checkout -b windows_build master; git reset --hard; make clean; git clean -fdx
Create the following files:
windows_env
windows_patch
fixes issues with pwd in toplevel Makefilefixed since merge minor: replace shell pwd in Makefile with CURDIR for better windows compatibility #1571source windows_env
so you have my current used env for cmake and vcpkg - There should be no error! Check withprintenv
that everything looks fine for CMAKE env variables and we have access to the required binaries.First steps:
First we only checkout the submodules because we need to patch files there a well. We can hopefully skip this in the future.
make get-sources
Hacking the .git subfolders away so we can apply the next patch after:
rm -rf sources/*/.git sources/*/*/.git
Apply the patch for the sources (So far I couldn't figure out to tell gcc to make .o files instead of .obj)
git apply windows_patch
Building:
We can finally start building. We need to build grpc completely again so we are forced to use:
make BUILD_GRPC_FOR_BACKEND_LLAMA=true build
Beta Was this translation helpful? Give feedback.
All reactions