[flexcoders] compc Help: Error: unable to load SWC ... symbol 0 not defined
In our Flex 2 project, we use a swc file generated from within the Flash 9 IDE, saved as lib/assets/Widgets.swc. We include it into an intermediary swc file that we build to host our custom components for reuse across projects. In FlexBuilder 2, we added the lib/assets/Widgets.swc to the intermediary components swc's library path, and everything worked. Our website deploys with an automated build script, so we use the command-line flex compiler to compile the projects for production. However, when compiling from the command line, I am unable to include the Widgets swc into our intermediary swc. Here is an example of the output: /usr/local/flex/bin/compc -o intermediate.swc --compiler.external-library-path lib/assets --source-path=. lib.Element1 lib.Element2 lib.ElementN Loading configuration file /usr/local/flex/frameworks/flex-config.xml Error: unable to load SWC /Actionscript/components/lib/assets/Widgets.swc: symbol 0 not defined I have also tried compiling with --compiler.library-path, and get the same result. I don't know what to make of this 'symbol 0 not defined' error. Has anyone else seen it? Thanks for any help or advice, DM
Re: [flexcoders] compc help
If you're setting configuration file like -load-config papervision.xml it replaces default flex-config.xml, thus you should specify path to the framework libraries. Something like compiler external-library-path path-elementC:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/frameworks/libs/path-element /external-library-path /compiler But it seems to me that in general the best way is to use your configuration file appended to default configuration, e.g. compc -load-config+= papervision.xml. It should solve you problems without additional explicit properties specification. R. On 5/5/07, Alisdair Mills [EMAIL PROTECTED] wrote: Hi, I'm having difficulty getting compc to compile a swc. from the command line I'm doing compc -load-config papervision.xml which uses the following xml... ?xml version=1.0? flex-config xmlns=http://www.adobe.com/2006/flex-config; outputPapervision.swc/output compiler source-path path-element./path-element /source-path /compiler include-classes classorg.papervision3d.Papervision3D/class /include-classes /flex-config but when I run it i get the following error... Papervision/org/papervision3d/Papervision3D.as(1): col: 1 Error: The definition of base class Object was not found. Any ideas as to where I'm going wrong? Thanks in advance for any help. cheers, Al
[flexcoders] compc help
Hi, I'm having difficulty getting compc to compile a swc. from the command line I'm doing compc -load-config papervision.xml which uses the following xml... ?xml version=1.0? flex-config xmlns=http://www.adobe.com/2006/flex-config; outputPapervision.swc/output compiler source-path path-element./path-element /source-path /compiler include-classes classorg.papervision3d.Papervision3D/class /include-classes /flex-config but when I run it i get the following error... Papervision/org/papervision3d/Papervision3D.as(1): col: 1 Error: The definition of base class Object was not found. Any ideas as to where I'm going wrong? Thanks in advance for any help. cheers, Al