[CMake] Problem with Visual Studio 2010, Windows 7 64bit

Andrew Maclean andrew.amaclean at gmail.com
Tue Nov 27 22:07:26 EST 2012


I have no problems with Visual Studio 2010 or VS 2010 Express. The
following link may help:
http://www.vtk.org/Wiki/VTK/GitMSBuild
There is no need to set the VS 64-bit command prompt and run cmake-gui from
inside it.
I generally run cmake-gui by just clicking on the icon. Try running
cmake-gui directly and not from the command prompt.

I am able to build both VTK and the Wiki Examples Ok.
I do get problems when running the batch file in the above link but they
are related to the MS development environment not VTK. Certainly it seems
that building using the IDE seems to go faster.

Regards
   Andrew

---------- Forwarded message ----------

> From: David Cole <david.cole at kitware.com>
> To: David Doria <daviddoria at gmail.com>
> Cc: cmake Mailing List <cmake at cmake.org>
> Date: Tue, 27 Nov 2012 16:37:31 -0500
> Subject: Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit
> Are you using an Express edition of VS without an SDK installed?
>
> If so, install an SDK and try again from a clean build directory.
>
> If not, we'll need more information. VS 2010 on Windows 7 works great
> for me, even for a VTK build tree...
>
> On Tue, Nov 27, 2012 at 3:48 PM, David Doria <daviddoria at gmail.com> wrote:
> > I am trying to build VTK for the first time on a 64bit Windows 7
> > system. I have Visual Studio 2010 installed. I ran the 64bit Visual
> > Studio Command Prompt and ran 'cmake-gui' from it. I pointed it to the
> > VTK source directory and gave it a build directory. When I configure,
> > I get:
> >
> > -------------------------------
> > Error in configuration process, project files may be invalid
> >
> > The C compiler identification is MSVC 16.0.30319.1
> > The CXX compiler identification is MSVC 16.0.30319.1
> > Check for working C compiler using: Visual Studio 10 Win64
> > Check for working C compiler using: Visual Studio 10 Win64 -- broken
> > CMake Error at
> C:/bin/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
> > (message):
> > The C compiler "D:/Program Files (x86)/Microsoft Visual Studio
> > 10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test
> program.
> > It fails with the following output:
> > Change Dir: c:/build/VTK/CMakeFiles/CMakeTmp
> > Run Build Command:d:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
> > CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2926210968
> > Microsoft (R) Visual Studio Version 10.0.30319.1.
> > Copyright (C) Microsoft Corp. All rights reserved.
> > 1>------ Build started: Project: cmTryCompileExec2926210968,
> Configuration:
> > Debug x64 ------
> > 1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for
> x64
> > 1> Copyright (C) Microsoft Corporation. All rights reserved.
> > 1>
> > 1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D
> > "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> > /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2926210968.dir\Debug\\"
> >
> /Fd"C:/build/VTK/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2926210968.pdb"
> > /Gd /TC /errorReport:prompt testCCompiler.c /Zm1000
> > 1>
> > 1> testCCompiler.c
> > 1>LINK : fatal error LNK1123: failure during conversion to COFF: file
> > invalid or corrupt
> > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> > ==========
> > CMake will not be able to correctly generate this project.
> > Call Stack (most recent call first):
> > CMakeLists.txt:3 (project)
> > Configuring incomplete, errors occurred!
> >
> > -----------------------
> >
> > I am using cmake-2.8.10.1. Any suggestions?
> >
> > David
> > --
> >
> > 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
>
>
>
>
-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121128/6c655029/attachment-0001.htm>


More information about the CMake mailing list