Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make PythonAPI error #4859

Open
atharva25061997 opened this issue Nov 9, 2021 · 31 comments
Open

make PythonAPI error #4859

atharva25061997 opened this issue Nov 9, 2021 · 31 comments
Assignees
Labels
build system Changes related to the build system

Comments

@atharva25061997
Copy link

C:\Carla\carla>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Install directory: "C:\Carla\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "C:\Carla\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "C:\Carla\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "C:\Carla\carla\Build" --zlib-install-dir "C:\Carla\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "C:\Carla\carla\Build\libpng-1.2.37-install" if you want to force a rebuild.
-[install_libpng]: Exiting...
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "C:\Carla\carla\Build"
-[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
-[install_rpclib]: Generating build...
CMake Error: The source directory "C:/Carla/carla/Build/rpclib-src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

-[install_rpclib]: [CMAKE ERROR] An error ocurred while executing the cmake.
-[install_rpclib]: [CMAKE ERROR] Possible causes:
-[install_rpclib]:                - Make sure "CMake" is installed.
-[install_rpclib]:                - Make sure it is available on your Windows "path".
-[install_rpclib]:                - CMake 3.9.0 or higher is required.
-[install_rpclib]: Exiting with error...

-[Setup]:
Ok, and error ocurred, don't panic!
We have different platforms where you can find some help :)

Can anybody help me with this problem?

@nick-marnik
Copy link

What version of Carla? Per the instructions, cmake needs to be installed manually: https://cmake.org/download/

@atharva25061997
Copy link
Author

I have cmake installed on my system. The version too is the required one. Yet this error persists.

@nick-marnik
Copy link

A command like where cmake will only work in a x64 Native Tools Command Prompt for VS 2019 window. The VS version depends on the Carla release:
0.9.11 or older: VS 2017
0.9.12 or newer: VS 2019

image

@atharva25061997
Copy link
Author

I have already tried this. I even tried both versions but it is not working.

@nick-marnik
Copy link

Can you share some screenshots and output of what you have tried so far? It sounds silly, but a reboot may be helpful because Windows can be finicky about how environment variables are refreshed inside of command prompts.

@atharva25061997
Copy link
Author

Can you share some screenshots and output of what you have tried so far? It sounds silly, but a reboot may be helpful because Windows can be finicky about how environment variables are refreshed inside of command prompts.

I have tried everything that has been suggested in the documentation. Even rebooting didn't help. When i will try again in coming days and the problem persists then I will share the screenshots.

@MiaoMiaoMeng
Copy link

try to install those lib manually
which you can find in /carla/Util/InstallersWin/
and the url and folder‘s name is in those .bat file
@atharva25061997

@MattRowe18 MattRowe18 added the build system Changes related to the build system label Nov 25, 2021
@Ku-Buqi
Copy link

Ku-Buqi commented Jan 7, 2022

F:\carla>make PythonAPI
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --all
-[Setup]: Asynchronous jobs: 12
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Install directory: "F:\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "F:\carla\Build"
-[install_zlib]: Extracting zlib from "zlib-1.2.11.zip".
-[install_zlib]: Removing "zlib-1.2.11.zip"
系统找不到指定的文件。
-[install_zlib]: Creating "F:\carla\Build\zlib-source\build"
CMake Error: The source directory "F:/carla/Build/zlib-source" does not appear to contain CMakeLists.txt.
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 :)

I had a similar problem.Can anyone help me?

@JEFFWU017
Copy link

I had a similar problem.Can anyone help me?

@ritabt
Copy link

ritabt commented Apr 4, 2022

The problem is that zlib version 1.2.11 doesn't have a website anymore so when running make the error means that it can't download the zipped zlib.
I was able to fix it by going to carla/Util/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11"
Then delete the build folder in carla/ and run "make PythonAPi" again

@JEFFWU017
Copy link

JEFFWU017 commented Apr 4, 2022 via email

@kaln27
Copy link

kaln27 commented Apr 19, 2022

It work,. Thank you very much

@luckysouthchou
Copy link

lif

The problem is that zlib version 1.2.11 doesn't have a website anymore so when running make the error means that it can't download the zipped zlib. I was able to fix it by going to carla/Util/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11" Then delete the build folder in carla/ and run "make PythonAPi" again

life saver, then everything should be ok!!!!

@longshujing
Copy link

Hanging ladder

@JohnxLiang
Copy link

The problem is that zlib version 1.2.11 doesn't have a website anymore so when running make the error means that it can't download the zipped zlib. I was able to fix it by going to carla/Util/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11" Then delete the build folder in carla/ and run "make PythonAPi" again

Thanks. It can work.

@Nozoomhs
Copy link

The problem is that zlib version 1.2.11 doesn't have a website anymore so when running make the error means that it can't download the zipped zlib. I was able to fix it by going to carla/Util/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11" Then delete the build folder in carla/ and run "make PythonAPi" again

I have the same issue yet this fix doesn't seem to work for me. any other ideas?

@Karim9712
Copy link

carla/Util/InstallersWin/install_zlib.bat

it doesn't work for me to

@l1th1um
Copy link

l1th1um commented Aug 21, 2022

I counter this issue, and solved it with delete the Build directory

@dangli1989
Copy link

The problem is that zlib version 1.2.11 doesn't have a website anymore so when running make the error means that it can't download the zipped zlib. I was able to fix it by going to carla/Util/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11" Then delete the build folder in carla/ and run "make PythonAPi" again

It works for me

@vemi-lab
Copy link

vemi-lab commented Nov 3, 2022

The current zlib version is 1.2.13 so, if you encounter this problem make sure to change line 51 in carla/Util/InstallersWin/install_zlib.bat to "set ZLIB_VERSION=1.2.13", then delete the Build folder in the Carla Root folder and try again.

@tonmoay
Copy link

tonmoay commented Jan 16, 2023

Try installing Git and add it to the PATH. Hope this helps!

@tyotili
Copy link

tyotili commented Mar 2, 2023

Adding this to PATH and then deleting the build folder and restarting everything worked for me:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\

@liujiawei725
Copy link

Try to download the zlib1213.zip file from https://www.zlib.net/, and rename the zip file as zlib-1.2.13.zip. Place the renamed the zip file in the carla/build directory and execute make PythonAPI

@Canio95
Copy link

Canio95 commented Oct 19, 2023

If you face this problem still, I fixed it by changing line 51 in the carla/Util/InstallersWin/install_zlib.bat to set ZLIB_VERSION=1.3

Copy link

stale bot commented Dec 21, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue has not had recent activity label Dec 21, 2023
@CStubenvoll
Copy link

zlib is now on version 1.3.1 and changing line 51 in the aforementioned fix to that solved it for me.

@omitheaussie
Copy link

zlib is now on version 1.3.1 and changing line 51 in the aforementioned fix to that solved it for me.

This worked for me in may 2024 for 0.9.15-dev build

@stale stale bot removed the stale Issue has not had recent activity label May 24, 2024
@AlwaysLELE
Copy link

AlwaysLELE commented Jun 30, 2024

The method I used to change the version number and delete the build folder failed again

@Emilyhelin
Copy link

Can you share some screenshots and output of what you have tried so far? It sounds silly, but a reboot may be helpful because Windows can be finicky about how environment variables are refreshed inside of command prompts.

I have tried everything that has been suggested in the documentation. Even rebooting didn't help. When i will try again in coming days and the problem persists then I will share the screenshots.

I solved it by substituting make PythonAPI for make PythonAPI GENERATOR="Visual Studio 17 2022".

@lzhaity999
Copy link

@Emilyhelin ,Are you using vs22 for compiling

@Nuaagggyk
Copy link

D:\CARLA_0.9.11\carla>make PythonAPI
-[BuildUE4Plugins]: [Batch params]: --build --all
HEAD is now at 260273d Correct descriptor
-[BuildUE4Plugins]: STREETMAP has been successfully installed in "D:\CARLA_0.9.11\carla\Unreal\CarlaUE4\Plugins"
-[Setup]: [Batch params]: --boost-toolset msvc-14.2 --generator "" --all
-[Setup]: Asynchronous jobs: 16
-[Setup]: Boost toolset: msvc-14.2
-[Setup]: Generator: "Visual Studio 16 2019"
-[Setup]: Install directory: "D:\CARLA_0.9.11\carla\Build"
-[Setup]: Installing zlib...
-[install_zlib]: [Batch params]: --build-dir "D:\CARLA_0.9.11\carla\Build"
-[install_zlib]: A zlib installation already exists.
-[install_zlib]: Delete "D:\CARLA_0.9.11\carla\Build\zlib-install" if you want to force a rebuild.
-[install_zlib]: Exiting...
系统找不到指定的路径。
已复制 0 个文件。
-[Setup]: Installing libpng...
-[install_libpng]: [Batch params]: --build-dir "D:\CARLA_0.9.11\carla\Build" --zlib-install-dir "D:\CARLA_0.9.11\carla\Build\zlib-install"
-[install_libpng]: A libpng installation already exists.
-[install_libpng]: Delete "D:\CARLA_0.9.11\carla\Build\libpng-1.2.37-install" if you want to force a rebuild.
-[install_libpng]: Exiting...
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "D:\CARLA_0.9.11\carla\Build" --generator "Visual Studio 16 2019"
-[install_rpclib]: Not cloning rpclib because already exists a folder called "rpclib-src".
-[install_rpclib]: Generating build...
CMake Warning:
Ignoring extra path from command line:

".."

CMake Error: The source directory "D:/CARLA_0.9.11/carla/Build/rpclib-src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

-[install_rpclib]: [CMAKE ERROR] An error ocurred while executing the cmake.
-[install_rpclib]: [CMAKE ERROR] Possible causes:
-[install_rpclib]:                - Make sure "CMake" is installed.
-[install_rpclib]:                - Make sure it is available on your Windows "path".
-[install_rpclib]:                - CMake 3.9.0 or higher is required.
-[install_rpclib]: Exiting with error...

-[Setup]:
Ok, and error ocurred, don't panic
We have different platforms where you can find some help :)

I have already changed line 51 to "set ZLIB_VERSION=1.3.1" instead of "set ZLIB_VERSION=1.2.11" , but it doesn't work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system Changes related to the build system
Projects
None yet
Development

No branches or pull requests