저는 데스크탑에서 완벽하게 실행되는 libgdx 프로젝트를 가지고 있습니다. 그러나 웹 애플리케이션으로 바꾸려는 데 많은 어려움을 겪고 있습니다.libgdx gwt 백엔드 임포트 이슈
지금 당장 실행해야 할 문제는 gdx 백엔드 항아리를 올바르게 가져 오지 않는 것입니다.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='trmhtml5'>
<inherits name='com.badlogic.gdx.backends.gdx_backends_gwt' />
<inherits name='TeamRogueMiners' />
<!-- Specify the app entry point class. -->
<entry-point class='com.quazandwally.teamrogueminers.client.GwtLauncher'/>
<set-configuration-property name="gdx.assetpath" value="../Android/assets" />
</module>
그리고 이것이 내가 점점 오전 오류입니다 :
[TRACE] [trmhtml5] - Finding entry point classes
[ERROR] [trmhtml5] - Errors in 'file:/D:/Dev%20Dropbox/Dropbox/Eclipse/workspace/TRMHTML5/src/com/quazandwally/teamrogueminers/client/GwtLauncher.java'
[ERROR] [trmhtml5] - Line 11: No source code is available for type com.badlogic.gdx.backends.gwt.GwtApplication; did you forget to inherit a required module?
[ERROR] [trmhtml5] - Line 14: No source code is available for type com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration; did you forget to inherit a required module?
[ERROR] [trmhtml5] - Line 23: No source code is available for type com.badlogic.gdx.ApplicationListener; did you forget to inherit a required module?
[ERROR] [trmhtml5] - Unable to find type 'com.quazandwally.teamrogueminers.client.GwtLauncher'
[ERROR] [trmhtml5] - Hint: Previous compiler errors may have made this type unavailable
[ERROR] [trmhtml5] - Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[ERROR] [trmhtml5] - Failed to load module 'trmhtml5' from user agent 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36' at 127.0.0.1:58554
그것은 내 TeamRogueMiners 클래스 객체를 인식하지만 백엔드 단지 물건을 여기 내 XML 파일의 모습입니다. Java 빌드 경로 아래에 gdx-backend-gwt.jar를 포함 시켰으며 소스 파일도 추가했습니다. 이 라이브러리를 WEB-INF의 lib 디렉토리에 넣었습니다.이 라이브러리는 생성 된 코드가 어떻게 작동하는지, 샘플 프로젝트가 어떻게 수행하는지 보여줍니다.
이것은 모두 최신 libgdx 릴리스입니다. 야간 빌드를 시도하면 GwtApplication에 재정의하도록 정의 된 getApplicationListener 메소드가없는 것처럼 보입니다.
모든 도움을 주시면 대단히 감사하겠습니다.
이것은 Eclipse 4.2에서 Windows 7 64 비트에서 도움이되는 경우에도 수행됩니다.
했습니다. 고마워요! – mtrc
실제로'-sources.jar'에 대해서는 몰랐습니다. 나는 응용 프로그램을 컴파일하도록 요청 받았고, 그것은 내 응용 프로그램이 아니며, 문제가 생기면 나를 많이 구해 줬다. –