- Visual Studio 2019 (Windows) with Desktop development with C++.
- Clang C++ 17 compiler (clang-8 minimum)
- on macOS Catalina, Apple Clang 11.0 is picked by default
- CMake 3.14 minimum (https://cmake.org/download/)
Follow the QT installation (5.15) instructions.
In your powershell (as admin) execute:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install nim --global
scoop install llvm --global
scoop install ninja --global
scoop install cmake --global
scoop install git --global
- next add a
QT_INSTALL_CMAKE_PATH
environment variable pointing to the msvc_2019x64 location
e.g.: set QT_INSTALL_CMAKE_PATH "C:\Qt\5.15.0\msvc2019_64"
Ensure you have brew and the macOS command line tools installed.
brew install nim cmake ninja git gcc
Add the following environment variables to your ~/.bashrc
or ~/.zshrc
profile:
QT_INSTALL_CMAKE_PATH
equal to the CMake QT pathQT_ROOT
equal to the QT root installation folder
e.g.:
export QT_INSTALL_CMAKE_PATH=/Users/SatoshiNakamoto/Qt/5.15.0/clang_64/lib/cmake
export QT_ROOT=/Users/SatoshiNakamoto/Qt/5.15.0
Installing curl:
brew install autoconf automake libtool
git clone https://github.com/phracker/MacOSX-SDKs.git ~/MacOSX-SDKs
export CC=/usr/local/opt/llvm/bin/clang
export CPPFLAGS="-isysroot $HOME/MacOSX-SDKs/MacOSX10.13.sdk/"
git clone https://github.com/curl/curl.git
cd curl
git checkout curl-7_70_0
./buildconf
./configure --disable-shared --enable-static --without-libidn2 -without-ssl --disable-ldap --with-darwinssl
make install
Installling libbitcoin:
git clone --depth 1 --branch version5 --single-branch "https://github.com/KomodoPlatform/secp256k1"
cd secp256k1
./autogen.sh
./configure --disable-shared --disable-tests --enable-module-recovery
make -j3
sudo make install
cd ../
Installing libbitcoin-system:
git clone --depth 1 --branch version3 --single-branch https://github.com/KomodoPlatform/libbitcoin-system.git
cd libbitcoin-system
./autogen.sh
./configure --with-boost --disable-shared
make -j3
sudo make install
sudo update_dyld_shared_cache
In your terminal (shell,...) execute:
sudo apt-get install -y ninja-build cmake git gcc-9 g++-9
curl https://nim-lang.org/choosenim/init.sh -sSf | sh
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 9
git clone https://github.com/KomodoPlatform/libwally-core.git
cd libwally-core
./tools/autogen.sh
./configure --disable-shared
sudo make -j2 install
Use the most recently installed clang
version:
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 100
Add the following environment variables to your ~/.bashrc
or ~/.zshrc
profiles:
QT_INSTALL_CMAKE_PATH
equal to the CMake QT pathQT_ROOT
equal to the QT root installation folder
e.g.:
export QT_INSTALL_CMAKE_PATH=~/Qt/5.15.0/gcc/lib/cmake
export QT_ROOT=~/Qt/5.15.0
nimble refresh https://raw.githubusercontent.com/KomodoPlatform/nim_kmd_package_list/master/packages.json
cd ~/.nimble
mv packages_commandline.json packages_official.json
cd -
Please clone with submodules initialization : git clone --recurse-submodules --remote-submodules https://github.com/KomodoPlatform/atomicDEX-Pro.git
Install vcpkg from within the ci_tools_bitcoinz_dex
folder:
nimble build
cd vcpkg-repo
# Windows
.\bootstrap-vcpkg.bat
# Linux / OSX
./bootstrap-vcpkg.sh
cd -
In your x64 Visual Studio command prompt, from within the ci_tools_bitcoinz_dex
folder, type:
nimble build
./ci_tools_bitcoinz_dex.exe build release
./ci_tools_bitcoinz_dex.exe build debug
In your command line, from within the ci_tools_bitcoinz_dex
, run:
nimble build
./ci_tools_bitcoinz_dex build debug
./ci_tools_bitcoinz_dex build release
In your x64 Visual Studio command prompt, from within the ci_tools_bitcoinz_dex
folder, type:
nimble build
ci_tools_bitcoinz_dex.exe build release
ci_tools_bitcoinz_dex.exe bundle release
ci_tools_bitcoinz_dex.exe build debug
ci_tools_bitcoinz_dex.exe bundle debug
In your command line, from within the ci_tools_bitcoinz_dex
, run:
nimble build
./ci_tools_bitcoinz_dex bundle release
./ci_tools_bitcoinz_dex bundle debug
-
Download and install Qt Installer Framework.
-
Add a
QT_IFW_PATH
environment variable pointing to the Qt Installer Framework folder
e.g.: set QT_IFW_PATH "C:\Qt\QtIFW-3.2.2"
- Run
ci_tools_bitcoinz_dex\create_installer.bat
script
-
Run the .run file and install it.
chmod +x QtInstallerFramework-linux-x64.run
./QtInstallerFramework-linux-x64.run
- Add a
QT_IFW_PATH
environment variable pointing to the Qt Installer Framework folder
e.g.: In .bashrc
add: export QT_IFW_PATH=~/Qt/QtIFW-3.2.2
-
Build AtomicDex Pro
./ci_tools_bitcoinz_dex build release
-
Run
ci_tools_bitcoinz_dex\create_installer_linux.sh
script, pass build type as argument to script
e.g.: .\create_installer_linux.sh Debug
-- or Release