Commit | Line | Data |
---|---|---|
79b64323 PA |
1 | # Cross-compile on Linux, for Windows |
2 | ||
3 | 1) ```docker build -t winbuilder .``` | |
4 | 2) ```docker run -it --rm -v `pwd`/../../:/xwhatsit -w /xwhatsit/util/util winbuilder /bin/bash``` | |
5 | a) ```i686-w64-mingw32.static-qmake-qt5 util.pro``` | |
6 | b) ```make``` | |
7 | ||
8 | ```util.exe``` is put in keyboards/xwhatsite/util/util/release folder, you may need to move it to | |
9 | keyboards/xwhatsite/util/util for it to find the layout files. | |
10 | ||
11 | Note: | |
12 | ||
13 | * I tested the resulting statically compiled .exe on windows7 and windows10 successfully. | |
14 | * It fails on windows XP. | |
15 | * It also fails when trying to run with wine on my machine with Xorg, but it opens up a window when running the same .exe on vncserver. This may be | |
16 | caused by a combination of: ATI graphics, wine, and the version of Qt that is statically compiled into the .exe. Anyway, not a serious issue, | |
17 | since running this application on wine is useless, the only treason this NOTE is here to avoid future head-scratching. |