Skip to content

Latest commit

 

History

History
97 lines (50 loc) · 4.61 KB

DetailedBuild.md

File metadata and controls

97 lines (50 loc) · 4.61 KB

Building the Armor GUI Wallet for Windows from source code

To build the gui wallet you must have built armor core, so please do all steps from here before proceeding!

The gui wallet is built with QtCreator. Qt is a toolkit for creating graphical user interfaces as well as cross-platform applications that run on various software and hardware platforms.

Register for a Qt account to enable downloads.

Download QTCreator and run the installer.

     image

Enter your login details:

     image

Accept the (Open Source) licence terms.

Choose Custom installation:

     image

Expand the Qt drop-down and select Qt 5.9.9:

     image

     11.5Gb download!

Accept the CMake licence terms then click on Install. The downloads and installation could take some time.

Clone the armor gui wallet source code:

Install Git if you have not already done so.

When you built armor core you created an armor directory. Open a command prompt and change to the armor directory:

c:\> cd armor

Clone the armor-gui source code:

c:\armor> git clone https://github.com/Armor-Network/armor-gui.git

Build armor-gui

From the Windows Start Menu run QtCreator (Community)

In the File menu open the armor-gui project file armor\armor-gui\src\armor-gui.pro then select the Desktop Qt 5.9.9 MSVC 2017 64bit kit and click Configure Project

     image

In the left sidebar select: image

and change it to Release: image

In the left sidebar select Projects and check the details:

     image

On the bottom toolbar select Compile Output

In the left sidebar select image to start building armor-gui.

Check progress in the Compile Output window. The build should run to completion without errors.

You should now have the following assets in the armor\armor-gui\bin folder:

     image

(note: armord.exe, armord.pdb, walletd.exe and walletd.pdb are copied from the assets created by the armor core build by the armor-gui project file. The *.pdb files are not required to run the armor-gui app)

Deployment

QT includes a windows deployment tool windeployqt which automates the process of creating a deployable folder containing the Qt-related dependencies (libraries, QML imports, plugins, and translations) required to run the application.
Add the bin directory of your Qt installation (e.g. <QT_DIR\bin>) to the PATH variable and then run: windeployqt <path-to-app-binary>, as follows:

From a Windows command prompt with Administrator privileges (assuming you installed Qt to the default location c:\Qt):

setx /M PATH "%PATH%;c:\Qt\5.9.9\msvc2017_64\bin"

To check the PATH:

echo %PATH%

Close and restart the command prompt, then:

windeployqt c:\armor\armor-gui\bin

The \armor\armor-gui\bin directory should now contain the following assets:

image

Create a shortcut to armor-gui.exe and run it.

If you get error messages that MSVCP140.dll and VCRUNTIME140.dll were not found, install Microsoft Visual C++ Redistributable for Visual Studio 2017