ChatBot项目需要以下依赖项:
- nlohmann-json
- cpr
- spdlog
- openssl
- portaudio
- opengl
- imgui
- yaml-cpp
- libarchive
- lua
- sol2
- sdl2
- glad
您可以使用vcpkg来安装这些依赖项。以下是安装这些依赖项的步骤:
-
VCPKG 安装
-
-
Windows
git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.bat
-
-
-
Linux
git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh
-
-
使用vcpkg安装依赖
vcpkg install nlohmann-json vcpkg install cpr vcpkg install spdlog vcpkg install openssl vcpkg install portaudio vcpkg install opengl vcpkg install imgui vcpkg install yaml-cpp vcpkg install libarchive vcpkg install imgui[docking-experimental] vcpkg install lua vcpkg install sol2 vcpkg install sdl2 vcpkg install sdl2-image vcpkg install glad vcpkg integrate install
cd ChatBot
mkdir build
cd build
cmake -B build/ -S . -DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg.cmake
cd build
cmake --build .