-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Comments
What version of Carla? Per the instructions, cmake needs to be installed manually: https://cmake.org/download/ |
I have cmake installed on my system. The version too is the required one. Yet this error persists. |
I have already tried this. I even tried both versions but it is not working. |
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. |
try to install those lib manually |
F:\carla>make PythonAPI
-[Setup]:
I had a similar problem.Can anyone help me? |
I had a similar problem.Can anyone help me? |
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. |
Yeah, I got it. I will try it firstly. Anyway, thank you very much.
…------------------ 原始邮件 ------------------
发件人: "carla-simulator/carla" ***@***.***>;
发送时间: 2022年4月4日(星期一) 中午1:30
***@***.***>;
***@***.******@***.***>;
主题: Re: [carla-simulator/carla] make PythonAPI error (Issue #4859)
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/InstallersWin/install_zlib.bat and changing line 51 to "set ZLIB_VERSION=1.2.12" instead of "set ZLIB_VERSION=1.2.11"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
It work,. Thank you very much |
lif
life saver, then everything should be ok!!!! |
Hanging ladder |
Thanks. It can work. |
I have the same issue yet this fix doesn't seem to work for me. any other ideas? |
it doesn't work for me to |
I counter this issue, and solved it with delete the Build directory |
It works for me |
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. |
Try installing Git and add it to the PATH. Hope this helps! |
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\ |
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 |
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 |
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. |
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 |
The method I used to change the version number and delete the build folder failed again |
I solved it by substituting make PythonAPI for make PythonAPI GENERATOR="Visual Studio 17 2022". |
@Emilyhelin ,Are you using vs22 for compiling |
D:\CARLA_0.9.11\carla>make PythonAPI ".." CMake Error: The source directory "D:/CARLA_0.9.11/carla/Build/rpclib-src" does not appear to contain CMakeLists.txt.
-[Setup]:
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 |
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.
-[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:
Building on Windows 0.8.X #21
Or just use our Discord channel!
We'll be glad to help you there :)
https://discord.gg/42KJdRj
make: *** [setup] Fehler 1
Can anybody help me with this problem?
The text was updated successfully, but these errors were encountered: