carla-simulator / carla

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

Cannot 'make launch' when building latest version of carla fails with error 6 #4583

Open hpjarvis opened 3 years ago

hpjarvis commented 3 years ago

CARLA version: Latest Platform/OS: Windows 10 Problem you have experienced: unable to complete make launch step get the following issue:

D:/CARLA/CARLA/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaHUD.cpp(23): warning C4996: 'UWheeledVehicleMovementComponent::DrawDebug': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. D:/CARLA/CARLA/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorder.cpp(474): warning C4458: declaration of 'Role' hides class member G:\Epic\UE_4.26\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(541): note: see declaration of 'AActor::Role' D:/CARLA/CARLA/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorder.cpp(483): warning C4458: declaration of 'Role' hides class member G:\Epic\UE_4.26\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(541): note: see declaration of 'AActor::Role' G:\Epic\UE_4.26\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(442): error C4541: 'dynamic_cast' used on polymorphic type 'FActorData' with /GR-; unpredictable behavior may result D:\CARLA\CARLA\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(169): note: see reference to function template instantiation 'FVehicleData *UE4Casts_Private::DynamicCast<T*,ObjectType>(From *)' being compiled with [ T=FVehicleData, ObjectType=FActorData, From=FActorData ] D:/CARLA/CARLA/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(635): note: see reference to function template instantiation 'T *FCarlaActor::GetActorData<FVehicleData>(void)' being compiled with [ T=FVehicleData ] make: *** [Util/BuildTools/Windows.mk:20: CarlaUE4Editor] Error 6

I have tried make clear before and after python API step, have tried running as admin and reinstalling carla. Not too sure what it means by code out of date.

Cheers

bernatx commented 3 years ago

Hi, Make sure you have the latest version of our forked UE4.26. Then compile it. And do the same with the CARLA source, get the last version and compile it. You have the guide here for Windows: https://carla.readthedocs.io/en/0.9.12/build_windows/ Let us know if the problem persists

hpjarvis commented 3 years ago

Hi I reinstalled and followed all the steps again as above, still get the same error.

bernatx commented 3 years ago

Hi, it seems to me that you don't have our forked UE4.26, because one of the changes we did in our fork is the compilation of the UE with the RTTI enabled. And in your log, the UE is being compiled with the flag /GR- that is used to disable the RTTI. Can you check the compilation of the forked UE4.26?

hpjarvis commented 3 years ago

I have followed the steps to compile the forked engine and I am able to run it and switch uproject files to open using it, what else can I do to check the compilation of the forked engine? In the enviroment variables should the UE4_ROOT point to the forked version or the offical version?

bernatx commented 3 years ago

UE4_ROOT must point to the forked version, because is the only one that will work with CARLA.

hpjarvis commented 3 years ago

Even with the UE4_ROOT pointing to the engine root folder. I get the same issues.

Followed all the steps to the word with a clean install eariler today to try and avoid this issue, but get blocked at the same point.

[3/7] Module.Carla.1_of_3.cpp C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Vehicle/CarlaWheeledVehicle.h(47): warning C4996: 'AWheeledVehicle': PhysX is deprecated. Use the AWheeledVehiclePawn from the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Vehicle/CarlaWheeledVehicle.h(146): warning C4996: 'UWheeledVehicleMovementComponent4W': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent from the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(635): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(654): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(675): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(696): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(771): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(790): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(919): warning C4458: declaration of 'State' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(397): note: see declaration of 'FCarlaActor::State' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(923): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(942): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(960): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(1202): warning C4458: declaration of 'ActorData' hides class member C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(407): note: see declaration of 'FCarlaActor::ActorData' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Commandlet/PrepareAssetsForCookingCommandlet.cpp(219): warning C4457: declaration of 'i' hides function parameter C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Commandlet/PrepareAssetsForCookingCommandlet.cpp(157): note: see declaration of 'i' C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Game/CarlaHUD.h(53): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Game/CarlaHUD.h(54): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/CarlaHUD.cpp(23): warning C4996: 'UWheeledVehicleMovementComponent::DrawDebug': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorder.cpp(474): warning C4458: declaration of 'Role' hides class member G:\Epic\UE_4.26\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(541): note: see declaration of 'AActor::Role' C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorder.cpp(483): warning C4458: declaration of 'Role' hides class member G:\Epic\UE_4.26\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(541): note: see declaration of 'AActor::Role' G:\Epic\UE_4.26\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(442): error C4541: 'dynamic_cast' used on polymorphic type 'FActorData' with /GR-; unpredictable behavior may result C:\carla\Unreal\CarlaUE4\Plugins\Carla\Source\Carla/Actor/CarlaActor.h(169): note: see reference to function template instantiation 'FVehicleData *UE4Casts_Private::DynamicCast<T*,ObjectType>(From *)' being compiled with [ T=FVehicleData, ObjectType=FActorData, From=FActorData ] C:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Actor/CarlaActor.cpp(635): note: see reference to function template instantiation 'T *FCarlaActor::GetActorData<FVehicleData>(void)' being compiled with [ T=FVehicleData ] make: *** [Util/BuildTools/Windows.mk:20: CarlaUE4Editor] Error 6

dianevct commented 2 years ago

Hi, I have the same problem and reinstalled it 3 times already. Did you find a solution ?

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.

andrewbest-tri commented 2 years ago

I seem to also get this somewhat randomly on new machines. dealing with it right now on a windows machine when three others worked fine. Not sure what the difference is.

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

andrewbest-tri commented 1 year ago

bump. fwiw i think it might have to do with having more than one python on the system

ballonJourn commented 11 months ago

@andrewbest-tri i thank so , it looks like more a python version error than a UE4_ROOT env variable error because I set UE4_ROOT in first line of BuildCarlaUE4.bat and BuildOSM2ODR.bat , still failed

ballonJourn commented 11 months ago

there is a successful way https://github.com/carla-simulator/carla/issues/5986#issuecomment-1699469486 , make the version back to .14