forked from vedderb/vesc_tool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_win
executable file
·35 lines (30 loc) · 1.05 KB
/
build_win
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
#!/bin/bash
# https://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows
# https://github.com/mxe/mxe/issues/2561
# cd /opt
# sudo mkdir mxe2
# sudo chown $USER mxe2
# git clone https://github.com/mxe/mxe.git mxe2
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin lzip python-mako
# cd mxe2
# make qtbase
# make qtserialport
# make qtconnectivity
# make qtquickcontrols
# make qtquickcontrols2
# make qtserialbus
# make qtlocation
# make qtgamepad
# make qtgraphicaleffects
set -e
export PATH=/opt/mxe2/usr/bin/:$PATH
rm -rf build/win/*
# Vari
/opt/mxe2/usr/bin/i686-w64-mingw32.static-qmake-qt5 -config release "CONFIG+=release_win build_vari"
make clean
make -j8
rm -rf build/win/obj
cd build/win
zip esc_tool_vari_windows.zip esc_tool*.exe
ls | grep -v '\.zip$' | xargs rm
cd ../..