Windows¶
Windows support is currently broken
LIMA has been ported to Microsoft Windows and Windows installers were published in the past, but the Windows build is currently broken and no recent installer is available. Use the Docker image (with Docker Desktop or WSL 2) to run LIMA under Windows. Contributions to restore the Windows build are welcome.
Building under Windows¶
The following procedure was used to build LIMA under Windows 10. It is kept as a starting point; versions are outdated and the procedure needs updating.
- Install MSYS2 (x86_64), e.g. in
C:\msys64, and addC:\msys64\usr\binandC:\msys64\usr\libto the userPathso that Unix commands can be called from any console. - From any console, install git, gawk and patch:
pacman -S git gawk patch. - Install CMake from cmake.org (not the MSYS2 one, which does not work).
- Install Python 3 from python.org.
- Install Qt from qt.io.
- Install NSIS and add its
Binfolder to the userPath. - Install Microsoft Visual Studio Community Edition (only the "Desktop Development with C++" component is required).
- Download and build Boost from a Visual Studio x64 native console:
bootstrap.bat, thenb2 --build-type=complete install. - Install NLTK and the Penn treebank extract (see Build from source).
- Clone the LIMA repository:
git clone https://github.com/aymara/lima. - Download Ninja and make it available in the
Path. - Download libtorch (the PyTorch C++ distribution) into
extern/(seeextern/download_libtorch.shfor the URL and version used). - Update
build_with_ninja.batwith your paths (MSYSDIR,QTDIR,WINKITDIR,NINJADIR,BOOST_ROOT,NLTK_PTB_DP_DIR,LIMA_SRC) and, optionally,LIMA_VERSION_RELEASE. - From a Visual Studio x64 native console in the LIMA source directory, run
build_with_ninja.bat.