I am trying to compile a Flex Library project using the 'compc' ant task and
I get the following error:

    [compc] Error: Inconsistant linkage in C:\Program Files\Adobe\Flex
Builder 3\sdks\3.0.0\frameworks\libs\air\airglobal.swc(Camera) - 
'flash.media:Camera' is marked as extern, but 'flash.media:scanHardware' is
not.

I am using Flex sdk 3.0.0.

Does anyone know why I am getting this error>  Any help will be appreciated.
Below is portion of the ANT script I am using:

        <taskdef resource="flexTasks.tasks"
classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
        <target name="compile-flex-lib" depends="clean-flex-lib"
                        description="Builds flexBaseAir.swc">
                <fileset id="flex.lib.files"
                        dir="${flex.dir}/${flex.lib.name}">
                        <include name="**/*.as"/>
                        <include name="**/*.mxml"/>
                </fileset>
                <pathconvert property="classes" pathsep=" " 
refid="flex.lib.files">
                        <compositemapper>
                                <packagemapper handledirsep="true"
from="${flex.dir}/${flex.lib.name}/src/*.as" to="*"/>
                                <packagemapper handledirsep="true"
from="${flex.dir}/${flex.lib.name}/src/*.mxml" to="*"/>
                                <packagemapper handledirsep="true"
from="${flex.dir}/${flex.lib.name}/resources/*.as" to="*"/>
                                <packagemapper handledirsep="true"
from="${flex.dir}/${flex.lib.name}/resources/*.mxml" to="*"/>
                        </compositemapper>                      
                </pathconvert>

                <compc          include-classes="${classes}" directory="false" 
                                
output="${flex.dir}/${flex.lib.name}/bin/${flex.lib.name}.swc" 
                                        locale="${flex.sdk.locale}" 
                                        accessible="true"
                                        debug="${flex.compiler.debug.mode}" 
                                        actionscript-file-encoding="UTF-8"
                                        incremental="false"
                                        dump-config="config.xml">

                        <source-path 
path-element="${flex.dir}/${flex.lib.name}/src"/>

                        <compiler.library-path 
dir="${FLEX_HOME}/frameworks/libs" append="true">
                                 <include name="air" />
                                 </compiler.library-path>
                        <compiler.library-path 
dir="${FLEX_HOME}/frameworks/locale"
append="true">
                                <include name="${flex.sdk.locale}" />
                        </compiler.library-path>

                        <compiler.library-path dir="${flexlib-base.dir}" 
append="true">
                                <include name="bin" />
                        </compiler.library-path>        
                </compc>

        </target>

Thanks,
Sudhir Madyastha
-- 
View this message in context: 
http://www.nabble.com/Inconsistent-Linkage-error-tp20329747p20329747.html
Sent from the Flex Component Development mailing list archive at Nabble.com.

Reply via email to