I am working to install Carla from source and already installed the unreal engine. When i try to build the CARLA using the make Python API command, i am getting an error as
C compiler "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" is not able to compile a simple test program
Herewith attaching the full lines from the x64 Native Tools command prompt
d:\Test\resimulation2>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Install directory: "d:\Test\resimulation2\Build\"
-[Setup]: Creating "d:\Test\resimulation2\Build\" folder...
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "d:\Test\resimulation2\Build\"
-[install_zlib]: Retrieving zlib.
-[install_zlib]: Extracting zlib from "zlib-1.2.13.zip".
-[install_zlib]: Removing "zlib-1.2.13.zip"
-[install_zlib]: Creating "d:\Test\resimulation2\Build\zlib-source\build"
CMake Deprecation Warning at CMakeLists.txt:1 (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.
-- The C compiler identification is MSVC 19.29.30146.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/Test/resimulation2/Build/zlib-source/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake -f Makefile /nologo cmTC_2e0d7\fast && C:\Program Files\GnuWin32\bin\make.exe -f CMakeFiles\cmTC_2e0d7.dir\build.make /nologo -L CMakeFiles\cmTC_2e0d7.dir\build
Der Befehl "C:\Program" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
NMAKE : fatal error U1077: 'C:\Program' : return code '0x1'
Stop.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (project)
-- Configuring incomplete, errors occurred!
See also "D:/Test/resimulation2/Build/zlib-source/build/CMakeFiles/CMakeOutput.log".
See also "D:/Test/resimulation2/Build/zlib-source/build/CMakeFiles/CMakeError.log".
-[install_zlib]: [CMAKE ERROR] An error ocurred while executing cmake command.
-[install_zlib]: [CMAKE ERROR] Possible causes:
-[install_zlib]: - Make sure "CMake" is installed.
-[install_zlib]: - Make sure it is available on your Windows "path".
-[install_zlib]: - Make sure you have cmake 3.12.4 or higher installed.
-[install_zlib]: Exiting with error...
-[Setup]:
Ok, and error ocurred, don't panic!
We have different platforms where you can find some help :)
- Make sure you have read the documentation:
http://carla.readthedocs.io/en/latest/how_to_build_on_windows/
- If the problem persists, you can ask on our Github's "Building on Windows" issue:
https://github.com/carla-simulator/carla/issues/21
- Or just use our Discord channel!
We'll be glad to help you there :)
https://discord.gg/42KJdRj
make: *** [setup] Fehler 1
What may be the issue?
I got the answer and sharing it here. Thought someone needs it.
Check for any spaces in the installation folder of the gnuwin make.
For eg: The gnuwin make was first installed in the directory C:\Program Files\GnuWin32\bin and since there is a space between Program and files, the error came.
As a work around, install the gnuwin make in a directory without spaces.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.