Add android cross compiling support#321
Add android cross compiling support#321jcfr wants to merge 9 commits intopython-cmake-buildsystem:masterfrom
Conversation
|
@iyadahmed When (and if) you have the bandwidth, let us know what you think 🙏 Alternatively if time is limited, there is no problem integrating the patch originally suggested in #320 (comment) |
|
I've just tried it, it works great, but it still does not execute the |
|
here's the configure command I'm using btw |
|
for some reason this patch produces different check binaries than master |
|
Here are results of |
|
ah for automatic running on virtual device my bad I should have used the instructions from unix docs, |
|
here's my final config command, now using the default Python version as Python 3.10 fails for some reason |
|
Things are becoming more clear now, imo,
|
bf53a65 to
7a07b4d
Compare
It was not effective, and it was visible using Android Studio.
Translated to CMake from a patch on the Yocto project: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/python/python3/0002-Don-t-do-runtime-test-to-get-float-byte-order.patch?h=zeus It avoids the execution of a program on the target device, and produces a clearer endianness result.
It avoids the need for checking it by running a program on the target platform.
…piling They are already present in source releases, so it is possible to ignore the regeneration step. We do that only when cross-compiling, because it is not possible to build for both the host and the target with a single pass of CMake.
6d0d7c1 to
6b3e42d
Compare





This corresponds to #280 being rebased against current master (along with extracting documentation into its own
CROSS-COMPILING.rstdocument)dockcross1Footnotes
https://github.com/dockcross/dockcross#readme ↩