Skip to main content
Known Participant
Oct 9, 2009 10:09 AM UTC
Question

my compile shell script can't work when using flex4 sdk beta2

I worked with flex4 sdk beta 1, and the compile script worked well. for example:

mxmlc -debug=true -output=../main.swf -source-path ./src /usr/local/software/flash/open_source -- ./src/main.as


But, when i chang into beta2, it shows some errors which are about  RSL things as the follows:

D:\setup_bak\flashbuilder4beta2\testFlex4.as: 警告: 此编译单元不包含在 Frame 元
数据中指定的 factoryClass,无法加载配置的运行时共享库。要在没有运行时共享库的情
况下进行编译,请将 -static-link-runtime-shared-libraries 选项设置为 true,或删除
-runtime-shared-libraries 选项。

So I use -dump-config option to generate a config xml, when i using the config xml, i got an error as the follows:

错误: 必须指定目标文件

使用“mxmlc -help”可获得有关如何使用命令行的信息。


Any one can tell me why?

sorry for my english, i don't known whether i describe my problem clearly. Thank for reading this thread.

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

matt_chotin
Inspiring
Oct 9, 2009 4:53 PM UTC

Hi,

Unfortunately I can't make out the error. Any chance you set the Java

environment to run in English for the build (in the jvm.config in the

bin folder I think you can set the lang) and we can see what the full

error is describing?

Matt

Translate
fatmckAuthor
Known Participant
Oct 10, 2009 4:08 AM UTC

Thank you, Matt.

i modified the java.args in jvm.config as the following:

java.args=-Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US

now, i can get an english error description:

Loading configuration file D:\Program Files\Adobe\Adobe Flash Builder Beta 2\sdks\4.0.0\frameworks\flex-config.xml
D:\******\testFlex4.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.

Any idea about this error?

Translate
matt_chotin
Inspiring
Oct 10, 2009 5:34 PM UTC

I think you found an interesting issue.  What class does your testFlex4.as extend?  Is it meant to be a Flex app or is it just meant to be an AS app extending Sprite?  If the latter, we're still trying to load the RSLs and your environment isn't meant to.  That's probably something we should figure out on our own and just ignore our RSL option.  If your app is a Flex app, then I'd want to see the file because it may be that we're not handling the AS case correctly.  But I'm assuming that your app is not a Flex app right now, so what I'd recommend is just following the instructions in the error and set -static-link-runtime-shared-libraries=true in your script (and you can do that even if it is a Flex app to move forward most likely).

Can you please file a bug on this with your test file and script along with an explanation of what you want (is it meant to load Flex eventually or just remain pure AS)?  Post the bug number here and we'll think about how the compiler should treat this case.

Matt

Translate