On master (1488f55fa57a1400a57be837b574183f019c7855) if depends are built with the customized SOURCES_PATH variable, the following make apk fails for Android host (see bitcoin/bitcoin#22522).
Fixes bitcoin/bitcoin#22522.
On master (1488f55fa57a1400a57be837b574183f019c7855) if depends are built with the customized SOURCES_PATH variable, the following make apk fails for Android host (see bitcoin/bitcoin#22522).
Fixes bitcoin/bitcoin#22522.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
LTO option to depends (no Qt) by fanquake)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Seems to work.
I can confirm this fixes my Android build issues. I haven't yet looked at the code.
Rebased 886e8048436d0e6f6f0484ccf54bd7ec61fdc2e3 -> 5005c8e912b561b3a572b19bdd9e35ad98b928f2 (pr22555.02 -> pr22555.03) due to the conflict with #22840.
Rebased 5005c8e912b561b3a572b19bdd9e35ad98b928f2 -> 57aeb32d888542fba261138ae378ae9e0062c12c (pr22555.03 -> pr22555.04) due to the conflicts with #23473 and #23494.
Rebased 57aeb32d888542fba261138ae378ae9e0062c12c -> a5b568ec74528d0ea94b1ee0392d37e338c97155 (pr22555.04 -> pr22555.05) due to the conflict with #23535.
Rebased a5b568ec74528d0ea94b1ee0392d37e338c97155 -> 03037862fc749685ba2e60c3194d634e16513a54 (pr22555.05 -> pr22555.06) due to the conflict with #23580.
Rebased 03037862fc749685ba2e60c3194d634e16513a54 -> df63d6a5f95da9b70992dcea0baa60f18b852667 (pr22555.06 -> pr22555.07) due to the conflict with #23618.
Rebased df63d6a5f95da9b70992dcea0baa60f18b852667 -> 5b36a11e7ce731bed8d510ef1428687a0b7a0551 (pr22555.07 -> pr22555.08) due to the conflict with #23489.
Rebased 5b36a11e7ce731bed8d510ef1428687a0b7a0551 -> 72005867a4ae6e80c361c8c4f3f800b9854c3791 (pr22555.08 -> pr22555.09) due to the conflicts with #23495 and #23673.
<!--9cd9c72976c961c55c7acef8f6ba82cd-->
Rebased 72005867a4ae6e80c361c8c4f3f800b9854c3791 -> 4a8fec4fde2c57e7be210ccc71a8c185ef035d56 (pr22555.09 -> pr22555.10) due to the conflict with #23744.
Rebased 4a8fec4fde2c57e7be210ccc71a8c185ef035d56 -> 580efc56ae17dc8523af2ae18a593ed5cb708c05 (pr22555.10 -> pr22555.11) due to the conflict with #23724.
Rebased 580efc56ae17dc8523af2ae18a593ed5cb708c05 -> 5f099742f2737c2e44665469a3768cab7b6e74dd (pr22555.11 -> pr22555.12).
ACK 7d310694fc7acc6611890e3eaff36631edb86fef
Concept ~0. Adding more code to our depends and build systems, just to accommodate building for android in a "non-default" way is a bit meh. The people using this target with a custom SOURCES_PATH, which I'd assume is not many at all, could also just set QT_BASE_PATH.
Rebased 7d310694fc7acc6611890e3eaff36631edb86fef -> 5d166dfc25520906457227b4702621754414e2a3 (pr22555.13 -> pr22555.14) due to the conflict with #24866.
Adding more code to our depends and build systems...
Also some lines have been removed from src/Makefile.qt.include :)
... just to accommodate building for android in a "non-default" way is a bit meh. The people using this target with a custom
SOURCES_PATH, which I'd assume is not many at all...
This PR is not about adding a new feature for a few developers, but about fixing a bug in the existing feature. If consider to accept the point mentioned above, probably #22522 should be closed and the SOURCES_PATH variable should be removed from our depends and build system, no?
... could also just set
QT_BASE_PATH.
QT_BASE_PATH=<some-path> make apk won't fix #22522.
I followed these steps from doc/build-android.md:
ANDROID_SDK=/home/test/Android/Sdk ANDROID_NDK=/home/test/Android/Sdk/ndk-bundle make HOST=aarch64-linux-android ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=/home/test/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/binmake && make apk in src/qt which gives same error as shared in #22522
3. Use
ANDROID_SDK=/home/test/Android/Sdk ANDROID_NDK=/home/test/Android/Sdk/ndk-bundle make HOST=aarch64-linux-android ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=/home/test/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
I didn't check everything for now, but seeing "NDK (Side be side)" in your screenshot makes me believe that ANDROID_NDK=/home/test/Android/Sdk/ndk-bundle is wrong. It should be something like /home/test/Android/Sdk/ndk/23.1.7779620.
I changed it to ANDROID_NDK=/home/test/Android/Sdk/ndk/24.0.8215888/ but still same error
4. Run
make && make apkinsrc/qtwhich gives same error as shared in #22522
It seems really strange for me, as in @achow101's issue "SOURCES_PATH is set to a non-default location", but you do not use the SOURCES_PATH variable at all.
Could you provide your commands and error messages exactly from your terminal please?
<!--9cd9c72976c961c55c7acef8f6ba82cd-->
Could you provide your commands and error messages exactly from your terminal please?
Could you provide your commands and error messages exactly from your terminal please?
Thank you!
I think you did not build depends, and missed configuration step. It should be like that:
$ make -C depends HOST=aarch64-linux-android ANDROID_SDK=/home/hebasto/Android/Sdk ANDROID_NDK=/home/hebasto/Android/Sdk/ndk/23.1.7779620 ANDROID_API_LEVEL=28 ANDROID_TOOLCHAIN_BIN=/home/hebasto/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin
$ ./autogen.sh
$ ./configure --quiet CONFIG_SITE=$PWD/depends/aarch64-linux-android/share/config.site --enable-suppress-external-warnings
$ make clean
$ cd src/qt
$ make
$ make apk
<!--cf906140f33d8803c4a75a2196329ecb-->
🐙 This pull request conflicts with the target branch and needs rebase.
<sub>Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".</sub>