carla使用记录
程序员文章站
2022-07-12 11:28:37
...
carla环境搭建教程:https://carla.readthedocs.io/en/latest/how_to_build_on_linux/
一. 虚拟机:80G(至少)+8G
二、安装依赖工具包
sudo apt-get update
sudo apt-get install wget software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
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-7 main"
sudo apt-get update
sudo apt-get install build-essential clang-7 lld-7 g++-7 cmake ninja-build libvulkan1 python python-pip python-dev python3-dev python3-pip libpng16-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync
pip2 install --user setuptools
pip3 install --user setuptools
配置编译器
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-7/bin/clang++ 170
sudo update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-7/bin/clang 170
三. 构建虚拟引擎
搭建虚拟引擎时需要提前申请epic账号和github账号,并在epic上绑定github账号,然后在邮箱中接收epic邀请,等一会,就可以访问rpic的github私有仓库。
epic账号申请:https://www.unrealengine.com/
下载unreal engine 4.22版本到UnrealEngine_4.22文件夹
git clone --depth=1 -b 4.22 https://github.com/EpicGames/UnrealEngine.git ~/UnrealEngine_4.22
进入UnrealEngine_4.22文件夹
cd ~/UnrealEngine_4.22
编译
#配置所需环境,耗时较久
./Setup.sh
#生成makefile文件
./GenerateProjectFiles.sh
#编译unreal engine
make
如果以上任何步骤失败,请查看Unreal的文档。