Open King8139 opened 3 months ago
D:\carla>make PythonAPI
D:\carla>setlocal enabledelayedexpansion
D:\carla>rem Run it through a cmd with the x64 Visual C++ Toolset enabled.
D:\carla>set LOCAL_PATH=D:\carla\Util\BuildTools\
D:\carla>set FILE_N=-[BuildUE4Plugins]:
D:\carla>rem Print batch params (debug purpose)
D:\carla>echo -[BuildUE4Plugins]: [Batch params]: --build --all -[BuildUE4Plugins]: [Batch params]: --build --all
D:\carla>rem ============================================================================
D:\carla>rem -- Parse arguments ---------------------------------------------------------
D:\carla>rem ============================================================================
D:\carla>set DOC_STRING=Build LibCarla.
D:\carla>set USAGE_STRING=Usage: -[BuildUE4Plugins]: [-h|--help] [--rebuild] [--build] [--clean] [--no-pull]
D:\carla>set BUILD_STREETMAP=false
D:\carla>set GIT_PULL=true
D:\carla>set CURRENT_STREETMAP_COMMIT=260273d6b7c3f28988cda31fd33441de7e272958
D:\carla>set STREETMAP_BRANCH=master
D:\carla>set STREETMAP_REPO=https://github.com/carla-simulator/StreetMap.git
D:\carla>if not "--build" == "" ( if "--build" == "--rebuild" ( set REMOVE_INTERMEDIATE=true set BUILD_STREETMAP=true ) if "--build" == "--build" (set BUILD_STREETMAP=true ) if "--build" == "--no-pull" (set GIT_PULL=false ) if "--build" == "--clean" (set REMOVE_INTERMEDIATE=true ) if "--build" == "-h" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) if "--build" == "--help" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) shift goto :arg-parse )
D:\carla>if not "--all" == "" ( if "--all" == "--rebuild" ( set REMOVE_INTERMEDIATE=true set BUILD_STREETMAP=true ) if "--all" == "--build" (set BUILD_STREETMAP=true ) if "--all" == "--no-pull" (set GIT_PULL=false ) if "--all" == "--clean" (set REMOVE_INTERMEDIATE=true ) if "--all" == "-h" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) if "--all" == "--help" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) shift goto :arg-parse )
D:\carla>if not "" == "" ( if "" == "--rebuild" ( set REMOVE_INTERMEDIATE=true set BUILD_STREETMAP=true ) if "" == "--build" (set BUILD_STREETMAP=true ) if "" == "--no-pull" (set GIT_PULL=false ) if "" == "--clean" (set REMOVE_INTERMEDIATE=true ) if "" == "-h" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) if "" == "--help" ( echo Build LibCarla. echo Usage: -[BuildUE4Plugins]: [-h | --help] [--rebuild] [--build] [--clean] [--no-pull] GOTO :eof ) shift goto :arg-parse )
D:\carla>rem ============================================================================
D:\carla>rem -- Local Variables ---------------------------------------------------------
D:\carla>rem ============================================================================
D:\carla>rem Set the visual studio solution directory
D:\carla>rem
D:\carla>set CARLA_PLUGINS_PATH=D:\carla\Unreal\CarlaUE4\Plugins\
D:\carla>set CARLA_STREETMAP_PLUGINS_PATH=D:\carla\Unreal\CarlaUE4\Plugins\StreetMap\
D:\carla>rem Build STREETMAP
D:\carla>if true == true ( if not exist "D:\carla\Unreal\CarlaUE4\Plugins\StreetMap\" git clone -b master https://github.com/carla-simulator/StreetMap.git D:\carla\Unreal\CarlaUE4\Plugins\StreetMap\ cd "D:\carla\Unreal\CarlaUE4\Plugins\StreetMap\" git fetch git checkout 260273d6b7c3f28988cda31fd33441de7e272958 ) error: RPC failed; curl 28 Recv failure: Connection was reset fatal: expected flush after ref listing HEAD is now at 260273d Correct descriptor
D:\carla\Unreal\CarlaUE4\Plugins\StreetMap>goto success
D:\carla\Unreal\CarlaUE4\Plugins\StreetMap>if true == true echo -[BuildUE4Plugins]: STREETMAP has been successfully installed in "D:\carla\Unreal\CarlaUE4\Plugins\"! -[BuildUE4Plugins]: STREETMAP has been successfully installed in "D:\carla\Unreal\CarlaUE4\Plugins\"
D:\carla\Unreal\CarlaUE4\Plugins\StreetMap>goto good_exit
D:\carla\Unreal\CarlaUE4\Plugins\StreetMap>endlocal
D:\carla>exit /b 0 -[Setup]: [Batch params]: --boost-toolset msvc-14.2 --generator "" --all -[Setup]: Asynchronous jobs: 20 -[Setup]: Boost toolset: msvc-14.2 -[Setup]: Generator: "Visual Studio 16 2019" -[Setup]: Install directory: "D:\carla\Build\" -[Setup]: Installing zlib... -[install_zlib]: [Batch params]: --build-dir "D:\carla\Build\" -[install_zlib]: A zlib installation already exists. -[install_zlib]: Delete "D:\carla\Build\zlib-install\" if you want to force a rebuild. -[install_zlib]: Exiting... 已复制 1 个文件。 -[Setup]: Installing libpng... -[install_libpng]: [Batch params]: --build-dir "D:\carla\Build\" --zlib-install-dir "D:\carla\Build\zlib-install\" -[install_libpng]: A libpng installation already exists. -[install_libpng]: Delete "D:\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\Build\" --generator "Visual Studio 16 2019" -[install_rpclib]: A rpclib installation already exists. -[install_rpclib]: Delete "D:\carla\Build\rpclib-install\" if you want to force a rebuild. -[install_rpclib]: Exiting... -[Setup]: Installing Google Test... -[install_gtest]: [Batch params]: --build-dir "D:\carla\Build\" --generator "Visual Studio 16 2019" -[install_gtest]: A Google Test installation already exists. -[install_gtest]: Delete "D:\carla\Build\gtest-install\" if you want to force a rebuild. -[install_gtest]: Exiting... -[Setup]: Installing "Recast & Detour"... -[install_recast]: [Batch params]: --build-dir "D:\carla\Build\" --generator "Visual Studio 16 2019" -[install_recast]: A "Recast & Detour" installation already exists. -[install_recast]: Delete "D:\carla\Build\recast-install\" if you want to force a rebuild. -[install_recast]: Exiting... -[Setup]: Installing Boost... -[install_boost]: [Batch params]: --build-dir "D:\carla\Build\" --toolset msvc-14.2 --version 1.80.0 -j 20 -[install_boost]: A Boost installation already exists. -[install_boost]: Delete "D:\carla\Build\boost-1.80.0-install\" if you want to force a rebuild. -[install_boost]: Exiting... -[Setup]: Installing Xercesc... -[install_xercesc]: [Batch params]: --build-dir "D:\carla\Build\" --generator "Visual Studio 16 2019" -[install_xercesc]: A xerces installation already exists. -[install_xercesc]: Delete "D:\carla\Build\xerces-c-3.2.3-install\" if you want to force a rebuild. -[install_xercesc]: Exiting... 系统找不到指定的路径。 系统找不到指定的路径。 -[Setup]: Installing Sqlite3 -[install_sqlite3]: [Batch params]: --build-dir "D:\carla\Build\" -[install_sqlite3]: A Sqlite3 installation already exists. -[install_sqlite3]: Delete "D:\carla\Build\sqlite3-install" if you want to force a rebuild. -[install_sqlite3]: Exiting... 已复制 1 个文件。 已复制 1 个文件。 -[Setup]: Installing PROJ -[install_proj]: [Batch params]: --build-dir "D:\carla\Build\" --generator "Visual Studio 16 2019" -[install_proj]: A PROJ installation already exists. -[install_proj]: Delete "D:\carla\Build\proj-install" if you want to force a rebuild. -[install_proj]: Exiting... 已复制 1 个文件。 已复制 1 个文件。 -[Setup]: Installing Eigen -[install_eigen]: [Batch params]: --build-dir "D:\carla\Build\" 复制了 0 个文件 复制了 0 个文件 已复制 1 个文件。 已复制 1 个文件。
-[install_eigen]: Eigen has been successfully installed in "D:\carla\Build\eigen-install"
-[install_eigen]: Exiting...
-[Setup]: Creating "CMakeLists.txt.in"... -[Setup]: ###########
###########
IMPORTANT
All the CARLA library dependences should be installed now. (You can remove all "*-src" folders in D:\carla\Build\ directory)
You only need the ASSET PACK with all the meshes and textures.
This script provides the assets for CARLA Latest: You can download the assets from here:
https://carla-assets.s3.us-east-005.backblazeb2.com/20231108_c5101a5.tar.gz
Unzip it in the "D:\carla\Unreal\CarlaUE4\Content\Carla\" folder. If you want another version, search it in D:\carla\Util\ContentVersions.txt.
-[BuildLibCarla]: [Batch params]: --server --client --generator "" -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22631. -- Build debug: ON -- Build release: ON -- Build test: ON -- Configuring done (0.0s) -- Generating done (0.1s) -- Build files have been written to: D:/carla/Build/libcarla-visualstudio 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 版权所有(C) Microsoft Corporation。保留所有权利。
1>Checking Build System carla_server.vcxproj -> D:\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server.lib carla_server_debug.vcxproj -> D:\carla\Build\libcarla-visualstudio\LibCarla\cmake\server\Release\carla_server_debug.lib 1> -- Install configuration: "Release" -- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22631. -- Build debug: ON -- Build release: ON -- Build test: ON -- Configuring done (0.0s) -- Generating done (0.2s) -- Build files have been written to: D:/carla/Build/libcarla-visualstudio 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 版权所有(C) Microsoft Corporation。保留所有权利。
1>Checking Build System carla_client.vcxproj -> D:\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client.lib carla_client_debug.vcxproj -> D:\carla\Build\libcarla-visualstudio\LibCarla\cmake\client\Release\carla_client_debug.lib 1> -- Install configuration: "Release" -[BuildLibCarla]: LibCarla server has been successfully installed in "D:\carla\Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies\"! -[BuildLibCarla]: LibCarla client has been successfully installed in "D:\carla\PythonAPI\carla\dependencies\"! -[BuildOSM2ODR]: [Batch params]: --generator "" --build --all % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0 curl: (28) Failed to connect to github.com port 443 after 21050 ms: Couldn't connect to server Warning: Problem : timeout. Will retry in 1 seconds. 5 retries left. 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0 curl: (28) Failed to connect to github.com port 443 after 21034 ms: Couldn't connect to server Warning: Problem : timeout. Will retry in 2 seconds. 4 retries left. 0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0 curl: (28) Failed to connect to github.com port 443 after 21039 ms: Couldn't connect to server Warning: Problem : timeout. Will retry in 4 seconds. 3 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 196M 0 196M 0 0 1837k 0 --:--:-- 0:01:49 --:--:-- 820k tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors 系统找不到指定的文件。 CMake Error: The source directory "D:/carla/Build/osm2odr-source" does not exist. Specify --help for usage, or press the help button on the CMake GUI. Error: could not load cache 系统找不到指定的文件。 系统找不到指定的文件。 -[BuildOSM2ODR]: OSM2ODR has been successfully installed in "D:\carla\PythonAPI\carla\dependencies\" -[BuildPythonAPI]: [Batch params]: --py3 Building Python API for Python 3. compiling:
-[BuildPythonAPI]: Carla lib for python has been successfully installed in "D:\carla\PythonAPI\carla\dist"! 这是我编译的过程,它显示 无法打开包括文件: “OSM2ODR.h”,怎么解决
你单独跑一下Util/BuildTools/BuildOSM2ODR.bat看看能不能把这个依赖库装成功
你单独跑一下Util/BuildTools/BuildOSM2ODR.bat看看能不能把这个依赖库装成功 我的结果是这样的: PS D:\carla\Util\BuildTools> .\BuildOSM2ODR.bat -[BuildOSM2ODR]: [Batch params]: Nothing selected to be done.
你单独跑一下Util/BuildTools/BuildOSM2ODR.bat看看能不能把这个依赖库装成功 我的结果是这样的: PS D:\carla\Util\BuildTools> .\BuildOSM2ODR.bat -[BuildOSM2ODR]: [Batch params]: Nothing selected to be done.没有选择执行任何操作。
hello, I also met this problem today and here is my solution for this problem. I hope it would be helpful for you. The reason of this problem is that the "BuildOSM2ODR.bat" uses "tar" to unzip the downloaded file "OSM2ODR.zip" in the "D:\carla\Util\BuildTools\BuildOSM2ODR.bat". And the downloaded file "OSM2ODR.zip" would be deleted after "BuildOSM2ODR.bat" running. So there are two solutions.
Modify "BuildOSM2ODR.bat". Specifically, in line 98, change "tar -xf OSM2ODR.zip" to "7z x OSM2ODR.zip -aoa". Of course, before that, "7zip" should be installed and “7zip” should be added to your system's environment variables to make sure it can be found. Usually the path is "C:\Program Files\7-Zip". Finally you can run "makePythonAPI" as mentioned in Carla document.
Unzip "OSM2ODR.zip" manually. You need to install "OSM2ODR.zip" from github manually and unzip it in "D:\carla\Build". And then run "makePythonAPI".
If there is still any question, feel free to get touch with me (382091009@qq.com)