2012-08-06 85 views
1

看起來命令-el強制外部鏈接,但它不會被編譯,因爲playerglobal.swc中的選項無法找到。我只想從源文件夾構建一個swc,不包含任何外部資源。如何在不包含SDK庫的情況下編譯FDT中的SWC?

我的第二個問題是關於構建包括ASDOC信息的FAT SWC文件。

回答

1

下面是在ANT中如何處理它。

<target name="foundation build-debug"> 
    <delete file="${FDTProjectPath}/bin/${foundation-debug-file}"/> 
    <fdt.loadProjectProperties projectname="frameworks" /> 
    <fdt.launch.library projectname="${FDTProject}" debug="true" autoaddclasspath="false" compilerarguments=" 
     -target-player=${FDTProjectPlayerVersion} 
     -include-sources=${FDTProjectPath}/src 
     -allow-source-path-overlap=true 
      -external-library-path+=${FDTProjectSdkPath}/frameworks/libs/ 
      -external-library-path+=${FDTProjectPath}/lib 
     -incremental=true 
     -benchmark=true" target="${FDTProjectPath}/bin/${foundation-debug-file}" /> 
</target> 
0

確保您將每個SDK .SWC設置爲'用作運行時共享代碼'。這位於項目的屬性頁面中。

enter image description here

+0

我不確定這是否作爲RSL的標識符或沒有。它應該說用作外部共享代碼 – bond 2012-08-24 18:19:39

+0

這不能解決我的問題。當我嘗試執行SWF我得到:類spark.components ::應用程序找不到。它不會嘗試找到我在同一位置上的火花組件 – ufk 2013-04-04 14:24:11

+0

@ufk你打算做什麼?這個線程是關於從SWCs中排除類的。您遇到的錯誤是當某人不想包含像'spark.components :: Application'這樣的定義時想要的東西, – 2013-04-04 18:10:06

相關問題