Haxe项目没有编译

时间:2015-04-17 10:46:25

标签: flash haxe openfl lime

我正在研究我的游戏,当时我注意到OpenFL的新版本,Lime(如果我记得正确)和swf已经发布。我更新了库,再次打开了FlashDevelop,并继续制作我的游戏。过了一会儿,我的IDE没有在Flash上​​成功编译,而是在控制台上打印了这条错误消息;

Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Juha\Documents\Haxe Programs\Time4You\Time4You.hxproj" -ipc 1192a496-8b1d-4775-a939-9caf24483487 -version "3.1.3" -compiler "C:\HaxeToolkit\haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -target "flash"
Building Time4You
Running Pre-Build Command Line...
cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "project.xml" flash -debug -Dfdb
Called from ? line 1
Called from CommandLineTools.hx line 1359
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 126
Called from CommandLineTools.hx line 579
Called from lime/project/PlatformTarget.hx line 70
Called from lime/tools/platforms/FlashPlatform.hx line 224
Called from lime/tools/helpers/FlashHelper.hx line 816
Called from lime/tools/helpers/FlashHelper.hx line 629
Called from format/swf/Writer.hx line 59
Called from format/swf/Writer.hx line 1255
Called from format/swf/Writer.hx line 1163
Called from format/swf/Writer.hx line 1121
Called from /usr/lib/haxe/std/haxe/io/Output.hx line 168
Uncaught exception - Overflow
Build halted with errors.

任何想法可能会导致这种情况或如何解决这个问题?

2 个答案:

答案 0 :(得分:1)

您可以尝试回滚到之前的库吗?你的haxelib名单怎么说?

您也可以尝试-D legacy编译器标志

您是否单独更新了每个库?如果您正在使用某种类型的引擎(例如,haxe flixel),则可能存在版本不匹配。如果是这样,haxelib升级可能会起作用。

我可能会尝试这些(以相反的顺序),然​​后深入了解更新的库中的更改内容,如果您还没有

答案 1 :(得分:0)

仅供将来参考,问题很可能是由损坏/损坏的.hxproj文件引起的,在大多数情况下制作另一个项目,或者如果您正在使用版本控制,则回滚该文件将最有效。