为什么在为 android、NDK、gcc 构建 avin2/SensorKinect 时出现无法识别的选项“--dynamic-linker”错误
Why do i get a unrecognized option '--dynamic-linker' error while Building avin2/SensorKinect for android, NDK, gcc
我从 git 存储库获得的 makefile 看起来像这样:
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../../../Include/ \
$(LOCAL_PATH)/../../../../Source/ \
$(LOCAL_PATH)/../../../../Source/XnCommon \
$(LOCAL_PATH)/../../../../Source/External/LibJPEG \
LOCAL_CFLAGS := -fvisibility=hidden -DXN_FORMATS_EXPORTS
LOCAL_LDFLAGS += -Wl,--export-dynamic --dynamic-linker
LOCAL_SHARED_LIBRARIES := OpenNI libusb XnCore
LOCAL_PREBUILT_LIBS := libc
LOCAL_MODULE := XnFormats
好的,推送的 makefile 有一点语法错误 - 它像这样工作(没有 space,逗号)
LOCAL_LDFLAGS += -Wl,--export-dynamic,--dynamic-linker
我从 git 存储库获得的 makefile 看起来像这样:
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/../../../../Include/ \
$(LOCAL_PATH)/../../../../Source/ \
$(LOCAL_PATH)/../../../../Source/XnCommon \
$(LOCAL_PATH)/../../../../Source/External/LibJPEG \
LOCAL_CFLAGS := -fvisibility=hidden -DXN_FORMATS_EXPORTS
LOCAL_LDFLAGS += -Wl,--export-dynamic --dynamic-linker
LOCAL_SHARED_LIBRARIES := OpenNI libusb XnCore
LOCAL_PREBUILT_LIBS := libc
LOCAL_MODULE := XnFormats
好的,推送的 makefile 有一点语法错误 - 它像这样工作(没有 space,逗号)
LOCAL_LDFLAGS += -Wl,--export-dynamic,--dynamic-linker