Somebody can help me!! make PythonAPI fails
Environment: OS: win11 carla: 0.9.15 CarlaUnreal: 4.26.2 Python: x64 3.7.8 CMake: 4.0.3 Make: GNU Make 3.81
Problem: C:\carla-0.9.15.2>make PythonAPI -[BuildUE4Plugins]: [Batch params]: --build --all HEAD is now at 260273d Correct descriptor -[BuildUE4Plugins]: STREETMAP has been successfully installed in "C:\carla-0.9.15.2\Unreal\CarlaUE4\Plugins" -[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-0.9.15.2\Build" -[Setup]: Creating "C:\carla-0.9.15.2\Build" folder... -[Setup]: Installing zlib... -[install_zlib]: [Batch params]: --build-dir "C:\carla-0.9.15.2\Build" -[install_zlib]: Retrieving zlib. -[install_zlib]: Extracting zlib from "zlib-1.3.1.zip". -[install_zlib]: Removing "zlib-1.3.1.zip" -[install_zlib]: Creating "C:\carla-0.9.15.2\Build\zlib-source\build" CMake Error: The source directory "C:/carla-0.9.15.2/Build/zlib-source"" does not exist. Specify --help for usage, or press the help button on the CMake GUI.
-[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] 错误 1
But in the 'Build' folder, the 'zlib-source' files exist. I don't know how to handle them.
Try this solution: Manually download CMakeLists.txt and zlib-1.2.11.zip (you can find it through web search) Copy CMakeLists.txt into PATH/ Carla/ Util/ InstallersWin and copy zlib-1.2.11.zip into PATH/ Carla/ Build (this folder does not already exist, you can create it manually)
Have you solved this problem? I struggling with this too.
Try this solution: Manually download CMakeLists.txt and zlib-1.2.11.zip (you can find it through web search) Copy CMakeLists.txt into PATH/ Carla/ Util/ InstallersWin and copy zlib-1.2.11.zip into PATH/ Carla/ Build (this folder does not already exist, you can create it manually)
Thanks for the suggestion, but it still doesn't work...
Have you solved this problem? I struggling with this too.
I have searched a lot for solutions on github and discord but still can't find a solution for this problem.
I move my CMake folder from C:\Program Files to C:\ . And it works. Maybe you can try.
@KEVINDOMIC May be try with CMake 3.25 or something. Also did you already added CMake to the environment variables ?
Hello, I am running into similar erros (Win 11, Carla 0.9.15). First of all I started to run into errors, with not being able to download the zlib file. It failed with both the original link and the alternative the script tires. So I went ahead and downloaded zlib manually, renamed it and then copied into the corresponding folder.
However, I still ran into this error
CMake Error: The source directory "C:/carla-0.9.15.2/Build/zlib-source"" does not exist.
I checked the path listed in the error and indeed it exists - at least withouth the asymmetric ".
Then I found this thread and reinstalled cmake to just "C" and not Program Files. This remedied this error and the make PythonAPI went along far further.
However, this then lead to a new error:
Extracting archive: Y:\CARLA_Source\carla\build\boost_1_80_0.zip ERROR: Y:\CARLA_Source\carla\build\boost_1_80_0.zip Y:\CARLA_Source\carla\build\boost_1_80_0.zip Open ERROR: Cannot open the file as [zip] archive
I tried ignoring this error and simply moving on to the next stept with the "make launch" command. But this then returned the same error also.
I went ahead and checked, but the "boost_1_80_0.zip"-file does not exist in the build directory.
Any help would be appreciated!
Hello again,
I did some further digging through this forum and thanks to this post I found out that the boost_1_80_0.zip file can be downloaded here.
After downloading the right file and copying it into my build folder the "make PythonAPI" seems to be running along even further, finding and extrating the boost file.
However, this is still not all. After unziping the file it runs into the following error:
`Everything is Ok
Folders: 6752
Files: 72069
Size: 710168359
Compressed: 198681558
-[install_boost]: Removing "boost_1_80_0.zip"
Access denied
System cannot find the desired path.
-[install_boost]: Generating build...
The Command "bootstrap.bat" maybe written wrong or cannot be found
-[install_boost]: [BOOTSTRAP ERROR] An error ocurred while executing "bootstrap.bat".
-[install_boost]: Exiting with error...`
--> Sorry if some errors might seem of, my System is set to a different language so I had to translate the error messages.
Again, looking into the folders, the file "bootstrap.bat" does exist in the subfolder "boost_1_80_0".
So I ran it manually b just double clicking it. Afterwards, I reran the -make PythonAPI command and it ran even fruther along, reaching the following point:
-[install_boost]: Boost has been successfully installed in "Y:\CARLA_Source\carla\build\boost-1.80.0-install\"
During the "--Looking for" part of the script quite some files were not found. The same goes for the Performing Tests part, where some also failed.
Nevertheless, the script ran for quite a while and told me it installed the lib successfully.
I also encountered the same problem. I replaced the latest version of CMake with CMake 3.25 and successfully solved it.