Carla: CARLA Rebuild failed on Ubuntu

Created on 10 Apr 2018  路  12Comments  路  Source: carla-simulator/carla

In file included from /home/xxxx/works/carla/Unreal/CarlaUE4/Plugins/Carla/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Carla/Module.Carla.cpp:52:
/home/xxxx/works/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Walker/WalkerAIController.cpp:162:35: error: no
matching member function for call to '__Internal_AddDynamic'
Perception->OnPerceptionUpdated.AddDynamic(this, &AWalkerAIController::SenseActors);
\~~~~~~^~~~~~~~~~~~~
Runtime/Core/Public/Delegates/Delegate.h:380:44: note: expanded from macro 'AddDynamic'

define AddDynamic( UserObject, FuncName ) __Internal_AddDynamic( UserObject, FuncName, STATIC_FUNCTION_FNAME...

                                       ^

/home/xxxx/works/UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:1131:7: note:
candidate function [with UserClass = AWalkerAIController] not viable: no known conversion from 'void
(AWalkerAIController::)(TArray)' to 'typename
FDelegate::TMethodPtrResolver::FMethodPtr' (aka 'void (AWalkerAIController::
)(const
TArray &)') for 2nd argument
void __Internal_AddDynamic( UserClass* InUserObject, typename FDelegate::template TMethodPtrResolver< ...
^
1 error generated.

The Setup.sh and Update.sh all succeeded. UE4 builds successfully too.
_P.S_ In the latest 0.8.1

Most helpful comment

Hi @nsubiron ,
thanks, that actually worked! I thought I did compile with UE4.19 before, this was also shown in the make outputs, but I probably did not make clean after using UE4.18 before. Thanks for the hint!

All 12 comments

are you using UE4.18.3 or 4.19? if it's 4.19 you need to change AWalkerAIController::SenseActors like this cpp and .h

What actually compiles the unreal project is the Rebuild.sh script.

Yeah, it's the version mismatch. Thanks @juaxix

I have the same problem when compiling carla 0.8.4 with UE4.19.2, and I found this page, unfortunately, I can't download the files (cpp and .h)that you provided. @juaxix

@frestone Please use UE4.18.x

I am using UE4.18.3 and have the same problem. Is there another workaround?

Hi @jhallier.
Can you provide more information about your error? carla version, compiler and so on?

Hi.
I am running Ubuntu 16.04.5, make 4.1, gcc 5.5.0, cmake 3.12.0, clang 5.0.0.
I have successfully compiled the stable release 0.8.2 using UE 4.18. With the latest release 0.9. I tried with both UE 4.18 and UE 4.19. Both yield the error message:

[3/11] Compile Module.Carla.gen.cpp
In file included from /home/johannes/SDC/carla/Unreal/CarlaUE4/Plugins/Carla/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/Carla/Module.Carla.cpp:60:
/home/johannes/SDC/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Walker/WalkerAIController.cpp:161:35: error: no matching member function for call to '__Internal_AddDynamic'
Perception->OnPerceptionUpdated.AddDynamic(this, &AWalkerAIController::SenseActors);
Runtime/Core/Public/Delegates/Delegate.h:380:44: note: expanded from macro 'AddDynamic'

define AddDynamic( UserObject, FuncName ) __Internal_AddDynamic( UserObject, FuncName, STATIC_FUNCTION_FNA...

/home/johannes/UnrealEngine_4.18/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl:1131:7: note: candidate function [with UserClass = AWalkerAIController] not viable: no known conversion from 'void(AWalkerAIController::)(const TArray &)' to 'typename FDelegate::TMethodPtrResolver::FMethodPtr' (aka 'void(AWalkerAIController::)(TArray)') for 2nd argument void __Internal_AddDynamic( UserClass* InUserObject, typename FDelegate::template TMethodPtrResolve...

Hi @jhallier,

The latest release 0.9.0 requires 4.19, that error appears because you are trying to build with 4.18. I think it's a problem of cached configuration, before switching between engine versions try cleaning intermediate files

make clean
export UE4_ROOT=~/UnrealEngine_4.19
make CarlaUE4Editor

Hi @nsubiron ,
thanks, that actually worked! I thought I did compile with UE4.19 before, this was also shown in the make outputs, but I probably did not make clean after using UE4.18 before. Thanks for the hint!

I ran into this same problem -- others who bump into this should be aware that the instructions for building on Linux suggest that it "may be best" to use the stable branch, but provides instructions that aren't currently compatible with the stable branch, for example the instructions:

  • say to use Unreal Engine 4.19 which is incompatible with the stable branch (results in the error reported in this thread).
  • mention commands like make launch and make package which aren't available in the stable branch.

The stable branch has its own documentation https://carla.readthedocs.io/en/stable/how_to_build_on_linux/

That's good to know -- thanks for pointing that out! Now I see there's an Important note to that effect on both the Home and Getting Started pages, which I should have seen if I had started there rather than the How to build on Linux page (which I got to through Google). Doh!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertnishihara picture robertnishihara  路  4Comments

UndeadBlow picture UndeadBlow  路  4Comments

syinari0123 picture syinari0123  路  3Comments

phzeller picture phzeller  路  3Comments

chankim picture chankim  路  3Comments