Steps to install SWIG:
- Download the latest SWIG binary from http://www.swig.org/download.html, if you need a specific version, windows binaries are located at https://sourceforge.net/projects/swig/files/swigwin/. Once downloaded, please unzip to a local folder (prefarably inside the SPTAG folder)
- Add the path where it was unzipped to the environment PATH example:
C:\Sptag\swigwin-3.0.12\
in System properties
- If you have Visual Studio 2019 you already have the required tools to compile, please ensure you have the
Desktop Development with C++
selected to get all the tools, just ensure this option is enabled in the installation workloads - If not, please download cmake
Boost's precompiled binaries are available at https://sourceforge.net/projects/boost/files/boost-binaries/1.67.0/ (to avoid compiling from scratch)
- Select the lastest version for 1.67.0 (boost_1_67_0-msvc-14.1-64.exe)
- Launch the installation
- Add the folder path to PATH environment variable, for instance
C:\Sptag\boost_1_67_0\
On the off chance of needing to build boost, because you encountered this message during the Build step Could NOT find Boost (missing: system thread serialization wserialization regex filesystem)
, try the following
- Locate and run
bootstrap.bat
, this creates a file calledb2.exe
- Run the generated exe (in this case
b2.exe
), be patient this may take +1 hr - Once complete, the built libraries will be located in
\stage\lib
(or something along the lines)
- git clone microsoft/SPTAG
- Go the folder location where you cloned the repo in the command prompt and execute the following commands:
mkdir build
cd build
cmake -A x64 ..
-
From the build folder, open SPTAGLib.sln solution in Visual Studio and compile all projects
-
[..]/build/release contains now all components needed, add this path to PYTHONPATH environment variable to reference the required modules