2017-03-06 79 views
0

gradle這個看輸出model.components.binaries.all

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用於構建我的二進制文件,我希望看到編譯語句進行調試。我該怎麼做呢?

回答

0

重新思考什麼,谷歌之後,我發現這個職位:

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

答案在爲:

我們生成一個選項文件(建立/ tmp目錄// options.txt),其有所有的共同論點。您可以使用-i或--i​​nfo來查看正在執行的命令行(每個源文件)。

有一個參數鉤...