Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.76 KB

Install-Windows.md

File metadata and controls

59 lines (46 loc) · 1.76 KB

Building Seedtool on Windows

This document describes building seedtool with MSYS2 and its usage on Windows 10 64-bit.

Installing MSYS2 and Packages

  1. Install MSYS2 by downloading the installer and following the installation guide in www.msys2.org.
  2. Run MSYS2 and make sure the package database is updated:
# pacman -Syu
# pacman -Su
  1. Next, install the compiler and the required packages:
# pacman -S mingw-w64-x86_64-clang
# pacman -S patch
# pacman -S git
# pacman -S make
# pacman -S mingw-w64-x86_64-libc++
# pacman -S autoconf
# pacman -S automake1.8

Compiling Seedtool

  1. Clone seedtool-cli, e.g. into C:\msys64\home
  2. Open MSYS2 MinGW 64-bit application and cd into C:\msys64\home\seedtool-cli
  3. Run the build script with:
# export CC="clang" && export CXX="clang++" && ./build.sh
  1. Install:
# make install

You can now freely use seedtool inside MSYS2 MinGW 64-bit console.

Running Seedtool as a Native Windows App

To be able to use seedtool as a native app on Windows outside msys2/mingw64, you have to expose three files to the system: seedtool.exe, libc++.dll, and libunwind.dll, which all reside in C:\msys64\mingw64\bin.

To do so, add that folder to the Windows PATH by the following command in Windows Cmd:

# set PATH=%PATH%;C:\msys64\mingw64\bin

That's it. Now you can use seedtool as a native Windows app in the Windows command-line tool.

Note: If you want to pipe seedtool ouput into a QR code generator, you could use:

# seedtool --ur | python -c "import sys; print(sys.stdin.readlines()[0].upper())" | qr > seedqrcode.png

For this you'll need Python and the following package:

# pip install qrcode[pil]