From b1cefa66d56fd637fdadef6e639be024588941ec Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 6 Feb 2023 22:09:03 -0500 Subject: [PATCH] docs about windows setup --- _docs/aichatbot_sidecar.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 _docs/aichatbot_sidecar.md diff --git a/_docs/aichatbot_sidecar.md b/_docs/aichatbot_sidecar.md new file mode 100644 index 0000000000..4fcf4fb125 --- /dev/null +++ b/_docs/aichatbot_sidecar.md @@ -0,0 +1,36 @@ +AI Chatbot Sidecar +================== + +This is the first app that doesn't run as a part of our SoA API architecture. (Though it is written such that we +could port it.) This app is responsible for generating all the content that goes into our streaming AI-powered TV +programs. + +### Windows Installation + +The application uses sqlite, which is tricky to install on Windows. + +1. Put together an sqlite build directory containing the sources and dll file. One is checked in under this monorepo + in ./windows/sqlite at the time of this writing, though that may change in the future. + +2. Add environment variables for the sqlite build directory (see https://github.com/diesel-rs/diesel/issues/487) + + * PATH (append the sqlite build directory to the end) + * SQLITE3_LIB_DIR (a new environment variable; set it to the sqllite build path) + + +3. Build the `sqlite3.lib` file with the following: + + ``` + lib /def:sqlite3.def /out:sqlite3.lib /MACHINE:amd64 + ``` + + This must be done in "Developer Command Prompt for VS 2022" (or similar), not `cmd` or `PowerShell`. + +4. Run the diesel_cli tool build + ``` + cargo install diesel_cli --no-default-features --features sqlite + ``` + + If it still complains about the `sqlite3.lib` file not being found, be sure to double check that `echo %PATH%` shows + the updated PATH from the steps above. +