diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 20:59:21 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-23 20:59:21 +0200 |
commit | cee6f137e88c5874afd3a4b42c4db7b29e069a98 (patch) | |
tree | 24d2febbb82f7b2f0b82faf2288b685fc327682b /docs | |
parent | db8bd10fafe4b64d5c6df1d09150255594068ce9 (diff) |
[docs] add some mxe pointers
Diffstat (limited to 'docs')
-rw-r--r-- | docs/build-static.rst | 2 | ||||
-rw-r--r-- | docs/cross-compiling-with-mxe.rst | 29 |
2 files changed, 31 insertions, 0 deletions
diff --git a/docs/build-static.rst b/docs/build-static.rst index b94919b..7b343c1 100644 --- a/docs/build-static.rst +++ b/docs/build-static.rst @@ -1 +1,3 @@ +some notes to build the gui with static qt5 + QMAKE=/toolchain/qt5-static/bin/qmake TARGET=demolib-vpn ./build.sh diff --git a/docs/cross-compiling-with-mxe.rst b/docs/cross-compiling-with-mxe.rst new file mode 100644 index 0000000..4a533cb --- /dev/null +++ b/docs/cross-compiling-with-mxe.rst @@ -0,0 +1,29 @@ +some attempts at mxe cross-compilation +====================================== + +We really would like to have cross-compilation working. + +I tried mxe, it looks the most promising way to, at least, get the binaries +working. (Cross-compiling a static version of QtIFW might prove more difficult, +though). + +these two links were useful for me in my attempts: + +https://gist.github.com/amitsaha/ec8fbbc01e22ef9cc020570f415fa2fb +https://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows + +I tried the mxe project stretch packages + +* debs seem to be broken :( +* add this repo:: + + deb http://pkg.mxe.cc/repos/apt stretch main + +* install this package:: + + mxe-x86_64-w64-mingw32.static-qt5 + + +- I think I tried with cmake. should try again now that I went the qmake route. +- Compiling things with the instructions above got me further. However, I only compiled a very simple qt app - did not try with all the QML/foo libraries. It should not be much harder... +- I had to patch some files in mxe to workaround a couple of issues (basically editing include paths). TODO -- dig those patches and include them here. |