无法在Ubuntu上构建J2V8

无法在Ubuntu上构建J2V8

本文介绍了无法在Ubuntu上构建J2V8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Ubuntu 16.04上构建J2V8,但我不断收到错误消息.我正在运行Github上提供的安装脚本,但我不断收到此错误:(为简便起见进行编辑)

I'm trying to build J2V8 on Ubuntu 16.04 but I keep getting errors.I'm running the install script provided on Github but I keep getting this error: (edited for brevity)

 make[1]: Leaving directory '/home/andrew/REUIOT/J2V8/node/out'
ln -fs out/Release/node node
cp: cannot stat '/data/jenkins/node': No such file or directory
com_eclipsesource_v8_V8Impl.cpp:11:17: fatal error: jni.h: No such file or directory
compilation terminated.
[INFO] Scanning for projects...
[INFO] BUILD FAILURE-----------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/andrew/REUIOT/J2V8/jni). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

我不知道/data/jenkins/node应该指的是什么,因为我不知道Linux系统中没有/data目录.我尝试重新安装OpenJDK来解决fatal error: jni.h,但是当我尝试这样做时apt似乎会抛出错误.

I don't know what /data/jenkins/node is supposed to refer to because I know of no Linux system that has a /data directory.I've tried re-installing OpenJDK to resolve the fatal error: jni.h but apt seems to throw an error when I try to do that.

推荐答案

其中包含的脚本是我(作者使用)我在CI服务器上构建J2V8的脚本. /data/jenkins/node是我在jenkins服务器上构建节点的位置. Linux的构建说明位于自述文件中.如果要构建J2V8,则应参考这些说明.

The script that is included is the one I (the author uses) on my CI server to build J2V8. /data/jenkins/node is the location on my jenkins server that I built node. The Linux instructions for building are in the README. You should refer to those instructions if you would like to build J2V8.

这篇关于无法在Ubuntu上构建J2V8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 22:05