Сборка mingw32:
Shell
# crossdev --target i686-w64-mingw32 --ex-gdb
Spoiler
Код: Выделить всё
#!/bin/bash
HOST_NAME="i686-w64-mingw32"
INSTALL_DIR_QT=${HOME}/program/qt5_32
INC_DIRS="-I/usr/${HOST_NAME}/usr/include "
src_prepare() {
find -type f -exec dos2unix {} \;
}
src_configure() {
CONF=(
-prefix ${INSTALL_DIR_QT}
-xplatform win32-g++
-opensource
-nomake examples -nomake tests
-dbus
-no-use-gold-linker
-shared
-plugin-sql-sqlite
-plugin-sql-odbc
-silent
-no-glib
-device-option CROSS_COMPILE=$HOST_NAME-
-skip qtactiveqt
-skip qtwebglplugin
-skip qtlocation
-skip qtmultimedia
-qt-libpng -qt-libjpeg -qt-pcre -qt-freetype -no-kms -no-pch
-sql-mysql
MYSQL_INCDIR=$HOME/Documents/qt5/mardb/include
MYSQL_LIBDIR=$HOME/Documents/qt5/mardb/lib
MYSQL_LIBS=$HOME/Documents/qt5/mardb/lib/libmariadb.lib
${INC_DIRS} -opengl desktop -confirm-license
)
./configure ${CONF[@]}
}
src_compil() {
make -j5
}
src_install() {
make install
}
#src_prepare
src_configure
src_compil
src_install