繁体   English   中英

如何解决我的构建错误?

[英]How can I resolve my build error?

我可以在Windows 8.1上构建项目。 当尝试使用Ubuntu时,出现此错误消息

说明资源路径位置类型
对于类型Vector2f NavMesh.java / spaceworld / src / jme3tools / navmesh第230行,未定义方法interpolateLocal(Vector2f,Vector2f,float)。

有问题的代码不是我的。

if (d1 < d2){                           
  intersectionPoint.interpolateLocal(wall.getPointA(), wall.getPointB(), distBlend);
  newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}else{
  intersectionPoint.interpolateLocal(wall.getPointB(), wall.getPointA(), distBlend);
  newWayPoint = new Vector3f(intersectionPoint.x, 0, intersectionPoint.y);
}

我已经包含cai-nmgen-0.1.2.jar和jme3 jar,就像我在Windows上所做的一样。 为什么不建?

根据Vector3f和interpolate vs. interpolateLocal博客文章,似乎在jme3库的3.0.10版本和3.1版本之间,此方法有一些中断更改。

因此,最好检查一下Windows 8.1上使用的版本,并确定较旧的依赖项(或某些其他程序包传递性依赖项)是否在构建路径中。

还可以在您的Ubuntu上使用版本jme3库版本3.0.x的代码

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM