0
我儘量讓我有一個本地共享庫的Android應用程序,但我得到以下錯誤:的Android NDK失敗,libutils.so:未定義的引用`__pthread_gettid」
Debug//local/arm64-v8a/libutils.so: undefined reference to `__pthread_gettid' clang++: error: linker command failed with exit code 1 (use -v to see invocation)
我使用的Android NDK R13B。在我的makefile有:
Application.mk
.....
APP_PLATFORM := android-19
APP_ABI := arm64-v8a
.....
Android.mk
.....
include $(CLEAR_VARS)
LOCAL_MODULE := libutils
LOCAL_SRC_FILES := $(APP_ABI)/libutils.so <= already 64bit lib
include $(PREBUILT_SHARED_LIBRARY)
.....