问题描述
BuildCarlaUE4.sh: ERROR: UE4_ROOT is not defined, or points to a non-existant directory, please set this environment variable.
Util/BuildTools/Linux.mk:7: recipe for target ‘launch’ failed
make: *** [launch] Error 2
解决方法
sudo gedit ~/.bashrc
然后往里面添加
UE4_ROOT=~/UnrealEngine_4.24
然后重新编译你会发现没有用,该有的问题还是有233
其实这里主要是要改另外一个文件(反正之前做的也不是没用)
sudo gedit ~/Carla/Util/BuildTools/BuildCarlaUE4.sh
然后往里面添加
UE4_ROOT=~/UnrealEngine_4.24
ok