[CMake] cpack install problem

David Cole david.cole at kitware.com
Thu Sep 3 15:36:39 EDT 2009


Likely comes from a build tree produced with an original Visual Studio, then
an upgrade to a SP1 (or 2 or 3) of the same Visual Studio, then an
incremental build of the tree...
Produces some obj files that came from the original, some that came with SP1
and the blend causes dependencies on both versions of the runtime.

If that's the cause, the solution is to do a clean build (of *everything*
that you link).

It could also be caused by linking in 3rd party binaries that depend on a
different version of the runtime than your built binaries. If that's the
cause, the solution is again a full rebuild using the same version as your
3rd party binaries.

If that's not possible, for whatever reason, then I'm not sure what the
solution is.... :-(


On Thu, Sep 3, 2009 at 3:21 PM, Dean Inglis <dean.inglis at camris.ca> wrote:

> Hi Bill,
>
> within the exe there appear to be two versions:
>
>  <dependency>
>    <dependentAssembly>
>      <assemblyIdentity type="win32" name="Microsoft.VC80.CRT"
> version="8.0.50727.4053" processorArchitecture="x86"
> publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
>    </dependentAssembly>
>  </dependency>
>  <dependency>
>    <dependentAssembly>
>      <assemblyIdentity type="win32" name="Microsoft.VC80.CRT"
> version="8.0.50727.762" processorArchitecture="x86"
> publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
>    </dependentAssembly>
>  </dependency>
> </assembly>
>
> Not sure what to do to correct this.  Why would the linker/compiler
> embed two different assembly identities?
>
> Dean
>
> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: September-03-09 2:38 PM
> To: dean.inglis at camris.ca
> Cc: cmake at cmake.org
> Subject: Re: [CMake] cpack install problem
>
> Dean Inglis wrote:
> > Hi,
> > I originally posted this thread to kwwidgets, but have
> > not had much success and perhaps this is a cpack/cmake
> > issue Im having.
> >
> >
> > I¹m building stand alone applications using VTK, ITK, GDCM, KWWidgets and
> I
> > I'm recently having problems getting my apps to run on windows (XP, Vista
> 32
> > bit) platforms where the installer is generated by cpack (NSIS).  The
> > apps/toolkits tcl/tk are all statically built and linked in Release mode
> > using MS Visual Studio Express 2005.  I am compiling using the command
> line
> > tools (nmake). I keep getting:
> >
> >  The application has failed to start because its side-by-side
> >  configuration is incorrect.  Please see the application event log for
> more
> >  detail.
> >
> >  Installing vcredist_x86.exe does not help as was
> >  suggested on some MS forums.  As an example, the installer installs
> >  C:\Program Files\MyApp\bin\myKWWidgetsApp.exe
> >  C:\Program Files\MyApp\bin\Microsoft.VC80.CRT.manifest
> >  C:\Program Files\MyApp\bin\ msvcm80.dll
> >  C:\Program Files\MyApp\bin\ msvcp80.dll
> >  C:\Program Files\MyApp\bin\ msvcr80.dll
> >
> > If I run the windows Event Viewer and look at the error:
> >
> > "Activation context generation failed for
> > "C:Users\Student\Documents\MyApp\bin\myKWWidgetsApp.exe".  Error in
> manifest
> > or policy file "" on line.  A component version required by the
> application
> > conflicts with another component version already active. Conflicting
> > components are: Component 1: C:\Windows\WinSxS\manifests\x86
> > microsoft.vc80.crt 1fc8b3b9a1e18e3b
> > 8.0.50727.3053_none_d08d7bba442a9b36.manifest. Component 2: C:\Program
> > Files\ MyApp\bin\Microsoft.VC80.CRT.MANIFEST.
> >
> >
> > Any ideas on how to fix or sort this out would be great, thanks
> >
>
> Pull up myKWWidgetsApp.exe in text editor and look for the embeded
> manifest xml.  Just search for xml.  See if it has two version of the
> run time libraries it wants.  If so, you are linking in something that
> uses two different version of the run time.
>
> -Bill
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090903/61e47406/attachment-0001.htm>


More information about the CMake mailing list