summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-03-17 21:26:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-17 13:59:59 -0700
commitd3d3cd9e350ae0fddf9682fbf5e7c3b867d27596 (patch)
tree6498e8c63414e9ed2b67137c7d4fb548912941f2
parent8fe738bf6447a16184df95956afd5123e6c0770d (diff)
downloadsubsurface-d3d3cd9e350ae0fddf9682fbf5e7c3b867d27596.tar.gz
Update the documentation with dependencies for cross-building on Linux to Windows
Update the documentation with dependencies for cross-building on Linux to Windows for OpenSuse platform and correct some building instructions. Moreover fix the windows building script to use the architectural specific binary. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--INSTALL36
-rwxr-xr-xpackaging/windows/mingw-make.sh4
2 files changed, 33 insertions, 7 deletions
diff --git a/INSTALL b/INSTALL
index 3cc8f73a8..68aa41c02 100644
--- a/INSTALL
+++ b/INSTALL
@@ -215,6 +215,28 @@ cross builds under Linux (currently on Fedora 20). A shell script to do
that (plus the .nsi file to create the installer with makensis) are
included in the packaging/windows directory.
+On OpenSUSE, for mingw64 packages you should add the specific
+repository from their site. After that you can run the following
+command:
+sudo zypper install mingw64-cross-libqt5-qttools mingw64-mpc-devel \
+ mingw64-filesystem mingw64-pkg-config mingw64-cross-gcc \
+ mingw64-gcc-c++ mingw64-libusb-1_0-devel \
+ mingw64-cross-libqt5-qttools mingw64-libqt5-qtwebkit \
+ mingw64-libqt5-qtwebkit-devel mingw64-cross-libqt5-qmake \
+ mingw64-libqt5-qtscript mingw64-libqt5-qtscript-devel \
+ mingw64-libqt5-qtsvg mingw64-libqt5-qtsvg-devel \
+ mingw64-libqt5-qtdeclarative mingw64-libqt5-qtdeclarative-devel \
+ mingw64-libssh2-devel mingw64-libzip-devel \
+ mingw64-sqlite-devel mingw64-win_iconv-devel \
+ mingw64-libxslt-devel mingw64-libqt5-qttools
+
+[Observation] - Sometimes on OpenSUSE platform there is a problem with
+the mingw64-libzip-devel package(the zipconf header is not installed in
+the right place) and you have to create a symbolic link using the following
+command:
+ sudo ln -s /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libzip/include/zipconf.h \
+ /usr/x86_64-w64-mingw32/sys-root/mingw/include/zipconf.h
+
Everywhere below the mingw64- prefix is used for the cross tools. If you
really need a 32bit binary you need to use mingw32- as prefix and you may
also run into issues creating an installable binary with Qt5 (i.e., you
@@ -258,9 +280,11 @@ $ sudo mingw64-make install
To compile libgit2, use:
-$ mkdir -p ~/src/libgit2/build
$ git clone git://github.com/libgit2/libgit2 ~/src/libgit2
-$ cd ~/src/libgit2/build
+$ mkdir ~/src/libgit2/build
+$ cd ~/src/libgit2
+$ git checkout v0.21.5
+$ cd build
$ mingw64-cmake ..
$ mingw64-make
$ sudo mingw64-make install
@@ -270,10 +294,10 @@ To compile Subsurface, use:
$ cd ~/src
$ git clone git://subsurface-divelog.org/subsurface.git
$ cd subsurface
-$ cd git checkout v4.4 # this get's you the last release
- # skip this step to build the latest development
- # version
-$ packagin/windows/mingw-make.sh Qt5 SPECIAL_MARBLE_PREFIX=1
+$ git checkout v4.4-branch # this get's you the last release
+ # skip this step to build the latest development
+ # version
+$ packaging/windows/mingw-make.sh Qt5-64
$ packaging/windows/mingw-make.sh install
$ packaging/windows/mingw-make.sh installer
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
index 578847c4c..f242a7e44 100755
--- a/packaging/windows/mingw-make.sh
+++ b/packaging/windows/mingw-make.sh
@@ -16,8 +16,10 @@ rm $BASEDIR/../../ssrf-version.h > /dev/null 2>&1
if [[ $1 == "Qt5-64" ]] ; then
export PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin:$PATH
+ MINGW_MAKE="mingw64-make"
else
export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
+ MINGW_MAKE="mingw32-make"
fi
export objdump=mingw-objdump
@@ -74,4 +76,4 @@ else
$BASEDIR/../../subsurface.pro
fi
-mingw32-make $@
+$MINGW_MAKE $@