我有
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.
包括标志中的/usr/local/local/include/eigen3应照顾此问题。要调试Gradle用来建造我的二进制文件的东西,我希望看到编译语句进行调试。我该怎么做?
重新思考Google之后,我发现了这篇文章:
https://discuss.gradle.org/t/debug-native-unput/9508/2
答案是:
我们生成一个具有所有常见参数的选项文件(build/tmp//options.txt)。您可以使用-i或-info仅查看正在执行(每个源文件)的命令行。
有一个钩子载...