-
Notifications
You must be signed in to change notification settings - Fork 757
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
安卓多线程调用TNN动态库崩溃问题 #1974
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1. 环境(environment)
2. Github版本
3. 编译方式(compile method)
CMake完整编译参数(full cmake arguments)
编译参数:
ASM_FLAGS = -isystem /home/Android/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -O2 -DNDEBUG -fPIC
ASM_DEFINES = -DTNN_ARM82=1 -DTNN_EXPORTS -D_SOURCE_DIR_LEN=39
ASM_INCLUDES = -I/home/git/gfl_algorithm/third_party/TNN/scripts/build64/third_party/gflags/include -I/home/git/gfl_algorithm/third_party/TNN/include -I/home/git/gfl_algorithm/third_party/TNN/source -I/home/git/gfl_algorithm/third_party/TNN/third_party/opencl/include -I/home/git/gfl_algorithm/third_party/TNN/source/device/opencl
CXX_FLAGS = -isystem /home/Android/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -Wno-pass-failed -Wno-deprecated-declarations -Wno-ignored-attributes -Wnull-dereference -DTNN_COREML_FULL_PRECISION=1 -DTNN_METAL_FULL_PRECISION=1 -fopenmp=libomp -pthread -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -fPIC -std=gnu++11
CXX_DEFINES = -DTNN_ARM82=1 -DTNN_EXPORTS -D_SOURCE_DIR_LEN=39
CXX_INCLUDES = -I/home/git/gfl_algorithm/third_party/TNN/scripts/build64/third_party/gflags/include -I/home/git/gfl_algorithm/third_party/TNN/include -I/home/git/gfl_algorithm/third_party/TNN/source -I/home/git/gfl_algorithm/third_party/TNN/third_party/opencl/include -I/home/git/gfl_algorithm/third_party/TNN/source/device/opencl -isystem /home/Android/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include -isystem /home/Android/android-ndk-r18b/sources/cxx-stl/llvm-libc++abi/include
链接参数:
/home/Android/android-ndk-r18b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android22 --gcc-toolchain=/home/Android/android-ndk-r18b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 --sysroot=/home/Android/android-ndk-r18b/sysroot -fPIC -isystem /home/Android/android-ndk-r18b/sysroot/usr/include/aarch64-linux-android -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -Wno-pass-failed -Wno-deprecated-declarations -Wno-ignored-attributes -Wnull-dereference -DTNN_COREML_FULL_PRECISION=1 -DTNN_METAL_FULL_PRECISION=1 -fopenmp=libomp -pthread -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ --sysroot /home/Android/android-ndk-r18b/platforms/android-22/arch-arm64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -L/home/Android/android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -s -Wl,--gc-sections -shared -Wl,-soname,libTNN.so -o libTNN.so @CMakeFiles/TNN.dir/objects1.rsp -Wl,-Bstatic -lomp -lc++_static -lc++abi -lomp -Wl,-Bdynamic -llog -fopenmp -Wl,-Bstatic -lc++_static -lc++abi -Wl,-Bdynamic -llog -latomic -lm "/home/Android/android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_static.a" "/home/Android/android-ndk-r18b/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++abi.a"
4. 编译日志(build log)
./scripts/build_android.sh
5. 详细描述bug 情况 (Describe the bug)
6. 运行日志(runtime log)
7. 截图(Screenshots)
将截图粘贴在这里 ![20231208-152522](https://github.com/Tencent/TNN/assets/35446834/6a59b01c-a6ce-4461-bae5-c1d0fa90548c)
The text was updated successfully, but these errors were encountered: