carla-simulator / carla

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

Issue in compiling Python API client #7554

Closed joe-source113898 closed 2 weeks ago

joe-source113898 commented 2 weeks ago

CARLA version: 0.9.14 Platform/OS: Windows 10

Problem you have experienced: When I'm going to compile the Python API client, I get this issue:

Capture

joe-source113898 commented 2 weeks ago

If you encounter this issue, it can be resolved by manually downloading zlib and setting it up within your build environment. Here are the steps to do so:

  1. Download zlib: Manually download the zlib library from a reliable source (e.g., the official zlib website).

  2. Add to Build Directory: Place the downloaded zlib folder into the following directory: ...\carla_simulator_source\Build.

  3. Create Build Folder: Inside the zlib folder, create a new subfolder named build.

  4. Compile zlib: Navigate to the build folder you just created and compile zlib. This typically involves running configuration and build commands specific to zlib.

  5. Build the Python API: Once zlib is compiled and set up, return to the main directory of your project and execute the command make PythonAPI to build the Python API.

By following these steps, you should be able to successfully resolve the issue and continue with your setup.