[CMake] problem deploying 64 bit from VS 2005

clinton at elemtech.com clinton at elemtech.com
Fri Mar 14 16:20:12 EDT 2008


I looked in InstallRequiredSystemLibraries.cmake, and it doesn't handle 64 
bit.  In other words,  "x86" is hardcoded when I want "amd64" instead.

I'm trying some changes....

Clint

On Friday 14 March 2008 2:17:48 pm David Cole wrote:
> Sounds like INCLUDE(InstallRequiredSystemLibraries) is not giving you the
> 64-bit dlls...
> Can you run dumpbin on one of the installed dlls to see if it's x86 or
> amd64??
>
> Just open a Visual Studio command prompt and type "dumpbin blah.dll" and
> send along the results...
>
> On 3/14/08, clinton at elemtech.com <clinton at elemtech.com> wrote:
> > Hi,
> >
> > I've got this problem deploying 64 bit binaries from Visual Studio
> > 2005....
> >
> > I've got this app ====
> >
> > #include <stdio.h>
> > int main()
> > {
> >   printf("hello world\n");
> > }
> > ==========
> >
> > And this CMakeLists.txt file  ==============
> >
> > ADD_EXECUTABLE(testdeploy main.cpp)
> > INCLUDE(InstallRequiredSystemLibraries)
> > INSTALL(TARGETS testdeploy DESTINATION bin)
> > SET(CPACK_PACKAGE_EXECUTABLES "testdeploy" "TestDeploy")
> > INCLUDE(CPack)
> > =============
> >
> > I built it with Visual Studio 2005 (64 bit release binary on 64 bit
> > vista, if
> > that matters) and built the PACKAGE project.
> > I took my .exe installer (nsis) and ran it on another clean vista
> > install, and
> > it gives me the error
> >
> >         C:\Program Files\Project 0.1.1\bin\testdeploy.exe
> >         The application has failed to start because its side-by-side
> > configuration is
> >         incorrect.  Please see the application event log for more detail.
> >
> > The event log contains =======
> > Activation context generation failed for "C:\Program Files\Project
> > 0.1.1\bin\testdeploy.exe".Error in manifest or policy file "C:\Program
> > Files\Project 0.1.1\bin\Microsoft.VC80.CRT.MANIFEST" on line 4. Component
> > identity found in manifest does not match the identity of the component
> > requested. Reference is
> > Microsoft.VC80.CRT
> > ,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="wi
> >n32",version=" 8.0.50727.762".
> > Definition is
> > Microsoft.VC80.CRT
> > ,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win3
> >2",version=" 8.0.50727.762".
> > Please use sxstrace.exe for detailed diagnosis.
> > ============
> >
> > That's not the same error I get when trying to deploy my real
> > application, but
> > in this case, the error appears to be a 32 vs 64 bit issue.
> >
> > When deploying my real application, I tried using sxstrace as the event
> > log
> > suggested, but it gives me a bunch of stuff that I can't make sense
> > of.  So I
> > thought I'd try starting from the simplest app, and even that failed.
> >
> > And I'm using CVS CMake as of yesterday.
> >
> > Any ideas?
> >
> > Clint
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list