首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gradle请参阅model.components.binaries.all的输出

gradle请参阅model.components.binaries.all的输出
EN

Stack Overflow用户
提问于 2017-03-07 01:57:35
回答 1查看 53关注 0票数 0

我有过

代码语言:javascript
复制
all {
    if (toolChain in Gcc) {
        cppCompiler.args "--std=c++11",
        "-I", "${lib_base_path}",
        "-I", "${lib_base_path}${File.separator}include",
        "-I", "${jni_base_path}",
        "-I", "/usr/local/inclue/eigen3"
        linker.args "-L", "${lib_linker_path}", "-lcpp_pose",
            "-Wl,-rpath,${lib_linker_path}"
    } else if (toolChain in Clang) {
        cppCompiler.args "--std=c++11",
        "-I", "${lib_base_path}",
        "-I", "${lib_base_path}${File.separator}include",
        "-I", "${jni_base_path}",
        "-I", "/usr/local/inclue/eigen3"
        linker.args "-L", "${lib_linker_path}", "-lcpp_pose",
            "-Wl,-rpath,${lib_linker_path}"
    } else {
        throw GradleException("Tool chain " + toolChain +
                              " is not supported.")
    }
}

作为我的gradle.build文件中的一节。然而,当gradle开始构建时,我得到了

代码语言:javascript
复制
fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
         ^
1 error generated.

include标志中的/usr/local/include/eign3应该会处理此问题。要调试gradle用来构建二进制文件的内容,我希望看到要调试的compile语句。我该怎么做呢?

EN

回答 1

Stack Overflow用户

发布于 2017-03-07 23:48:00

在重新思考谷歌的内容后,我发现了这篇文章:

https://discuss.gradle.org/t/debug-native-output/9508/2

答案是:

我们生成一个包含所有常见参数的选项文件(build/tmp//options.txt)。您也可以使用-i或--info来查看正在执行的命令行(每个源文件)。有一个钩子withArguments...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42632438

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档