Closed fivestones closed 1 year ago
Did you use vcpkg? Also try use GitHub Actions, iirc there's an Apple M1 option.
vcpkg worked. I haven't used that before but for others who might want to do the same, I did:
git clone https://github.com/LagPixelLOL/ChatGPTCLIBot.git
cd ChatGPTCLIBot
cd main/interface/
rm -r clip
git clone https://github.com/dacap/clip.git
cd ../..
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh --disableMetrics
cd ..
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build build
That should do it. Thanks!
Also you can delete the vcpkg.json so you can install the libraries at a global level not at the project level, if vcpkg detects theres a vcpkg.json, the installed libraries can only be used in this project but not in others.
And you dont have to do git clone https://github.com/dacap/clip.git
since its a submodule so you can run
git submodule update --init --recursive --remote --merge
in the project's root folder to initialize the submodule so you dont have to manually git clone it.
Do you have any idea how to or instructions for compiling on an M1 Mac? I've been trying to build with cmake but I keep running into lots of errors. Do you have any hints? Thanks!