-
Notifications
You must be signed in to change notification settings - Fork 16
Build Windows
Harshit Mehndiratta edited this page Oct 30, 2023
·
13 revisions
Windows 64bit (tested with Windows 11)
- Installing msys2 from here.
- Open MSYS2 MINGW64 shell. The MINGW64 shell window should look similar to the screenshot below.
- Install the following libraries:
pacman -S base-devel git gcc make
- Install clang, go for mingw64 and unzip
pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-go unzip
- Set environment variables
export GOROOT=/mingw64/lib/go
export GOPATH=/mingw64
export PATH=$PATH:$GOROOT/bin
# use clang as a default compiler for CGO
go env -w "CC=/mingw64/bin/clang.exe"
- Clone zwalletcli
git clone https://github.com/0chain/zwalletcli.git
- Navigate to zwalletcli and run the following command :
cd zwallet
make install
- Download necessary dll files as zip from here. Unzip and copy dll's to the following path C:\msys64\home<your_windows_username>\zwalletcli (This directory is created when MSYS2 is installed and zwalletcli is cloned under MSYS2 MINGW64 shell).
wget https://github.com/0chain/zboxcli/files/11840033/windows.dll.s.zip
unzip windows.dll.s.zip
- Now rename
zwallet
file under zwalletcli directory(C:\msys64\home<your_windows_username>\zwalletcli) tozwallet.exe
. See the screenshot below for reference:
- Launch Windows PowerShell and navigate to the zwalletcli directory (typically located at C:\msys64\home<your_windows_username>\zwalletcli). Execute the
./zwallet
command to display the comprehensive help list. Refer to the screenshot below: