参考官方文档进行修改并对遇到的问题进行记录和解决:
https://carla.readthedocs.io/en/latest/how_to_build_on_linux/
猜测UE4需要在carla之前进行编译
我们下载的release版本在download/test文件可以直接运行查看通过命令: ./CarlaUE4.sh /Game/Maps/Town02
参考:https://carla.readthedocs.io/en/stable/running_simulator_standalone/
自己进行编译
1. build UE4-4.22
执行下面三步:
./Setup.sh # ok
./GenerateProjectFiles.sh
make
1. build carla-0.9.5 环境
完成 在download目录下
Content updated successfully.表示成功
然后执行下面三步:
make launch # Compiles the simulator and launches Unreal Engine's Editor.
make PythonAPI # Compiles the PythonAPI module necessary for running the Python examples.
make package # Compiles everything and creates a packaged version able to run without UE4 editor.
make help # Print all available commands.
1. make launch 过程中出现 没有clang 6 错误:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository “deb http://apt.llvm.org/xenial/ llvm- toolchain-xenial-6.0 main”
sudo apt-get update
sudo apt-get install -y clang-6.0
然后出现各种错误:
解决编译卡死
设置 编译的进程数 make -j 1
2. build UE4-4.22
编译过程中出现卡死现象