gpt4 book ai didi

c++ - gradle请参阅model.components.binaries.all的输出

转载 作者:行者123 更新时间:2023-12-03 05:59:30 27 4
gpt4 key购买 nike

我有

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 / include / eigen3应该解决此问题。要调试gradle用于构建我的二进制文件的过程,我想看看要调试的compile语句。我该怎么做呢?

最佳答案

重新考虑了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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com