我已经在 Win7 设置中设置了环境变量,以便我可以通过提示编译 .as 文件。
但它显示了一些关于没有 FactoryClass 的警告,因此我无法使用共享库进行编译。如何使用导入的类和库编译文件?
我正在尝试编译mxmlc file.as
谢谢
我已经在 Win7 设置中设置了环境变量,以便我可以通过提示编译 .as 文件。
但它显示了一些关于没有 FactoryClass 的警告,因此我无法使用共享库进行编译。如何使用导入的类和库编译文件?
我正在尝试编译mxmlc file.as
谢谢
Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.
在保存 Flex 4 文件的“frameworks”目录下找到 flex-config.xml 文件,并将以下内容从“false”更改为“true”:
<static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
to -->
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
我在这里使用的是 Linux 机器,但这也应该在 Windows 平台上起作用。
干杯!
例如,您可以将其添加到您的编译时选项中;
mxmlc -static-link-runtime-shared-libraries=true source.as