Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to compile the source for Android target #1592

Closed
durgesh-tanuku opened this issue Nov 10, 2023 · 1 comment
Closed

Not able to compile the source for Android target #1592

durgesh-tanuku opened this issue Nov 10, 2023 · 1 comment

Comments

@durgesh-tanuku
Copy link

I am trying to cross compile iperf3 library for Android using NDK (version 22). Cloned the source from https://github.com/esnet/iperf and checked out 3.2-STABLE branch. Executed the configure script using below command

./configure -host=arm-none-eabi CXX=/home/hp-laptop/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang++ CC=/home/hp-laptop/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -C AR=/home/hp-laptop/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar RANLIB=/home/hp-laptop/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib -prefix=/home/hp-laptop/install_dir

After that, make is failing as unable to link ssl and crypto liraries.

libtool: link: /home/hp-laptop/Android/Sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang -g -g -O2 -Wall -g -o iperf3 iperf3-main.o  ./.libs/libiperf.a -lssl -lcrypto -lm
ld: error: unable to find library -lssl
ld: error: unable to find library -lcrypto

Where do make look for libraries for cross compilation? Is it the issue with iperf3 library (or) with the process of cross compilation?

Is it possible to compile iperf3 for Android?

@durgesh-tanuku durgesh-tanuku closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2023
@durgesh-tanuku
Copy link
Author

compiled libcrypto and libssl for android and linked

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

No branches or pull requests

1 participant