Mercurial > retraceit
comparison INSTALL @ 0:147b08bc7d64
Initial commit of a basic Application framework.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 23 Mar 2015 12:41:52 +0100 |
parents | |
children | 2cd76e6c0fcf |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:147b08bc7d64 |
---|---|
1 /** @file INSTALL | |
2 @brief Installation Instructions | |
3 ******************************* | |
4 | |
5 For Debian based GNU / Linux | |
6 ============================ | |
7 Tested development platform: Ubuntu 14.4 amd64. | |
8 | |
9 Build dependencies are: | |
10 build-essential cmake libqt5core5a qttools5-dev-tools qt5-default \ | |
11 qtbase-dev qtbase5-dev-tools qttools5-dev inkscape | |
12 | |
13 | |
14 This document expects the following setup for build and installation. | |
15 It is recommended to set a custom installation prefix to avoid root | |
16 privileges. | |
17 | |
18 export CUSTOM_PREFIX=<Prefix of your choice (default /usr)> | |
19 mkdir -p $CUSTOM_PREFIX/bin | |
20 export PATH=$CUSTOM_PREFIX/bin:$PATH | |
21 | |
22 Building the Software: | |
23 cd <PATH_TO_REPO> | |
24 mkdir build-native | |
25 cd build-native | |
26 cmake .. -DCMAKE_PREFIX_PATH=$CUSTOM_PREFIX | |
27 | |
28 For Microsoft Windows | |
29 ===================== | |
30 The Windows variant should be cross compiled from a Debian based GNU/Linux | |
31 system. The minimum requirement is Debian stable. | |
32 | |
33 Tested development platform is Ubuntu 14.4 | |
34 | |
35 Dependencies on the Host system: | |
36 | |
37 apt-get install git autoconf automake bash bison bzip2 \ | |
38 cmake flex gettext git g++ intltool \ | |
39 libffi-dev libtool libltdl-dev libssl-dev \ | |
40 libxml-parser-perl make openssl patch perl \ | |
41 pkg-config scons sed unzip curl xz-utils autopoint \ | |
42 gperf | |
43 | |
44 Build the windows binaries: | |
45 | |
46 MXEPATH=$CUSTOM_PREFIX/win | |
47 git clone https://github.com/Intevation/mxe.git $MXEPATH | |
48 cd $MXEPATH | |
49 git checkout replay-it | |
50 echo "MXE_TARGETS := i686-w64-mingw32.static" > settings.mk | |
51 make qtbase | |
52 | |
53 Add CMAKE_STRIP to the toolchain file: | |
54 | |
55 echo "set(CMAKE_STRIP $MXEPATH/usr/bin/i686-w64-mingw32.static-strip)" >> \ | |
56 "$MXEPATH/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake" | |
57 | |
58 Compile the software: | |
59 | |
60 cd repo | |
61 mkdir build-windows | |
62 cd build-windows | |
63 MXETARGET=$MXEPATH/usr/i686-w64-mingw32.static/ | |
64 cmake .. \ | |
65 -DCMAKE_PREFIX_PATH="$MXETARGET/qt5;$MXETARGET;" \ | |
66 -DCMAKE_TOOLCHAIN_FILE="$MXETARGET/share/cmake/mxe-conf.cmake" \ | |
67 -DCMAKE_VERBOSE_MAKEFILE=True | |
68 */ |