commit | ac1eaae74733575acf88d7e9d74f528feadcd545 | [log] [tgz] |
---|---|---|
author | Anthony LĂ©onard <anthony.leonard@savoirfairelinux.com> | Tue Nov 28 14:42:33 2017 +0000 |
committer | Olivier SOLDANO <olivier.soldano@savoirfairelinux.com> | Tue Nov 28 17:32:27 2017 -0400 |
tree | b80d97dedfa40844ffecd747e9c336572908fbe1 | |
parent | f76852446c44273eba008c5e6e453417d0d0e1d6 [diff] |
build: fix build on Fedora >26 Default QMake configuration in mingw packages has changed since Fedora 26 and some modifications are required in order to make the ring client able to compile on it: - GDI32 lib is now explicitely linked in our project file. It was previously done automatically by QMake "win32-g++" spec. - libpcre16-0.dll has been replaced by libpcre2-16-0.dll as a Qt dependency and must be shipped instead of the former one. - Dockerfile is updated for Fedora 27. With this patch, the client shouldn't be able to compile anymore on Fedora <26. Moreover, if building with "ring-project" facilities, a patch is also required in that repository modifying the QMake selected spec from "win32-g++" to "mingw-w64-g++". Change-Id: I367312e66d790d82d6aa1aaa1ad3560e1abaca96 Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
For more information about the ring project, see the following:
git clone https://gerrit-ring.savoirfairelinux.com/ring-client-windows
USE THE QMAKE OF Qt BUILT WITH MINGW (e.g. /usr/bin/[i686 | x86_64]-w64-mingw32-qmake-qt5)
cd ring-client-windows mkdir build && cd build export QTDIR=<path to mingw qt> (e.g. /usr/[i686 | x86_64]-w64-mingw32/lib/qt) git submodule init && git submodule update cd libqrencode ./autogen.sh && ./configure --host=[i686 | x86_64]-w64-mingw32 --prefix=<Install dir of Ring and LRC> make make install cd .. qmake ../RingWinClient.pro -r -spec win32-g++ RING=<Install dir of Ring and LRC> [BUILD=Debug] make make install
You will find all files in ./release directory.
#Auto update
If you want to enable auto-update
cd winsparkle mkdir build && cd build cmake -DCMAKE_TOOLCHAIN_FILE=<LRC Directory>/cmake/winBuild.cmake -DCMAKE_INSTALL_PREFIX=Install dir of Ring and LRC> ../cmake", make make install
ENABLE_AUTOUPDATE=True
Compile the client with 'BUILD=Debug' and libRingClient with '-DCMAKE_BUILD_TYPE=Debug'
cd build/release makensis ring.nsi