[vtkusers] Fwd: [CMake] CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10

Benoît Thiébault thiebault at artenum.com
Thu Dec 13 03:23:16 EST 2012


> Are you sure that your Vs2010 installation provides a x64 toolchain ?

Nope, I'm not sure :-)
And I don't know how to check that
I'm more a Linux/Mac guy

> Are you able to compile in x86 mode?

What do you mean?
When I click on the "configure" button for the first time, it asks me what generator I want. I have several choices for VS:
- Visual Studio 10
- Visual Studio 10 Win64
- Visual Studio 10 IA64

It seems I have a 32 bits version, so I selected "Visual Studio 10" and "Use default native compilers". This should compile in x86 mode, right?

I did not have the time to try configuring the compilers manually as John suggested.

I will try to install Visual Studio 10 (not Express) and see if it works better

Kind regards,

Ben

Le 13 déc. 2012 à 00:01, Joachim Pouderoux a écrit :

> Hi Benoit,
> 
> Are you sure that your Vs2010 installation provides a x64 toolchain ? It may not have been installed by default and for instance, the Express edition does not provide it.
> Are you able to compile in x86 mode?
> 
> Regards,
> 
> Joachim
> 
> Le 12 déc. 2012 à 10:31, "Benoît Thiébault" <thiebault at artenum.com> a écrit :
> 
>> Hi everyone,
>> 
>> I sent this question on CMake mailing list a week ago and never had any answer.
>> 
>> As it deals with compiling VTK, I'm thinking maybe some of you have a solution.
>> 
>> Kind regards,
>> 
>> Benoît
>> 
>> Début du message réexpédié :
>> 
>>> De : Benoît Thiébault <thiebault at artenum.com>
>>> Date : 5 décembre 2012 14:21:23 HNEC
>>> À : cmake at cmake.org
>>> Objet : [CMake] CMAKE_MAKE_PROGRAM is not set - Win7 and Visual Studio 10
>>> 
>>> Hi everyone,
>>> 
>>> I am trying to compile VTK on Windows 7 64bits with Visual Studio 10.
>>> 
>>> But when I click on "configure" in CMake, it shows the following error message:
>>> 
>>> CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 10 Win64".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
>>> CMake Error: Could not find cmake module file:C:/Users/artenum/Downloads/vtk-5.8.0/build/CMakeFiles/2.8.10.2/CMakeCCompiler.cmake
>>> CMake Error: Could not find cmake module file:C:/Users/artenum/Downloads/vtk-5.8.0/build/CMakeFiles/2.8.10.2/CMakeCXXCompiler.cmake
>>> Configuring incomplete, errors occurred!
>>> 
>>> I looked at the CMakeVS10FindMake.cmake file located in C:\Program Files (x86)\CMake 2.8\share\cmake-2.8\Modules and found the following command:
>>> 
>>> find_program(CMAKE_MAKE_PROGRAM
>>>  NAMES devenv
>>>  HINTS
>>>  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;EnvironmentDirectory]
>>>  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup;Dbghelp_path]
>>>  "$ENV{ProgramFiles}/Microsoft Visual Studio 10.0/Common7/IDE"
>>>  "$ENV{ProgramFiles}/Microsoft Visual Studio10.0/Common7/IDE"
>>>  "$ENV{ProgramFiles}/Microsoft Visual Studio 10/Common7/IDE"
>>>  "$ENV{ProgramFiles}/Microsoft Visual Studio10/Common7/IDE"
>>>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE"
>>>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE"
>>>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE"
>>>  "$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10/Common7/IDE"
>>>  "/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/"
>>>  "/Program Files/Microsoft Visual Studio 10/Common7/IDE/"
>>>  )
>>> 
>>> Here a copy/paste of the path of my Visual Studio 10 installation (and in particular the IDE folder):
>>> C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
>>> 
>>> I should add that my Windows 7 installation is in French. This means that the "Program Files" folder is named "Programmes" (in French) but "Progam Files (x86)" is in english.
>>> 
>>> I have added the two following lines in the command to be sure, but it still does not work:
>>> "/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE/"
>>> "/Program Files (x86)/Microsoft Visual Studio 10/Common7/IDE/"
>>> 
>>> What should I do?
>>> 
>>> Kind regards,
>>> 
>>> Ben 
>> 
>> 
>> _______________________________________________
>> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121213/644c30c7/attachment.htm>


More information about the vtkusers mailing list