carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.12k stars 3.59k forks source link

Error compiling Carla : 'make launch' throws errors #894

Closed KetkiChaudhary closed 5 years ago

KetkiChaudhary commented 5 years ago

Hello,

I am trying to build Carla on Ubuntu 16.04. I have downloaded it from here: https://github.com/carla-simulator/carla

I followed all the steps from the documentation. However, I get stuck at the step of "make launch". I get the following error.

smartfm@smartfm-desktop:~/carla$ sudo make launch Setup.sh: llvm-5.0 already installed. Setup.sh: boost-1.67.0 already installed. Setup.sh: rpclib-2.2.1 already installed. Setup.sh: googletest-1.8.0 already installed. Setup.sh: Generating CMake configuration files. Setup.sh: Success! BuildLibCarla.sh: Building LibCarla "Server" configuration. ninja: no work to do. [1/1] Install the project... -- Install configuration: "Server" BuildLibCarla.sh: Building LibCarla "Client" configuration. ninja: no work to do. [1/1] Install the project... -- Install configuration: "Client" BuildLibCarla.sh: Success! BuildCarlaUE4.sh: ERROR: UE4_ROOT is not defined, or points to a non-existant directory, please set this environment variable. Util/BuildTools/Linux.mk:9: recipe for target 'launch' failed make: *** [launch] Error 2

I have Unreal Engine v 4.19 built successfully on my machine. Also UE4_ROOT is a valid environment variable. ~/carla$ printenv | grep UE4_ROOT UE4_ROOT=/home/smartfm/UnrealEngine_4.19 The above path also exists.

Also my cmake version is 3.13.

Help on this would be appreciated.

Thanks

nsubiron commented 5 years ago

Hi @KetkiChaudhary,

Our script only checks if $UE4_ROOT is a valid directory. Make sure you spelled correctly and the environment is passed to our scripts.

AI-liu commented 5 years ago

add UE4_ROOT=PATH.../UnrealEngine-4.19 in Util/BuildTools/BuildCarlaUE4.sh

shreyansh073 commented 5 years ago

I am still getting this error. Has anybody solved it?

shreyansh073 commented 5 years ago

add UE4_ROOT=PATH.../UnrealEngine-4.19 in Util/BuildTools/BuildCarlaUE4.sh

This doesn't solve the problem either!

nsubiron commented 5 years ago

Make sure UE4_ROOT points to Unreal top directory, doing ls $UE4_ROOT should print this

image

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Owen-Liuyuxuan commented 5 years ago

This is not working also. Screenshot from 2019-03-23 10-46-59

Screenshot from 2019-03-23 10-47-58

wootae-jeon commented 5 years ago

Without sudo commend.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Basavaraj-PN commented 5 years ago

export UE4_ROOT=~/UnrealEngine_4.22

malibay96 commented 4 years ago

I don't now why but this steps also worked for me

In carla folder I did these

sudo su export UE4_ROOT=/home/YOURUSERNAME/UnrealEngine_4.22 make launch

direcf commented 4 years ago

Change UE4_ROOT=/home/smartfm/UnrealEngine_4.19 to UE4_ROOT=/home/smartfm/UnrealEngine-4.19 I also got this problem...Fighting!

GeraldGuo7 commented 3 years ago

1.cd 2.type gedit BuildCarlaUE4.sh like this

guod@guod-B460MDS3H:~$ gedit BuildCarlaUE4.sh

3.The.sh should be blank. Add this line and replace it with your UE path

export UE4_ROOT=~/UnrealEngine_4.22

  1. under your carla folder

    make launch

Laudarisd commented 3 years ago

If anyone still getting same issue: After editing your bash file

 gedit ~/.bashrc

    # or 

    gedit ~/.profile

You have to apply this in your root. To do this run

source ~/bashrc

After that run

make launch

Hope this will help

emeve commented 2 years ago

I have solved this problem. Changing the owner of CARLA to other users. Hopes this will help any other friends.