mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 08:51:35 +01:00
add cross compile with mxe
This commit is contained in:
19
cross_compile.sh
Normal file
19
cross_compile.sh
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
# git clone https://github.com/mxe/mxe.git
|
||||||
|
# cd mxe && make qtbase
|
||||||
|
# make -j 4 qt qt5 MXE_TARGETS='x86_64-w64-mingw32.shared i686-w64-mingw32.shared x86_64-w64-mingw32.static i686-w64-mingw32.static'
|
||||||
|
# make qtbase
|
||||||
|
|
||||||
|
# set correct path
|
||||||
|
MXE_ROOT=$1
|
||||||
|
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$MXE_ROOT/usr/bin
|
||||||
|
|
||||||
|
# run make file generator
|
||||||
|
cmd=$MXE_ROOT/usr/bin/i686-w64-mingw32.static-qmake-qt5
|
||||||
|
$cmd
|
||||||
|
|
||||||
|
# clean and make
|
||||||
|
make clean
|
||||||
|
make
|
||||||
Reference in New Issue
Block a user