2016-07-24 63 views
0

我一直在努力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,石灰,openfl一切都是最新的,並且沒有損壞,我已經試過HaxeDevelop和FlashDevelop中,問題堅持....這發生在針對不只是Windows時,但什麼 ...

請,幫助...這不是我的代碼,我幾天沒有做任何事情,2天前一切正常......

編輯:我設法找出問題的根源,我認爲。我試圖從頭開始做新項目,當我編輯我的project.xml以便我可以使用.swf作爲我的資產庫時,出現了一些錯誤,它不會生成...:我

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

當我刪除生成= 「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) 
+0

獲得真正的絕望...... :(不知道什麼是錯的... –

+0

你應該嘗試從命令行建立你的項目,看看實際的錯誤。 – RealyUniqueName

回答

0

在OpenFL社區的可愛的同事幫助解決了這個問題。事實證明,這是最新庫文件中的一個錯誤,現在已經解決了,並將包含在下一次更新中。所以,現在的解決方案是降級,如下所示:

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

現在它的工作原理如下。