我有过
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开始构建时,我得到了
fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
^
1 error generated.include标志中的/usr/local/include/eign3应该会处理此问题。要调试gradle用来构建二进制文件的内容,我希望看到要调试的compile语句。我该怎么做呢?
发布于 2017-03-07 23:48:00
在重新思考谷歌的内容后,我发现了这篇文章:
https://discuss.gradle.org/t/debug-native-output/9508/2
答案是:
我们生成一个包含所有常见参数的选项文件(build/tmp//options.txt)。您也可以使用-i或--info来查看正在执行的命令行(每个源文件)。有一个钩子withArguments...
https://stackoverflow.com/questions/42632438
复制相似问题