libhv icon indicating copy to clipboard operation
libhv copied to clipboard

Final Compilation objective file for Android

Open bravepiper opened this issue 3 years ago • 4 comments

I'd like to compile Android Library, based on the BUILD.md, I only get static library(libhv.a) and dynamic library(libhv.dylib) after run the command below successfully, I did not get libhv.so file, then how can I get libhv.so file after compilation? Thanks

## Configured global variable in the .zshrc

export NDK_ROOT=~/Downloads/android-ndk-r21d

## run command in the teminal

sudo $NDK_ROOT/build/tools/make-standalone-toolchain.sh --arch=arm   --platform=android-21 --install-dir=/opt/ndk/arm
sudo $NDK_ROOT/build/tools/make-standalone-toolchain.sh --arch=arm64 --platform=android-21 --install-dir=/opt/ndk/arm64

## Configured global variable in the .zshrc

export PATH=/opt/ndk/arm/bin:/opt/ndk/arm64/bin:$PATH
export CROSS_COMPILE=arm-linux-androideabi-

## run command in the teminal

./configure
make clean
make libhv

## the result after compilation image

bravepiper avatar Jan 13 '23 07:01 bravepiper

image Is there arm-linux-androideabi-gcc in your build log?

ithewei avatar Jan 13 '23 12:01 ithewei

@ithewei Thanks for your reply. I looked through the log and found arm-linux-androideabi-gcc existed while using ./configure command, but it did not exist while using make libhv command, it should be different from yours. Maybe I missed something, could you help point it out? thanks

## ./configure command image

## make libhv command image

bravepiper avatar Jan 13 '23 16:01 bravepiper

CROSS_COMPILE=arm-linux-androideabi- make libhv No sudo

ithewei avatar Jan 14 '23 15:01 ithewei

Thanks, maybe it is related to permission, I will try it again.

bravepiper avatar Jan 16 '23 13:01 bravepiper