carla icon indicating copy to clipboard operation
carla copied to clipboard

Make PythonAPI error: CMakeLists.txt can't found

Open caodayue opened this issue 3 years ago • 1 comments
trafficstars

I got a error:

CMake Error: The source directory "E:/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 :)

  • 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

I try: 1.download zlib1.2.11 2.modify E:\carla\Util\InstallersWin\install_zlib.bat but failed.

Who can help me?

caodayue avatar Aug 05 '22 09:08 caodayue

anybody?

caodayue avatar Aug 08 '22 07:08 caodayue

how do you solve this problem? i encounter this

jchen106 avatar Jan 06 '23 09:01 jchen106

I worked around the issue for two days. It turns out as a simple 'Git' issue. 'install_rpclib.bat' uses 'Git' to pull the rpclib repo.

echo git clone -b "%RPC_VERSION%" https://github.com/carla-simulator/rpclib.git "%RPC_SRC_DIR:~0,-1%" call git clone -b "%RPC_VERSION%" https://github.com/carla-simulator/rpclib.git "%RPC_SRC_DIR:~0,-1%"

tonmoay avatar Jan 16 '23 03:01 tonmoay

Deleting "E:/carla/Build/rpclib-src" and making again worked for me.

CharlieKingOutwood avatar Feb 21 '23 00:02 CharlieKingOutwood

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[bot] avatar Jun 01 '23 19:06 stale[bot]

Hope this helps someone. I had the same issue with Carla 0.9.13 when I run make PythonAPI. I found out that in the install_zlib.bat line 51 is set ZLIB_VERSION=1.2.13 When the batch file tries to download, it doesnt find the file at www.zlib.net/zlib1.2.13.zip. I found (I think) the reason is the file doesnt exist. The name is different. At https://github.com/madler/zlib/releases/tag/v1.2.13 the file name is zlib1213.zip So I downloaded that file from github and manually renamed it to zlib1.2.13.zip and saved it in carla/build. Then I ran make PythonAPI. Voila.

omitheaussie avatar Oct 12 '23 23:10 omitheaussie

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[bot] avatar Dec 21 '23 11:12 stale[bot]