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.
make apk
for Android w/ non-default SOURCES_PATH in depends
#22555
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.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
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.
SOURCES_PATH
, which I’d assume is not many at all, could also just set QT_BASE_PATH
.
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/bin
make && make apk
in src/qt
which gives same error as shared in #225223. 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
.
ANDROID_NDK=/home/test/Android/Sdk/ndk/24.0.8215888/
but still same error
4. Run
make && make apk
insrc/qt
which 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?
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:
0$ 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
1$ ./autogen.sh
2$ ./configure --quiet CONFIG_SITE=$PWD/depends/aarch64-linux-android/share/config.site --enable-suppress-external-warnings
3$ make clean
4$ cd src/qt
5$ make
6$ make apk
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a “draft”.