Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hpjarvis opened this issue Aug 27, 2021 · 13 comments
Open
Assignees

Comments

@hpjarvis
Copy link

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
Copy link
Contributor

bernatx commented Aug 30, 2021

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
Copy link
Author

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

@bernatx
Copy link
Contributor

bernatx commented Aug 31, 2021

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
Copy link
Author

hpjarvis commented Aug 31, 2021

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
Copy link
Contributor

bernatx commented Aug 31, 2021

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

@hpjarvis
Copy link
Author

hpjarvis commented Aug 31, 2021

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
Copy link

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

@stale
Copy link

stale bot commented Apr 16, 2022

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.

@stale stale bot added the stale Issue has not had recent activity label Apr 16, 2022
@andrewbest-tri
Copy link

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 stale bot removed the stale Issue has not had recent activity label Oct 25, 2022
@stale
Copy link

stale bot commented Jun 2, 2023

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.

@stale stale bot added the stale Issue has not had recent activity label Jun 2, 2023
@andrewbest-tri
Copy link

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

@stale stale bot removed the stale Issue has not had recent activity label Jun 5, 2023
@ballonJourn
Copy link

@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
Copy link

there is a successful way #5986 (comment) , make the version back to .14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants