Issue1037

Title Issues with CMake while Compiling on Windows
Priority bug Status resolved
Superseder Nosy List Peter, florian, malte
Assigned To Keywords windows
Optional summary

Created on 2021-10-27.05:33:19 by Peter, last changed by malte.

Messages
msg10455 (view) Author: Peter Date: 2021-10-28.21:49:22
It helped. Thanks a lot :)
msg10454 (view) Author: florian Date: 2021-10-27.10:11:21
I added you to the "nosy list" so you get updates on this issue.
msg10453 (view) Author: florian Date: 2021-10-27.10:09:03
Hi Peter,

did you run the build in a developer shell of Visual Studio? For Visual Studio 2017 you should be able to get a developer shell by running

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat x64

Depending on your Visual Studio version and installation path, this call might change.
msg10452 (view) Author: florian Date: 2021-10-27.10:06:30
Moved message from summary to change note.

Original message from Peter:
---------

Hi,

I am trying to install the planner following the guidance on "Obtaining and 
running Fast Downward" https://www.fast-
downward.org/ObtainingAndRunningFastDownward

When I try to compile the planner on Windows10 I get the following error 
message: 
I have no idea how to move one. Could some please help?

Thanks,
Peter


Building configuration release.
Executing command "cmake -G NMake Makefiles -DCMAKE_BUILD_TYPE=Release 
..\..\src" in directory "C:/Users/Peter/downward\builds\release".
CMake Deprecation Warning at CMakeLists.txt:31 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Error at CMakeLists.txt:44 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified


Traceback (most recent call last):
  File "C:/Users/Peter/downward/build.py", line 149, in <module>
    main()
  File "C:/Users/Peter/downward/build.py", line 145, in main
    build(config_name, CONFIGS[config_name], make_parameters)
  File "C:/Users/Peter/downward/build.py", line 120, in build
    try_run([CMAKE, "-G", CMAKE_GENERATOR] + cmake_parameters + [rel_src_path],
  File "C:/Users/Peter/downward/build.py", line 98, in try_run
    subprocess.check_call(cmd, cwd=cwd)
  File "C:\Users\Peter\AppData\Local\Programs\Python\Python38-
32\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-G', 'NMake Makefiles', '-
DCMAKE_BUILD_TYPE=Release', '..\\..\\src']' returned non-zero exit status 1.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Peter/downward/builds/release/CMakeFiles/CMakeOutput.log".
History
Date User Action Args
2022-05-05 19:00:18maltesetnosy: + malte
2021-10-29 10:18:39floriansetstatus: in-progress -> resolved
2021-10-28 21:49:22Petersetmessages: + msg10455
summary: It helped. Thanks a lot :) ->
2021-10-28 21:49:12Petersetsummary: It helped. Thanks a lot :)
2021-10-27 10:11:21floriansetnosy: + Peter
messages: + msg10454
2021-10-27 10:09:04floriansetmessages: + msg10453
2021-10-27 10:06:30floriansetnosy: + florian
messages: + msg10452
summary: Hi, I am trying to install the planner following the guidance on "Obtaining and running Fast Downward" https://www.fast- downward.org/ObtainingAndRunningFastDownward When I try to compile the planner on Windows10 I get the following error message: I have no idea how to move one. Could some please help? Thanks, Peter Building configuration release. Executing command "cmake -G NMake Makefiles -DCMAKE_BUILD_TYPE=Release ..\..\src" in directory "C:/Users/Peter/downward\builds\release". CMake Deprecation Warning at CMakeLists.txt:31 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. CMake Error at CMakeLists.txt:44 (project): Running 'nmake' '-?' failed with: The system cannot find the file specified Traceback (most recent call last): File "C:/Users/Peter/downward/build.py", line 149, in <module> main() File "C:/Users/Peter/downward/build.py", line 145, in main build(config_name, CONFIGS[config_name], make_parameters) File "C:/Users/Peter/downward/build.py", line 120, in build try_run([CMAKE, "-G", CMAKE_GENERATOR] + cmake_parameters + [rel_src_path], File "C:/Users/Peter/downward/build.py", line 98, in try_run subprocess.check_call(cmd, cwd=cwd) File "C:\Users\Peter\AppData\Local\Programs\Python\Python38- 32\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '-G', 'NMake Makefiles', '- DCMAKE_BUILD_TYPE=Release', '..\\..\\src']' returned non-zero exit status 1. -- Configuring incomplete, errors occurred! See also "C:/Users/Peter/downward/builds/release/CMakeFiles/CMakeOutput.log". -> (no value)
2021-10-27 05:33:19Petercreate