# Carla Environment Build > [name=FrankZheng] [time=Fri, Jul 29 , 2022] >[TOC] --- 1.Environment Requirement --- - Ubuntu 18.04 - 130GB↑ disk space - GPU - Python 3.6↑ --- 2.Pre-Production --- - Ubuntu System ``` 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-8 main" && sudo apt-get update sudo apt-get install build-essential clang-8 lld-8 g++-7 cmake ninja-build libvulkan1 python python-pip python-dev python3-dev python3-pip libpng-dev libtiff5-dev libjpeg-dev tzdata sed curl unzip autoconf libtool rsync libxml2-dev git ``` - Python Dendencies ``` pip install --user setuptools && pip3 install --user -Iv setuptools==47.3.1 && pip install --user distro && pip3 install --user distro && pip install --user wheel && pip3 install --user wheel auditwheel ``` 3.Build Unreal Engine --- UnrealEngine now close git clone download,just can use git desktop or SSL KEY.In my case, I download unreal-engine by zip to use. - https://github.com/CarlaUnreal/UnrealEngine/tree/carla After unzip. Open terminal in /UnrealEngine-carla ``` ./Setup.sh && ./GenerateProjectFiles.sh && make ``` Open the editor to check Unreal Engine already install. ``` cd ~/UnrealEngine-carla/Engine/Binaries/Linux && ./UE4Editor ``` 4.Build Carla --- ``` git clone https://github.com/carla-simulator/carla ``` Switch check point to 0.9.13, you can find it at carla/utill/ContentVersions.txt ``` git checkout tags/0.9.13 -b 20211112_d5cfa12 ``` ``` ./Update.sh #It will run for along time. ``` We need to set the path for carla to find correct unreal-engine editor. ``` gedit ~/.bashrc # or gedit ~/.profile ``` Add the following line to the bottom of the file: ``` export UE4_ROOT=~/UnrealEngine-carla ``` :::danger Also add at /carla/utill/BuildTools/BuildCarlaUE4.sh** ::: 5.Start Carla --- ``` cd ~ ``` Sometimes system will say you don't have permission to perform the fllow-up commands. ``` sudo chown -R "username" carla ``` ``` make PythonAPI ``` ``` make launch ``` ``` python manual_control.py ``` References --- https://carla.readthedocs.io/en/latest/build_linux/ --- 大概就到這邊,有任何指教請歡迎聯絡我 >frankboygx@gmail.com
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up