首页
社区
课程
招聘
Cydia Substrate 编译出错
发表于: 2017-8-25 20:49 3181

Cydia Substrate 编译出错

2017-8-25 20:49
3181

2 warnings generated.

[arm64-v8a] SharedLibrary  : libFuck.cy.so

F:/NDK/NDK/tools/build//../toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: skipping incompatible jni/libsubstrate-dvm.so when searching for -lsubstrate-dvm

F:/NDK/NDK/tools/build//../toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lsubstrate-dvm

F:/NDK/NDK/tools/build//../toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: skipping incompatible jni/libsubstrate.so when searching for -lsubstrate

F:/NDK/NDK/tools/build//../toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lsubstrate

clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [obj/local/arm64-v8a/libFuck.cy.so] Error 1



编译的时候报这个错 弄了好久 搞不定。


这里是MK文件

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := substrate

LOCAL_SRC_FILES := libsubstrate.so

include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE    := substrate-dvm

LOCAL_SRC_FILES := libsubstrate-dvm.so

include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)

# 注意:此处substrate规定模块名必须以.cy结尾

LOCAL_MODULE    := Fuck.cy 

LOCAL_SRC_FILES := Fuck.cpp

LOCAL_LDLIBS := -llog

LOCAL_ARM_MODE := arm

LOCAL_LDLIBS += C:\Users\Administrator\workspace\Fuck\Fuck\jni -lsubstrate-dvm -lsubstrate  

include $(BUILD_SHARED_LIBRARY)



提示着不到 libsubstrate-dvm  求大神解答



[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回
//