forked from OleksandrBlack/safecoinwallet
-
Notifications
You must be signed in to change notification settings - Fork 8
Home
FairExchange edited this page May 17, 2020
·
3 revisions
File Edit Options Buffers Tools Help
It's best to set up a build environment on Ubuntu 16.04. It brings the right versions of libc and libstdc++ that ensures maximum compatibility. You c
an build on newer versions of Linux distros, but binaries compiled on these platforms may not work on older versions.
# build dependencies
sudo apt install clang g++ build-essential make mingw-w64 git pkg-config libc6-dev m4 g++-multilib autoconf libtool-bin ncurses-dev unzip python pyth\
on-zmq zlib1g-dev wget curl bsdmainutils automake libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev autopoint libssl-dev
# MXE dependencies
sudo apt install bash bison bzip2 flex gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libtool-bin libxml-parser-perl ma\
ke openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils
You need to compile a static version of OpenSSL, which is passed to the Qt5 configuration script
# Download openssl 1.0.2
./Configure linux-x86_64
make
Download Qt5 Sources
mkdir -p ~/Qt/5.11.2 && cd ~/Qt/5.11.2
wget https://download.qt.io/archive/qt/5.11/5.11.2/single/qt-everywhere-src-5.11.2.tar.xz
tar xvf qt-everywhere-src-5.11.2.tar.xz && cd qt-everywhere-src-5.11.2
Configure and build Qt5 statically
OPENSSL_LIBS='-L/path/to/openssl-1.0.2q -lssl -lcrypto' ./configure -static -prefix ~/Qt/5.11.2/static -skip qtlocation -skip qtmacextras -skip qtpu\
-UU-:----F1 Setting-up-a-build-environment.md Top L1 Git-master (Fundamental) -----------------------------------------------------------------
For information about GNU Emacs and the GNU system, type C-h C-a.