Building Seedtool on Windows
May 3, 2021 ยท View on GitHub
This document describes building seedtool with MSYS2 and its usage on Windows 10 64-bit.
Installing MSYS2 and Packages
- Install
MSYS2by downloading the installer and following the installation guide in www.msys2.org. - Run
MSYS2and make sure the package database is updated:
# pacman -Syu
# pacman -Su
- 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
- Clone
seedtool-cli, e.g. intoC:\msys64\home - Open
MSYS2 MinGW 64-bitapplication andcdintoC:\msys64\home\seedtool-cli - Run the build script with:
# export CC="clang" && export CXX="clang++" && ./build.sh
- 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]