Skip to content

Rust401/c_cpp_dlopen_rust_so

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust_cpp_dlopen_crash_bug

1. for arm64 linux

build

sh make-arm64-lnx.sh 

copy libdylib_hello.so and test to your arm64 server

then run on the arm64 server

./test

2. for android platfrom (ohos is almostly the same)

download ndk first ndk-r25c

unzip to some path

unzip android-ndk-r25c-linux.zip

configure path

export NDK=/path/to/your/ndk

then build

sh make-android.sh

then push libdylib_hello.so and test to your devices via adb

adb push libdylib_hello.so /data/local
adb push test /data/local
adb shell "chmod 777 /data/local/test"

then run on the device

adb shell
/data/local/test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published