片头语:在Ubuntu中挣扎了良久(主要因为显卡驱动问题),还是不行,决定来在windows下尝试安装一下,希望自己成成功。
首先
按照https://carla.readthedocs.io/en/latest/how_to_build_on_windows/
一步一步到make launch环节
第一个坑:
F:\carla>make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
信息: 用提供的模式无法找到文件。
-[Setup]: [ERROR] Can't find Visual Studio compiler (cl.exe).
[ERROR] Possible causes:
[ERROR] - Make sure you use x64 (not x64_x86!)
[ERROR] - You are not using "Visual Studio x64 Native Tools Command P
rompt".
-[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
解决办法:在开始菜单中,打开 : VS 2017的开发人员命令提示符
用这个东西 进入carla目录执行make launch
建议2:开始编译之前,关掉360之类的软件 会一直崩要不要阻止xxx
错误3:
f:\carla>make launch
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs: 8
-[Setup]: Boost toolset: msvc-14.1
-[Setup]: Install directory: "f:/carla/Build/"
-[Setup]: Installing rpclib...
-[install_rpclib]: [Batch params]: --build-dir "f:/carla/Build/"
-[install_rpclib]: A rpclib installation already exists.
-[install_rpclib]: Delete "f:/carla/Build/rpclib-install\" if you want to fo
rce a rebuild.
-[install_rpclib]: Exiting...
-[Setup]: Installing Google Test...
-[install_gtest]: [Batch params]: --build-dir "f:/carla/Build/"
-[install_gtest]: A Google Test installation already exists.
-[install_gtest]: Delete "f:/carla/Build/gtest-install\" if you want to forc
e a rebuild.
-[install_gtest]: Exiting...
-[Setup]: Installing Boost...
-[install_boost]: [Batch params]: --build-dir "f:/carla/Build/" --toolset
msvc-14.1 -j 8
-[install_boost]: Not cloning boost because already exists a folder called "
boost-src".
-[install_boost]: Generating build...
Building Boost.Build engine
系统找不到指定的路径。
'.\build.bat' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.
-[install_boost]: [BOOTSTRAP ERROR] An error ocurred while executing "bootst
rap.bat".
-[install_boost]: 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
目前看可能是之前下载不完整的缘故,删除build文件夹下boost-src,重新make launch
(与下面的错误是一样的,如果实在不行按照下面的最终解决办法执行)
错误:
fatal: clone of 'https://github.com/boostorg/accumulators.git' into submodule pa
th 'F:/carla/Build/boost-src/libs/accumulators' failed
解决:
用这里的方法 https://blog.51cto.com/11887934/2051323 加速git
还不行的话 找个别人吧这个git语句执行了的打包给你发过来(墙外的电脑)(我就是这样搞了)
尝试:编辑carla\Util\BuildTools\BuildCarlaUE4.bat
将所写unreal版本改为对应版本 我从4.19改成了4.22
错误:中间如果有什么Mysql不是可用语句之类的错误,去环境变量里面把所有带mysql的环境变量全删了