问题
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