noloader / cryptopp-android-mk Goto Github PK
View Code? Open in Web Editor NEWAndroid.mk build files for Crypto++ project
Android.mk build files for Crypto++ project
Example:
[arm64-v8a] Compile++ : cryptopp_static <= zdeflate.cpp
[arm64-v8a] Compile++ : cryptopp_static <= zinflate.cpp
[arm64-v8a] Compile++ : cryptopp_static <= zlib.cpp
[arm64-v8a] StaticLibrary : libcryptopp_static.a
[arm64-v8a] Compile : cpufeatures <= cpu-features.c
[arm64-v8a] StaticLibrary : libcpufeatures.a
[arm64-v8a] Executable : cryptest.exe
/Users/logan.blevins/Documents/cryptopp/obj/local/arm64-v8a/libcryptopp_static.a(xed25519.o): In function `CryptoPP::x25519::SecretToPublicKey(unsigned char*, unsigned char const*) const':
/Users/logan.blevins/Documents/cryptopp/xed25519.cpp:145: undefined reference to `CryptoPP::Donna::curve25519_mult(unsigned char*, unsigned char const*)'
/Users/logan.blevins/Documents/cryptopp/obj/local/arm64-v8a/libcryptopp_static.a(xed25519.o): In function `CryptoPP::x25519::BERDecode(CryptoPP::BufferedTransformation&)':
/Users/logan.blevins/Documents/cryptopp/xed25519.cpp:202: undefined reference to `CryptoPP::Donna::curve25519_mult(unsigned char*, unsigned char const*)'
/Users/logan.blevins/Documents/cryptopp/obj/local/arm64-v8a/libcryptopp_static.a(xed25519.o): In function `CryptoPP::x25519::SecretToPublicKey(unsigned char*, unsigned char const*) const':
/Users/logan.blevins/Documents/cryptopp/xed25519.cpp:145: undefined reference to `CryptoPP::Donna::curve25519_mult(unsigned char*, unsigned char const*)'
/Users/logan.blevins/Documents/cryptopp/xed25519.cpp:145: undefined reference to `CryptoPP::Donna::curve25519_mult(unsigned char*, unsigned char const*)'
/Users/logan.blevins/Documents/cryptopp/xed25519.cpp:145: undefined reference to `CryptoPP::Donna::curve25519_mult(unsigned char*, unsigned char const*)'
Using NDK 20 on macOS 10.14.6
Wilcards like this one come up empty when using CRYPTOPP_PATH
I'm getting this error trying to compile under Windows. It seems the cryptopp_neon
module is missing
E:\cryptocpp-android>E:\AndroidSDK\ndk\25.1.8937393\ndk-build
process_begin: CreateProcess(NULL, grep -i -c -E "Pkg.Revision = (1[6-9]|[2-9][0-9]\.)" $ANDROID_NDK_ROOT/source.properties, ...) failed.
jni/Application.mk:33: pipe: No error
E:/AndroidSDK/ndk/25.1.8937393/build/../build/core/build-binary.mk:586: Android NDK: Module cryptest.exe depends on undefined modules: cryptopp_neon
E:/AndroidSDK/ndk/25.1.8937393/build/../build/core/build-binary.mk:599: *** Android NDK: Note that old versions of ndk-build silently ignored this error case. If your project worked on those versions, the missing libraries were not needed and you can remove those dependencies from the module to fix your build. Alternatively, set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies. . Stop.
PS E:\cryptocpp-android>
I added the .mk files inside cryptopp source, then created my own bat file to compile:
E:\AndroidSDK\ndk\25.1.8937393\ndk-build
NDK_PROJECT_PATH=\
NDK_APPLICATION_MK=\jni\Application.mk
Hope I wouldn't need to use Linux or anything. I checked the .sh script, there wasn't much important things other than ndk-build
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.