首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LIBGDX -很难加载libgdx/测试

LIBGDX -很难加载libgdx/测试
EN

Stack Overflow用户
提问于 2016-12-22 12:31:07
回答 1查看 203关注 0票数 0

几个小时以来,我一直试图在eclipse中加载测试存储库libgdx/测试,但没有成功。

我使用的是JRE 1.8,但编译器遵从性级别为1.7。我按照这里的教程如何运行测试设置了ANT (1.9.7)和GWT(2.6.1,如本教程所建议的)。

我已经把所有的项目都打扫干净了,并重新整理了一下。我仍然会遇到很多错误,因为找不到罐子(请不要告诉我,它们必须手工添加:?):

代码语言:javascript
复制
Description Resource    Path    Location    Type
Project 'gdx-backend-jglfw' is missing required library: '/gdx/libs/gdx-natives.jar'    gdx-backend-jglfw       Build path  Build Path Problem
Project 'gdx-backend-jglfw' is missing required library: 'libs/gdx-backend-jglfw-natives.jar'   gdx-backend-jglfw       Build path  Build Path Problem
Project 'gdx-backend-jglfw' is missing required library: 'libs/jglfw.jar'   gdx-backend-jglfw       Build path  Build Path Problem
Project 'gdx-backend-lwjgl' is missing required library: '/gdx/libs/gdx-natives.jar'    gdx-backend-lwjgl       Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: '/gdx/libs/gdx-natives.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-linux.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-macos.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw-natives-windows.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-glfw.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-linux.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-macos.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc-natives-windows.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-jemalloc.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-linux.jar'    gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-macos.jar'    gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-natives-windows.jar'  gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-linux.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-macos.jar' gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal-natives-windows.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-openal.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-opengl.jar'   gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-linux.jar'    gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-macos.jar'    gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb-natives-windows.jar'  gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl-stb.jar'  gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-lwjgl3' is missing required library: 'libs/lwjgl.jar'  gdx-backend-lwjgl3      Build path  Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-cacerts-full.jar'    gdx-backend-robovm      Build path  Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-cocoatouch.jar'  gdx-backend-robovm      Build path  Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-objc.jar'    gdx-backend-robovm      Build path  Build Path Problem
Project 'gdx-backend-robovm' is missing required library: 'libs/robovm-rt.jar'  gdx-backend-robovm      Build path  Build Path Problem
Project 'gdx-bullet' is missing required library: 'libs/gdx-bullet-natives.jar' gdx-bullet      Build path  Build Path Problem
Project 'gdx-controllers-desktop' is missing required library: 'libs/gdx-controllers-desktop-natives.jar'   gdx-controllers-desktop     Build path  Build Path Problem
Project 'gdx-freetype' is missing required library: 'libs/gdx-freetype-natives.jar' gdx-freetype        Build path  Build Path Problem
Project 'gdx-tests-android' is missing required source folder: 'gen'    gdx-tests-android       Build path  Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-box2d/libs/gdx-box2d-natives.jar'  gdx-tests-lwjgl     Build path  Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar'  gdx-tests-lwjgl     Build path  Build Path Problem
Project 'gdx-tests-lwjgl' is missing required library: '/gdx-freetype/libs/gdx-freetype-natives.jar'    gdx-tests-lwjgl     Build path  Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-box2d/libs/gdx-box2d-natives.jar' gdx-tests-lwjgl3        Build path  Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar' gdx-tests-lwjgl3        Build path  Build Path Problem
Project 'gdx-tests-lwjgl3' is missing required library: '/gdx-freetype/libs/gdx-freetype-natives.jar'   gdx-tests-lwjgl3        Build path  Build Path Problem
Project 'gdx' is missing required library: 'libs/hamcrest-core-1.3.jar' gdx     Build path  Build Path Problem
Project 'gdx' is missing required library: 'libs/junit-4.11.jar'    gdx     Build path  Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-backends-gwt'  gdx-backends-gwt        Build path  Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-box2d-gwt' gdx-box2d-gwt       Build path  Build Path Problem
Unbound classpath container: 'GWT SDK [missing]' in project 'gdx-controllers-gwt'   gdx-controllers-gwt     Build path  Build Path Problem
Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment.     gdx-controllers-gwt     Build path  JRE System Library Problem

注意到:我知道这个问题:libGDX -gdx-后端-jglfw失踪和其他一些,但是它很老,所以库已经改变了,没有发布任何解决方案。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-12-23 11:08:32

Eclipse抱怨您的JRE (堆栈底部):

Build指定执行环境JavaSE-1.7。工作区中没有安装与此环境严格兼容的JRE。gdx-控制器-gwt构建路径JRE系统库问题

在项目JRE1.7中预配置需要在Eclipse中设置属性

===============

其他构建路径问题应该通过运行ant -f fetch.xml来解决--确保它成功。

或者,您可以运行更具体的ant任务,例如ant -f fetch.xml fetch-lwjgl来解决依赖关系,这将修复

项目‘gdx-后端-lwjgl3’缺少所需的库

===============

对于缺少GWT问题:

  • 确保您这样做了: GWT插件用于Eclipse -按照页面上的说明只安装required,GWT还确保默认的GWT是2.6.1。您可能需要在这里下载并安装它,方法是转到Window/,->,Google,->,Web,->添加,然后确保它被选中。
  • 检查它实际上在那里:例如右键单击gdx-backends-gwt项目Build Path - Configure Build Path - Libraries选项卡,它不应该有错误并提供正确的路径,例如:

  • 以上三个错误的项目-- gdx-backends-gwtgdx-box2d-gwtgdx-controllers-gwt

顺便说一句,2016年12月12日,devs将其更改为gwt-2.8.0,参见提交a748656a,因此可能还没有更新指令

===============

我也做过./gradlew build --但这不是导致你的问题的原因

别忘了清理-重建你的月食:

要解决这些问题,请做以下工作: 转到Project ->干净确保所有项目都被选中,然后单击OK 选择中的所有项目,然后按F5刷新它们(vodoo.) 关于GWT还有几个问题。在Problems视图中,右键单击“web.xml文件不存在”的每个条目,选择Quick并按OK

即使在那之后,我仍然有一个问题:)

代码语言:javascript
复制
The project was not built since its build path is incomplete. Cannot find the class file for org.robovm.apple.uikit.UIApplicationDelegateAdapter.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41283267

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档