Skip to content

Android build #1833

Answered by res0nance
AlothNaveen asked this question in Q&A
Jul 9, 2024 · 6 comments · 2 replies

You must be logged in to vote

I believe to get an .a file you only need

git clone https://github.com/open-quantum-safe/liboqs
cd liboqs
mkdir build
cd build
cmake -DANDROID_ABI=<ANDROID_ABI> -DCMAKE_TOOLCHAIN_FILE=<PATH TO NDK>/build/cmake/android.toolchain.cmake <ADDITIONAL OQS FLAGS> ..
make all

This will produce a .a file in the build/lib folder.

The reason the build-android.sh file produces an .so file is because the -DBUILD_SHARED_LIBS=ON flag is included. Turn that flag off and it should produce an .a file

Replies: 6 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@dstebila

You must be logged in to vote
1 reply
@dstebila

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by AlothNaveen

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants