4 Replies Latest reply on May 14, 2010 4:25 AM by kesasar

    RSL Error 2046 when using runtime-shared-library-path in ant mxmlc

    kesasar

      Hi,

       

      I am building my project using the mxmlc ant target with 3.4 SDK

       

      If I do <flex:mxmlc  ... static-link-runtime-shared-libraries="false" static-rsls="false"  ...>

       

      It is working fine. My SWF is a little bit lighter but not enough !

       

      If in my mxmlc I add the following nodes (all of them or only one of them)

       

      <runtime-shared-library-path

           path-element="${FLEX_HOME}/frameworks/libs/framework.swc">

           <url rsl-url="${contextroot}/client/framework_3.4.0.6955.swz" />

           <url rsl-url="${contextroot}/client/framework_3.4.0.6955.swf" />

      </runtime-shared-library-path>

       

      <runtime-shared-library-path

           path-element="${FLEX_HOME}/frameworks/libs/rpc.swc">

           <url rsl-url="${contextroot}/client/rpc_3.4.0.6955.swz" />

           <url rsl-url="${contextroot}/client/rpc_3.4.0.6955.swf" />

      </runtime-shared-library-path>

       

      <runtime-shared-library-path

           path-element="${FLEX_HOME}/frameworks/libs/datavisualization.swc">

           <url rsl-url="${contextroot}/client/datavisualization_3.4.0.9271.swz" />

           <url rsl-url="${contextroot}/client/datavisualization_3.4.0.9271.swf" />

      </runtime-shared-library-path>

       

      I have an : Error #2046: the loaded file did not have a valid signature

       

      I thought : why not adding verify-digests=false to my mxmlx target ???

      => Unfortunately the ant task doesn't support this option

       

      I have read also somewhere that this may be caused by library order.

       

      It is true that if in the flex plug-in for eclipse

       

      I Put the framwork.swc first
      Configure rpc.swc and datavisualization.swc
      the resulting swc works

       

      => This makes me think that my swz are properly signed

      => I just can't find a way to do the swz ordering in the ant target

       

      So is my only solution to use the commed-line mxmlc within ant ?

       

      What can be possibly wrong ?