4 # Installed MinGW needed.
5 # Ubuntu : sudo apt-get install gcc-mingw-w64-i686
11 echo "Usage: xmingw <path to LyX sources>"
19 date=`date --utc '+%Y.%m.%d-%H.%M'`
20 versionname=LyX$ver-$date
23 echo ---------------------------------------------------------
24 echo ---------- Building $versionname
25 echo ---------------------------------------------------------
27 # ---------------------------------------------------------
29 # helper function to check return code
33 if [ $exitcode -ne 0 ]; then
39 dep=$lyxsrcdir/../lyx-dependencies
43 server=http://sourceforge.net/projects/kst/files/3rdparty
45 if [ "$2" = "x64" ]; then
46 mingw=x86_64-w64-mingw32
48 branch=LyX$ver-master-win64
51 mingw=i686-w64-mingw32
52 branch=LyX$ver-master-win32
56 qtver=Qt-$qtver-$mingw
60 echo Checking mingw installation ...
61 $compiler-gcc -dumpversion
65 # ---------------------------------------------------------
67 # download and unpack Qt
69 if [ ! -d $dep/$qtver ]; then
70 qttar=$qtver-Ubuntu64-$LTS$tarver.tar
71 wget $server/$qttar.xz
75 tar xf $builddir/$qttar
77 echo -e "[Paths]\nPrefix = $dep/$qtver" > $dep/$qtver/bin/qt.conf
80 export PATH=$dep/$qtver/bin:$PATH
81 echo Checking Qt installation ...
87 # ---------------------------------------------------------
92 #mergefile=-DLYX_MERGE_FILE
95 $cmakebin $lyxsrcdir \
97 -DLYX_PROGRAM_SUFFIX="" \
99 -DLYX_XMINGW=$compiler \
102 -DLYX_ENABLE_CXX11=1 \
104 -DLYX_3RDPARTY_BUILD=1 \
117 # ---------------------------------------------------------