carla-simulator / carla

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

No rule to make target 'CarlaUE4Editor' error after make rebuild #4357

Closed Brimill closed 2 years ago

Brimill commented 3 years ago

Hey, everytime I use make rebuild, it fails with the following error and I am then unable to launch the CarlaUE4Editor.

BuildPythonAPI.sh: Success!
BuildCarlaUE4.sh: Using Unreal Engine at '/home/rudiger/UnrealEngine_4.24'
BuildCarlaUE4.sh: Cleaning intermediate files and folders.
BuildCarlaUE4.sh: Generate Unreal project files.
Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
    updated UE4Printers.py
    found necessary entries in ~/.gdbinit file, not changing it.

Setting up Unreal Engine 4 project files...

Fixing inconsistent case in filenames.
Setting up Mono
Discovering modules, targets and source code for project...
While compiling /home/rudiger/carla/Unreal/CarlaUE4/Intermediate/Build/BuildRules/CarlaUE4ModuleRules.dll:
/home/rudiger/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Carla.Build.cs(39,9) : warning CS0618: `UnrealBuildTool.ModuleRules.Definitions' is obsolete: `The 'Definitions' property has been deprecated. Please use 'PublicDefinitions' instead.'
Generating data for project indexing... 98%----------------------------------------------
CarSim OFF
100%
Writing project files... 100%
BuildCarlaUE4.sh: Build CarlaUE4 project.
make[1]: Entering directory '/home/rudiger/carla/Unreal/CarlaUE4'
make[1]: *** No rule to make target 'CarlaUE4Editor'.  Stop.
make[1]: Leaving directory '/home/rudiger/carla/Unreal/CarlaUE4'
Util/BuildTools/Linux.mk:36: recipe for target 'rebuild' failed
make: *** [rebuild] Error 2

I ran into this issue several times before and the only 'fix' I found was recloning Unreal Engine and building it again. Does make clean change something in the ~/UnrealEngine_4.24 directory?

Platform: Ubuntu 18.04 Carla Version: 0.9.11 (I also ran into this issue on 0.9.8)

stale[bot] commented 2 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.