[CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell

Anders Moe anders.moe at geocap.no
Tue Sep 9 08:50:46 EDT 2008


 
This problem has been resolved with the kind assistance of Bill Hoffman of Kitware.
 
THe problem of compiling/linking a mixed version of 64/32 bit binaries was caused by my VS containing some 64 bit paths in the 32 bit configuration mode. These paths can be examined using Tools-> Options -> Proj & Sols ->  VC++ dirs
 
The faulty  64 paths were :
 
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\BIN\amd64
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727
 
While I'm not an authority on this I can only assume that the correct paths should be :
 
 
 
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin\x86_amd64
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
 
 
I have no idea how these paths were registered in 32 bit mode in VS - these are not paths that I would deal with directly, or even know about in the first place. I'm providing explanation in case others in the future encounter a similar problem. 
 
Cheers, 
 
Anders.
 

From: anders.moe at geocap.noTo: cmake at cmake.orgDate: Wed, 3 Sep 2008 08:10:32 +0000Subject: [CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell


 Hi all I'm trying to compile a 32 bit version of VTK using the 32 bit MSVC 2005 command shell. Note that I'm running XP64.  This works fine for Qt, but cmake gives an error during the "simpel test program compile" where it appears that the test solution *.sln is setup for x64, since the error says  "module machine type x64 conflicts with machine type 32"  Seems as if cmake is  overly zealous  in detecting the x64 setup even when it shouldn't. Does anyone know how to force it into 32 bit mode ? Thanks,  I saw someone else having a similar problem here, but the other way around (32 bit in 64 mode) Anders. 
________________________________________________________Anders Moe
Software Integration ManagerGeocapw: +47 22 95 56 66
anders.moe at geocap.no________________________________________________________
 

Windows Live Messenger på mobilen. Hold kontakten hvor som helst når som helst. 
_________________________________________________________________
Hold kontakten med Windows Live Messenger.
http://clk.atdmt.com/GBL/go/msnnkdre0010000003gbl/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080909/4f8a90f3/attachment.htm>


More information about the CMake mailing list