Welcome to mirror list, hosted at ThFree Co, Russian Federation.

qt-setup.sh - github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79216b7da10c1e7e93866977a079d840cfac48ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh
##################################################################
#                                                                #
#  This file provides a cross-compilation from Linux to Windows  #
#                                                                #
##################################################################

QT4_VERSION="4.8.4"   # Version Qt4

##################################################################
# Detect project version
##################################################################

PROJECT=`cat CMakeLists.txt | grep "project(" | sed 's/.*(//' | sed 's/).*//g'`
VERSION=`cat CMakeLists.txt | grep "set(PACKAGE_VERSION" | sed 's/.* "//' | sed 's/\".*//g'`

echo Version: ${PROJECT} - ${VERSION};

QT4_FILENAME="qt-everywhere-opensource-src-${QT4_VERSION}"
PRJ_FILENAME="${PROJECT}-${VERSION}"

SOURCE_DIR=`pwd`

cd ~

mkdir "${PRJ_FILENAME}"
cd "${PRJ_FILENAME}"

BUILD_DIR=`pwd`

##################################################################
# Install Qt
##################################################################

cd "${BUILD_DIR}"
rm -rf "${QT4_FILENAME}"
wget -c "http://releases.qt-project.org/qt4/source/${QT4_FILENAME}.tar.gz"
tar -xvzf "${QT4_FILENAME}.tar.gz"
cd "${QT4_FILENAME}"

./configure -prefix /usr/i686-w64-mingw32/usr \
  -opensource -release -confirm-license \
  -static -no-qt3support -no-3dnow -no-phonon -no-multimedia -no-webkit \
  -nomake examples -nomake demos -nomake tools -nomake translations -nomake docs \
  -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
#  -webkit -qt-sql-sqlite -qt-zlib -qt-libpng -qt-libjpeg \
#  -dont-process -no-qt3support -no-multimedia -no-audio-backend -no-phonon \
#  -no-opengl -no-qt3support -no-declarative -no-multimedia -no-audio-backend -no-phonon \
#  -no-dbus -no-script -no-scripttools  \
#  -no-opengl -no-qt3support -no-declarative -no-multimedia -no-audio-backend -no-phonon \
#  -no-exceptions -no-stl -no-scripttools -no-openssl -no-script -no-openssl \
#  -I /usr/i686-w64-mingw32/include \
#  -L /usr/i686-w64-mingw32/lib \

make

#sudo make install

#cd "${BUILD_DIR}"
#cmake -DCMAKE_TOOLCHAIN_FILE=../3rdparty/mingw/i686-pc-mingw32.cmake ..