0

Win7のセットアップに環境変数があるので、プロンプトを介して.asファイルをコンパイルできます。

ただし、FactoryClassがないことについての警告が表示されるため、共有ライブラリを使用してコンパイルできません。クラスとライブラリをインポートしてファイルをコンパイルするにはどうすればよいですか?

でコンパイルしようとしていますmxmlc file.as

ありがとう

4

2 に答える 2

5
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 プラットフォームでもうまくいくはずです。

乾杯!

于 2011-06-22T10:31:58.570 に答える
1

たとえば、これをコンパイル時のオプションに追加するだけです。

mxmlc -static-link-runtime-shared-libraries=true source.as
于 2014-05-06T15:26:10.777 に答える