carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.11k stars 3.58k forks source link

carla build ---CARLA 0.9.15 make pythonAPI error #7016

Closed chirudeep001 closed 8 months ago

chirudeep001 commented 9 months ago

@bernatx C:\CARLA\carla>exit /b 0 -[Setup]: [Batch params]: --boost-toolset msvc-14.2 --generator "" --all -[Setup]: Asynchronous jobs: 32 -[Setup]: Boost toolset: msvc-14.2 -[Setup]: Generator: "Visual Studio 16 2019" -[Setup]: Install directory: "C:\CARLA\carla\Build\" -[Setup]: Installing zlib... -[install_zlib]: [Batch params]: --build-dir "C:\CARLA\carla\Build\" -[install_zlib]: Not downloading zlib because already exists the folder "C:\CARLA\carla\Build\zlib-source\". CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

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

-- The C compiler identification is MSVC 19.29.30153.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.28/Modules/CMakeTestCCompiler.cmake:67 (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: 'C:/CARLA/carla/Build/zlib-source/build/CMakeFiles/CMakeScratch/TryCompile-c90zhw'

Run Build Command(s): "C:/Program Files/CMake/bin/cmake.exe" -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_2991c\fast
    C:\Program Files (x86)\GnuWin32\bin  -f CMakeFiles\cmTC_2991c.dir\build.make /nologo -L                  CMakeFiles\cmTC_2991c.dir\build
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
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!

-[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 :)

i am unable to resolve this issue. I have tried all the issues regarding this none of them worked out

UTCyril commented 4 months ago

Hi chirudeep001, How did you solve it please?