2012-08-06 47 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

相关问题