From a7cb9770d5f7628c8d306b5031506ecfc2e5922a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20W=C3=B6gi?= <789@webuhu.at> Date: Mon, 27 Feb 2023 16:52:05 +0100 Subject: [PATCH] Update windows guide (#239) --- README.md | 4 +++- guides/windows.md | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8b287dd..44603881 100644 --- a/README.md +++ b/README.md @@ -189,11 +189,13 @@ behind this is that maintaining each sqlite's connection command pool is complicated and error prone. -# Compiling NIF for Windows +## Compiling NIF for Windows + When compiling on Windows, you will need the [Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022) or equivalent toolchain. Please make sure you have the correct environment variables, including path to compiler and linker and architecture that matches `erl.exe` (likely x64). You may also need to invoke `vcvarsall.bat amd64` _before_ running `mix`. +A guide is available at [guides/windows.md](./guides/windows.md) ## Contributing diff --git a/guides/windows.md b/guides/windows.md index be60c0db..622939f3 100644 --- a/guides/windows.md +++ b/guides/windows.md @@ -3,7 +3,8 @@ > Exqlite uses an [Erlang NIF](https://erlang.org/doc/tutorial/nif.html) under the hood. > Means calling a native implementation in C. -For Windows users this means compiling Exqlite does not magically just work. +For Windows users this means compiling Exqlite does not magically just work, +in case it's not able to use the precompiled versions of SQLite (using advanced configuration - compile flags). Under the hood mix will try to compile the library with NMAKE on Windows. For this, NMAKE and C++ build tools needs to be available.