簡體   English   中英

因錯誤而停止構建

[英]Build halted with errors

我一直在從事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)

...我不明白這是怎么回事,我已經多次安裝過haxetoolkit,lime,openfl,所有內容都是最新的並且未損壞,我嘗試過HaxeDevelop和FlashDevelop,問題仍然存在。只是窗戶,但任何東西 ...

請幫忙...這不是我的代碼,幾天來我什么都沒做,兩天前一切都很好...

編輯:我設法查明了問題的根源。 我試圖從頭開始做一個新項目,當我編輯project.xml以便可以將.swf用作我的資產庫時,出現了問題,並且無法建立...:I

這是我的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" /> -->

編輯2:與以下內容有關:

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

當我刪除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)

OpenFL社區的可愛伙伴幫助解決了這個問題。 原來,這是最新庫中的錯誤,現已解決,並將在下一個更新中包含。 因此,目前的解決方案是像這樣降級:

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

現在它按預期工作了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM