作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有
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.")
}
}
fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
^
1 error generated.
最佳答案
重新考虑了Google的内容后,我发现了以下信息:
https://discuss.gradle.org/t/debug-native-output/9508/2
答案在:
We generate an options file (build/tmp//options.txt) that has all of the common arguments. You can use -i or --info to see just the command line that's being executed (per source file) as well.
There's a hook withArguments...
关于c++ - gradle请参阅model.components.binaries.all的输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42632438/
我是一名优秀的程序员,十分优秀!