CMake错误:CMake无法确定链接器语言

时间:2017-01-25 22:36:41

标签: android-studio cmake

我正在尝试在Android Studio中构建一个项目,我收到了这个错误:

CMake Error: CMake can not determine linker language for target: AAA-jni

由于我没有编写代码,我试图找到AAA-jni,我找到了它:

"libraries" : 
    {
        "AAA-jni-Release-armeabi-v7a" : 
        {
            "abi" : "armeabi-v7a",
            "artifactName" : "AAA-jni",
            "buildCommand" : "C:\\Users\\Nicky\\AppData\\Local\\Android\\sdk\\cmake\\3.6.3155560\\bin\\cmake.exe --build C:\\Users\\Nicky\\Documents\\AAAAndroid\\app\\.externalNativeBuild\\cmake\\release\\armeabi-v7a --target AAA-jni",
            "buildType" : "release",
            "output" : "C:/Users/Nicky/Documents/AAAAndroid/app/build/intermediates/cmake/release/obj/armeabi-v7a/libAAA-jni.so",
            "toolchain" : "3547424389"
        }
    },

这是在CMake文本文件中调用的:

target_link_libraries( Autour-jni ${log-lib} ${z-lib} )

有关如何解决此问题的任何建议吗?

0 个答案:

没有答案