Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

How to create a static library for Android? #1

Open
KirillVolkov opened this issue May 15, 2019 · 1 comment
Open

How to create a static library for Android? #1

KirillVolkov opened this issue May 15, 2019 · 1 comment

Comments

@KirillVolkov
Copy link

KirillVolkov commented May 15, 2019

I tried to use ironbelly grin, but it not compile for android architectures. Can somebody help me? Maybe you know how it makes?

@KirillVolkov
Copy link
Author

I Stopped with this error:
error: failed to run custom build command for liblmdb-sys v0.2.2process didn't exit successfully:/home/user/Documents/Projects/Vite_GrinWallet/rust/target/release/build/liblmdb-sys-5faaf896f5d65712/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("armv7-linux-androideabi")
TARGET = Some("armv7-linux-androideabi")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("armv7-linux-androideabi")
TARGET = Some("armv7-linux-androideabi")
HOST = Some("x86_64-unknown-linux-gnu")
CC_armv7-linux-androideabi = None
CC_armv7_linux_androideabi = Some("/home/user/Documents/Projects/Vite_GrinWallet/rust/NDK/arm/bin/arm-linux-androideabi-clang")
TARGET = Some("armv7-linux-androideabi")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_armv7-linux-androideabi = None
CFLAGS_armv7_linux_androideabi = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "/home/user/Documents/Projects/Vite_GrinWallet/rust/NDK/arm/bin/arm-linux-androideabi-clang" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi" "-Wall" "-Wextra" "-o" "/home/user/Documents/Projects/Vite_GrinWallet/rust/target/armv7-linux-androideabi/release/build/liblmdb-sys-06a98e8def531d9f/out/mdb/libraries/liblmdb/mdb.o" "-c" "mdb/libraries/liblmdb/mdb.c"
cargo:warning=mdb/libraries/liblmdb/mdb.c:4625:13: warning: implicit declaration of function 'pthread_mutexattr_setrobust' is invalid in C99 [-Wimplicit-function-declaration]
cargo:warning= || (rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST))
cargo:warning= ^
cargo:warning=mdb/libraries/liblmdb/mdb.c:4625:49: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'
cargo:warning= || (rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST))
cargo:warning= ^
cargo:warning=mdb/libraries/liblmdb/mdb.c:9821:33: warning: unused parameter 'env' [-Wunused-parameter]
cargo:warning=mdb_env_get_maxkeysize(MDB_env *env)
cargo:warning= ^
cargo:warning=mdb/libraries/liblmdb/mdb.c:10002:10: warning: implicit declaration of function 'pthread_mutex_consistent' is invalid in C99 [-Wimplicit-function-declaration]
cargo:warning= rc2 = mdb_mutex_consistent(mutex);
cargo:warning= ^
cargo:warning=mdb/libraries/liblmdb/mdb.c:351:37: note: expanded from macro 'mdb_mutex_consistent'
cargo:warning=#define mdb_mutex_consistent(mutex) pthread_mutex_consistent(mutex)
cargo:warning= ^
cargo:warning=3 warnings and 1 error generated.
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "/home/user/Documents/Projects/Vite_GrinWallet/rust/NDK/arm/bin/arm-linux-androideabi-clang" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=armv7-linux-androideabi" "-Wall" "-Wextra" "-o" "/home/user/Documents/Projects/Vite_GrinWallet/rust/target/armv7-linux-androideabi/release/build/liblmdb-sys-06a98e8def531d9f/out/mdb/libraries/liblmdb/mdb.o" "-c" "mdb/libraries/liblmdb/mdb.c" with args "arm-linux-androideabi-clang" did not execute successfully (status code exit code: 1).
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant