2015-04-17 78 views
0

我可以在Windows 8.1上构建项目。当与Ubuntu尝试我收到此错误信息如何解决我的构建错误?

描述资源路径位置类型
方法interpolateLocal(Vector2f,Vector2f,浮动)是未定义的类型Vector2f NavMesh.java /太空世界/ src目录/ jme3tools /导航网格线230的Java问题

违规代码是不是我的。

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罐子,就像我在Windows上做的一样,使它工作。为什么不构建?

+1

你试图使用该库是取决于操作系统? – dosdebug

+1

'com.jme3.math.Vector2f'已'内插(Vector2f,Vector2f,浮动)'但不'interpolateLocal'。你确定你没有改变你不应该拥有的东西吗? –

+0

@DavidWallace号我改变了罐子的版本。我现在会尝试完全一样的。但是我不能运行最新版本的东西并不好。 –

回答

2

根据Vector3f and interpolate vs. interpolateLocal博客文章,该方法在版本3.0.10和版本3.134的jme3库之间似乎出现了一些中断更改。

所以你最好检查在Windows 8.1中,你正在使用的版本,并找出如果旧的依赖(或者其它的什么包传递依赖)在某种程度上是构建路径。

上你的Ubuntu你的代码也可以尝试用版本jme3库版本3.0.x的