我正在尝试在(主机)上运行的(来宾)上构建java谷歌云调试器。Ubuntu 15.10 Server
Virtual Box 5.0.14
Mac OS X El Capitan
在安装cmake
, build-essential
,oracle java 8
等之后,我还必须在运行之前maven3
对以下内容进行更改:src/agent/Makefile
./build.sh
- 更改
/path/to/java/
为/usr/lib/jvm/java-8-oracle/
- 添加了这个
include
:-I/usr/lib/jvm/java-8-oracle/include/linux
因此,我的INCLUDES
声明如下所示:
INCLUDES = \
-I/usr/lib/jvm/java-8-oracle/include \
-I/usr/lib/jvm/java-8-oracle/include/linux \
-I$(THIRD_PARTY_INCLUDE_PATH) \
-I$(ANTLR_CPP_LIB_INCLUDE) \
-I. \
-I../codegen \
-Iantlrgen \
之后,构建运行良好,但在尝试构建时最终失败expression_util.o
错误:
g++ -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux -I/home/ubuntu-java/Development/google-cloud-debugger/cloud-debug-java/third_party/install/include -I../../third_party/antlr/lib/cpp/v2_7_2/ -I. -I../codegen -Iantlrgen -m64 -std=c++11 -fPIC -Werror -Wall -Wno-unused-parameter -Wno-deprecated -Wno-ignored-qualifiers -Wno-sign-compare -Wno-array-bounds -g0 -DSTANDALONE_BUILD -DGCP_HUB_CLIENT -Wno-unused-but-set-variable -Wno-strict-aliasing -O3 -D NDEBUG -c expression_util.cc -o expression_util.o
In file included from expression_util.cc:25:0:
antlrgen/JavaExpressionLexer.hpp:4:54: fatal error: third_party/antlr/lib/cpp/antlr/config.hpp: No such file or directory
compilation terminated.
Makefile:190: recipe for target 'expression_util.o' failed
make: *** [expression_util.o] Error 1
在生成 JavaExpressionLexer.hpp
的文件中,它试图#include
third_party/antlr/lib/cpp/antlr/config.hpp
找到它并且未能找到它。
在项目中,我确实看到了一个config.hpp
,但它在<project-root>/third_party/antlr/lib/cpp/v2_7_2/antlr/
.
我不确定如何解决此错误。