Mercurial > retraceit
view INSTALL @ 7:c11fe56aa4a2
Disable error if an image cannot be loaded
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 25 Mar 2015 14:25:10 +0100 |
parents | 147b08bc7d64 |
children | 2cd76e6c0fcf |
line wrap: on
line source
/** @file INSTALL @brief Installation Instructions ******************************* For Debian based GNU / Linux ============================ Tested development platform: Ubuntu 14.4 amd64. Build dependencies are: build-essential cmake libqt5core5a qttools5-dev-tools qt5-default \ qtbase-dev qtbase5-dev-tools qttools5-dev inkscape This document expects the following setup for build and installation. It is recommended to set a custom installation prefix to avoid root privileges. export CUSTOM_PREFIX=<Prefix of your choice (default /usr)> mkdir -p $CUSTOM_PREFIX/bin export PATH=$CUSTOM_PREFIX/bin:$PATH Building the Software: cd <PATH_TO_REPO> mkdir build-native cd build-native cmake .. -DCMAKE_PREFIX_PATH=$CUSTOM_PREFIX For Microsoft Windows ===================== The Windows variant should be cross compiled from a Debian based GNU/Linux system. The minimum requirement is Debian stable. Tested development platform is Ubuntu 14.4 Dependencies on the Host system: apt-get install git autoconf automake bash bison bzip2 \ cmake flex gettext git g++ intltool \ libffi-dev libtool libltdl-dev libssl-dev \ libxml-parser-perl make openssl patch perl \ pkg-config scons sed unzip curl xz-utils autopoint \ gperf Build the windows binaries: MXEPATH=$CUSTOM_PREFIX/win git clone https://github.com/Intevation/mxe.git $MXEPATH cd $MXEPATH git checkout replay-it echo "MXE_TARGETS := i686-w64-mingw32.static" > settings.mk make qtbase Add CMAKE_STRIP to the toolchain file: echo "set(CMAKE_STRIP $MXEPATH/usr/bin/i686-w64-mingw32.static-strip)" >> \ "$MXEPATH/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake" Compile the software: cd repo mkdir build-windows cd build-windows MXETARGET=$MXEPATH/usr/i686-w64-mingw32.static/ cmake .. \ -DCMAKE_PREFIX_PATH="$MXETARGET/qt5;$MXETARGET;" \ -DCMAKE_TOOLCHAIN_FILE="$MXETARGET/share/cmake/mxe-conf.cmake" \ -DCMAKE_VERBOSE_MAKEFILE=True */