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

Bill Lorensen bill.lorensen at gmail.com
Sat Dec 15 17:35:14 EST 2012


Did you install the compiler in the default location?

CMake should work just fine with your configuration. It is a common one.


On Sat, Dec 15, 2012 at 1:57 AM, Benoît Thiébault <thiebault at artenum.com> wrote:
> Hi list,
>
> I have installed Visual Studio 10 (not the express version, the full one),
> with x64 support. However, when selecting Visual Studio 10 or Visual Studio
> 10 Win64 and choosing the default native compilers, I have the following
> errors.
>
> The C compiler identification is unknown
> The CXX compiler identification is unknown
> Performing Test Support for 64 bit file systems
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Performing Test Support for 64 bit file systems - Failed
> Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON - Failed
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for sys/types.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for sys/types.h - not found
> Looking for stdint.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for stdint.h - not found
> Looking for stddef.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for stddef.h - not found
> Check size of int
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of int - failed
> Check size of long
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of long - failed
> Check size of void*
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of void* - failed
> Check size of char
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of char - failed
> Check size of short
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of short - failed
> Check size of float
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of float - failed
> Check size of double
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of double - failed
> Looking for include file limits.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for include file limits.h - not found
> Looking for include file unistd.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for include file unistd.h - not found
> Looking for include file pthread.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for include file pthread.h - not found
> Looking for include files sys/types.h, sys/prctl.h
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Looking for include files sys/types.h, sys/prctl.h - not found
> Check if the system is big endian
> Searching 16 bit integer
> Check size of unsigned short
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of unsigned short - failed
> Check size of unsigned int
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of unsigned int - failed
> Check size of unsigned long
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
> (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:3 (PROJECT)
>
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
> Check size of unsigned long - failed
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
>   no suitable type found
> Call Stack (most recent call first):
>   CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)
>   CMakeLists.txt:496 (INCLUDE)
>
>
> Configuring incomplete, errors occurred!
>
>
> Le 13 déc. 2012 à 09:23, Benoît Thiébault a écrit :
>
> 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
>
>
>
> _______________________________________________
> 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
>
>
> --
> Dr Benoît Thiébault
> Project Manager
>
>   Artenum Toulouse - Science & Groupware
>   http://www.artenum.com
>
>       Bâtiment Calfocenter
>       10, rue Marguerite-Long
>       31320 Castanet-Tolosan
>       France
>       Phone: +33 (0)5 82 95 19 00
>
>
>
> _______________________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list