Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
build: fix linker error
Browse files Browse the repository at this point in the history
ld: error: found local symbol '__bss_end__' in global part of symbol table in file C:/Users/ccxxxi/projects/ecg_monitor/build/app/pytorch_android-1.10.0.aar/jni/arm64-v8a\libpytorch_jni.so

android/ndk#927 (comment)
https://stackoverflow.com/questions/57175936/how-to-set-local-ldflags-local-cppflags-with-cmake-in-ndk
  • Loading branch information
CCXXXI committed Feb 16, 2023
1 parent cced307 commit b3a21ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ find_library(FBJNI_LIBRARY fbjni
PATHS ${PYTORCH_LINK_DIRS}
NO_CMAKE_FIND_ROOT_PATH)
target_link_libraries(ecg_model ${PYTORCH_LIBRARY} ${FBJNI_LIBRARY})
target_link_options(ecg_model PUBLIC "-Wl,--no-fatal-warnings")

0 comments on commit b3a21ac

Please sign in to comment.