MXMLC strange error: Error: only one source is allowed in the filespec

我是研究僧i 提交于 2019-12-11 07:53:42

问题


I'm trying to compile the simple AIR app from here. I get a strange error, strange in that Googling it hardly reveals three results.

mxmlc -library-path=/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc NativeProcessTestFlex.mxml

Loading configuration file /Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/flex-config.xml Adobe Flex Compiler (mxmlc) Version 4.5.0 build 17689 Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.

Error: only one source is allowed in the filespec

Use 'mxmlc -help' for information about using the command line.

Anyone knows what this error is all about?


回答1:


try this instead:

mxmlc -library-path="/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc" NativeProcessTestFlex.mxml

You had spaces in the application name, which make the command line think it was the next 'parameter'.




回答2:


Try to place library path in quotes the following way:

mxmlc -library-path="/Applications/Adobe Flash Builder Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc" NativeProcessTestFlex.mxml

The problem is definitely in spaces so it thinks Flash and Builder and Burrito/sdks/4.5.0/frameworks/libs/air/airglobal.swc are source files.



来源:https://stackoverflow.com/questions/5951753/mxmlc-strange-error-error-only-one-source-is-allowed-in-the-filespec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!