-
Notifications
You must be signed in to change notification settings - Fork 1
/
qt-build.sh
executable file
·30 lines (24 loc) · 1.21 KB
/
qt-build.sh
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
#!/bin/bash
export PATH=/usr/lib/mxe/usr/bin:$PATH
MINGW_THREAD_BUGFIX=0
MXE_INCLUDE_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.static/lib
MXE_SHARED_INCLUDE_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.shared/include
MXE_SHARED_LIB_PATH=/usr/lib/mxe/usr/i686-w64-mingw32.shared/lib
cd ./src/leveldb
#TARGET_OS=NATIVE_WINDOWS make CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ OPT="-m64 -pipe -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2" -I $MXE_INCLUDE_PATH -pthread libleveldb.a libmemenv.a
TARGET_OS=NATIVE_WINDOWS make CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ libleveldb.a libmemenv.a
cd ../..
i686-w64-mingw32.static-qmake-qt5 \
BOOST_LIB_SUFFIX=-mt \
BOOST_THREAD_LIB_SUFFIX=_win32-mt \
BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
BOOST_LIB_PATH=$MXE_LIB_PATH \
OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
OPENSSL_LIB_PATH=$MXE_LIB_PATH \
BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
BDB_LIB_PATH=$MXE_LIB_PATH \
MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
QMAKE_LRELEASE=/usr/lib/mxe/usr/i686-w64-mingw32.static/qt5/bin/lrelease lux-qt.pro
make -f Makefile