[자율주행/시뮬레이터] Carla simulator 설치 오류 해결 - GlobalShaderCache

2022. 7. 17. 20:3004. Archives/Self-driving Cars

728x90
반응형

최근에 Ubuntu 18.04 (우분투) 에서 Carla를 아래 커맨드로 설치하고 나서

sudo apt-get install carla-simulator

 

아래 사진과 같은 에러를 보이면서 실행이 안되는 경우가 있다.

~~~ "GlobalShaderCache-GLSL_150_ES31.bin"

 

위의 에러는 Carla가 Unreal에 의존성이 있어서, 관련된 의존성 패키지들을 설치하지 않은 경우에 발생하는 에러다.

 

이 문제는 Unreal 관련된 의존성 패키지를 설치해서 해결할 수 있다.

https://carla.readthedocs.io/en/latest/build_linux/#software-requirements

 

Linux build - CARLA Simulator

Linux build This guide details how to build CARLA from source on Linux. There are two parts. Part one details system requirements and installations of required software, and part two details how to actually build and run CARLA. The build process is long (4

carla.readthedocs.io

위의 링크에서 Ubuntu 18.04 (우분투) 에 해당하는 설치를 진행하면 해결된다.

 

설치 커맨드는 아래와 같다.

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

 

위의 커맨드로 의존성 패키지를 설치를 한다음

cd /opt/carla-simulator && ./CarlaUE4.sh

터미널에서 위 커맨드로 Carla를 실행하면 정상적으로 실행되는걸 볼 수 있다!

 

Carla를 쓰다보면 이 시뮬레이터가 왜 아직 버전이 1.0 대로 가지 않았는지 알 수 있다.

꽤나 많은 버그들이 있어서 최신 릴리즈를 쓸 때도 이런저런 버그들을 직접 트러블슈팅 하면서 써야한다.

 

그럼 이제 Carla가 잘 실행될테니 즐거운 자율주행 시뮬레이션 라이프를 즐겨보자!

 

 

반응형