请教如何使用docker编译出Android可以使用的wallet-core.aar文件 #1877
yjgfn
started this conversation in
Ideas & Feature request
Replies: 1 comment 4 replies
-
Please use macOS at this time, Ubuntu is not officially supported |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ubuntu18.4
请教如何使用docker编译出Android可以使用的wallet-core.aar文件?
[How to use docker to compile the wallet-core.aar file that can be used by Android?]
多次尝试都没有成功!
[Many attempts were unsuccessful!]
我执行的命里是:./tools/android-release
cmd input:./tools/android-release
error info:
#include <gnu/stubs.h>
^~~~~~~~~~~~~
1 error generated.
[96/483] Building CXX object CMakeFiles/TrustWalletCore.dir/src/Aion/Entry.cpp.o
FAILED: CMakeFiles/TrustWalletCore.dir/src/Aion/Entry.cpp.o
ccache /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android23 --gcc-toolchain=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DTrustWalletCore_EXPORTS -I../../../../../../build/local/include -I../../../../../../build/local/src/protobuf/protobuf-3.14.0/src -I../../../../../../include -I../../../../../../src -I../../../../../../jni/cpp -I../../../../../../trezor-crypto/include -isystem /usr/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wshorten-64-to-32 -O2 -DNDEBUG -fPIC -fvisibility=hidden -Wall -std=gnu++1z -MD -MT CMakeFiles/TrustWalletCore.dir/src/Aion/Entry.cpp.o -MF CMakeFiles/TrustWalletCore.dir/src/Aion/Entry.cpp.o.d -o CMakeFiles/TrustWalletCore.dir/src/Aion/Entry.cpp.o -c ../../../../../../src/Aion/Entry.cpp
In file included from ../../../../../../src/Aion/Entry.cpp:7:
In file included from ../../../../../../src/Aion/Entry.h:9:
In file included from ../../../../../../src/Aion/../CoinEntry.h:9:
In file included from ../../../../../../include/TrustWalletCore/TWCoinType.h:9:
In file included from ../../../../../../include/TrustWalletCore/TWBase.h:68:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/stdbool.h:22:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:215:
/usr/include/features.h:485:10: fatal error: 'gnu/stubs.h' file not found
#include <gnu/stubs.h>
^~~~~~~~~~~~~
1 error generated.
[97/483] Building CXX object CMakeFiles/TrustWalletCore.dir/src/Aeternity/Signer.cpp.o
FAILED: CMakeFiles/TrustWalletCore.dir/src/Aeternity/Signer.cpp.o
ccache /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android23 --gcc-toolchain=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DTrustWalletCore_EXPORTS -I../../../../../../build/local/include -I../../../../../../build/local/src/protobuf/protobuf-3.14.0/src -I../../../../../../include -I../../../../../../src -I../../../../../../jni/cpp -I../../../../../../trezor-crypto/include -isystem /usr/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wshorten-64-to-32 -O2 -DNDEBUG -fPIC -fvisibility=hidden -Wall -std=gnu++1z -MD -MT CMakeFiles/TrustWalletCore.dir/src/Aeternity/Signer.cpp.o -MF CMakeFiles/TrustWalletCore.dir/src/Aeternity/Signer.cpp.o.d -o CMakeFiles/TrustWalletCore.dir/src/Aeternity/Signer.cpp.o -c ../../../../../../src/Aeternity/Signer.cpp
In file included from ../../../../../../src/Aeternity/Signer.cpp:7:
In file included from ../../../../../../src/Aeternity/Signer.h:7:
In file included from ../../../../../../src/Aeternity/Transaction.h:9:
In file included from ../../../../../../src/Data.h:9:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/cstdint:143:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:215:
/usr/include/features.h:485:10: fatal error: 'gnu/stubs.h' file not found
#include <gnu/stubs.h>
^~~~~~~~~~~~~
1 error generated.
[98/483] Building CXX object CMakeFiles/TrustWalletCore.dir/src/NEO/Signer.cpp.o
FAILED: CMakeFiles/TrustWalletCore.dir/src/NEO/Signer.cpp.o
ccache /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=i686-none-linux-android23 --gcc-toolchain=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DTrustWalletCore_EXPORTS -I../../../../../../build/local/include -I../../../../../../build/local/src/protobuf/protobuf-3.14.0/src -I../../../../../../include -I../../../../../../src -I../../../../../../jni/cpp -I../../../../../../trezor-crypto/include -isystem /usr/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mstackrealign -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -Wshorten-64-to-32 -O2 -DNDEBUG -fPIC -fvisibility=hidden -Wall -std=gnu++1z -MD -MT CMakeFiles/TrustWalletCore.dir/src/NEO/Signer.cpp.o -MF CMakeFiles/TrustWalletCore.dir/src/NEO/Signer.cpp.o.d -o CMakeFiles/TrustWalletCore.dir/src/NEO/Signer.cpp.o -c ../../../../../../src/NEO/Signer.cpp
In file included from ../../../../../../src/NEO/Signer.cpp:7:
In file included from ../../../../../../src/NEO/Signer.h:9:
In file included from ../../../../../../src/NEO/Address.h:9:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/string:503:
In file included from /usr/android-sdk-linux/ndk/21.2.6472646/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__config:215:
/usr/include/features.h:485:10: fatal error: 'gnu/stubs.h' file not found
#include <gnu/stubs.h>
^~~~~~~~~~~~~
1 error generated.
Beta Was this translation helpful? Give feedback.
All reactions