简体   繁体   English

因错误而停止构建

[英]Build halted with errors

I have been working on Haxe project, everything has been going smooth targeting windows... Until I took break for couple of days now when I come back to do some work I get this when I try to debug or release: 我一直在从事Haxe项目的工作,针对Windows的一切都进行得很顺利。。。直到我休息了几天,当我回来做一些工作时,在尝试调试或发布时得到了以下信息:

Building main
Running Pre-Build Command Line...
cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "project.xml" windows -debug -Dfdb
Build halted with errors.
Done(1)

... I do not understand what is wrong, I have multiple times now reinstalled haxetoolkit, lime, openfl everything is up to date and not corrupted, I've tried HaxeDevelop and FlashDevelop, problem persists.... It happens when targeting not just windows but anything ... ...我不明白这是怎么回事,我已经多次安装过haxetoolkit,lime,openfl,所有内容都是最新的并且未损坏,我尝试过HaxeDevelop和FlashDevelop,问题仍然存在。只是窗户,但任何东西 ...

please, help... It is not my code, I have not done anything for couple of days and everything worked fine 2 days ago... 请帮忙...这不是我的代码,几天来我什么都没做,两天前一切都很好...

EDIT: I've managed to pinpoint source of problem I think. 编辑:我设法查明了问题的根源。 I tried to do new project from ground up, and when I edited my project.xml so that I could use .swf as my asset library, something goes wrong and it wont build... :I 我试图从头开始做一个新项目,当我编辑project.xml以便可以将.swf用作我的资产库时,出现了问题,并且无法建立...:I

Here is part of my project.xml: 这是我的project.xml的一部分:

    <!-- classpath, haxe libs -->
    <source path="src" />
    <haxelib name="openfl" />
    <haxelib name="swf" />
    <haxelib name="actuate" />

    <!-- assets -->
    <library path="Assets/library.swf" type="swf" preload="true" generate="true" />

    <assets path="Assets" rename="assets" exclude="openfl.svg|*.swf" />

    <icon path="assets/openfl.svg" />

    <!-- optimize output
    <haxeflag name="-dce full" /> -->

EDIT 2: It's got something to do with: 编辑2:与以下内容有关:

<library path="Assets/library.swf" type="swf" preload="true" generate="true" />

when I remove generate="true" and/or preload="true" I get: 当我删除generate =“ true”和/或preload =“ true”时,我得到:

Error: error running link.exe -out:ApplicationMain-debug.exe -nologo -machine:x86 -debug -subsystem:windows,5.01 -libpath:lib user32.lib @obj/msvc16-debug-ncxp/all_objs
Build halted with errors.
Done(1)

Lovely fellow(s) at OpenFL community helped to solve this problem. OpenFL社区的可爱伙伴帮助解决了这个问题。 It turned out that it was a bug in latest libs, which has been solved now and will be included in next update. 原来,这是最新库中的错误,现已解决,并将在下一个更新中包含。 So, solution for now was to downgrade like so: 因此,目前的解决方案是像这样降级:

haxelib set openfl 4.0.1
haxelib set lime 3.0.1
haxelib set swf 2.2.2

and now it works as its supposed to. 现在它按预期工作了。

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

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