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 compile AirSim for UE5.1 #1

Open
guillemdelgado opened this issue Apr 25, 2023 · 1 comment
Open

Cannot compile AirSim for UE5.1 #1

guillemdelgado opened this issue Apr 25, 2023 · 1 comment

Comments

@guillemdelgado
Copy link

Bug report

  • AirSim Version/#commit: b415b39
  • UE/Unity version: UE5.1
  • autopilot version: NA
  • OS Version: Windows 10

What's the issue you encountered?

I cannot build AirSim for UE5.1 in CitySample.

How can the issue be reproduced?

I downloaded the repo and switch to commit b415b39. Used the build.cmd with CMD for VS2022 and copied the folder of the plugin to AirSim. Modified the DefaultGame.ini file and generated the Solution Project. Compiled with F5 and no luck.

Include full error message in text form

Error (active)	E0077	this declaration has no storage class or type specifier	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarPawn.h	30	
Error (active)	E1696	cannot open source file "AirBlueprintLib.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\AirBlueprintLib.h	27	
Error (active)	E1696	cannot open source file "DetectionComponent.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\DetectionComponent.h	8	
Error (active)	E1696	cannot open source file "ObjectFilter.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\ObjectFilter.h	9	
Error (active)	E1696	cannot open source file "PIPCamera.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\PIPCamera.h	21	
Error (active)	E1696	cannot open source file "CarPawn.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarPawn.h	18	
Error (active)	E1696	cannot open source file "CarWheelFront.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarWheelFront.h	7	
Error (active)	E1696	cannot open source file "CarWheelRear.generated.h"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarWheelRear.h	7	
Error (active)	E1835	attribute "deprecated" does not apply here	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h	283	
Error (active)	E1835	attribute "deprecated" does not apply here	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h	1239	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h	381	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h	382	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h	383	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h	384	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	49	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	55	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	61	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	67	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	73	
Error (active)	E1455	member function declared with 'override' does not override a base class member	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h	162	
Error (active)	E0020	identifier "FRHIViewableResource" is undefined	CitySample	C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\RHI\Public\RHI.h	2233	
Error (active)	E0077	this declaration has no storage class or type specifier	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\ObjectFilter.h	17	
Error (active)	E0135	class "UObject" has no member "Tick"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarPawn.cpp	243	
Error (active)	E0135	class "UObject" has no member "BeginPlay"	CitySample	C:\Users\gdelgado\Documents\Unreal Projects\CitySample\Plugins\AirSim\Source\Vehicles\Car\CarPawn.cpp	263	

What's better than filing an issue? Filing a pull request :).

@czero69
Copy link
Owner

czero69 commented May 2, 2023

Hey,

Thanks for checking my branch out and filling the issue. It looks to me that I have added support for UE 5.1 (and newer CitySample compatible with UE 5.1) later than the commit you have pointed. At your commit, 5.0 was supported and 5.1 was added bit later with 219b0bc

The errors you pasted above suggest that there is some section of Airsim car pawn that is not compiling. As I am only using computer vision mode, what I have done is completely disable car pawn code just to make it compiling. This particular error should be fixed in the newer version of my branch - pls let me know. The one you have pointed out is really old.

I would strongly reccommend to stick with the newest commit, should be less buggy, more stable and the latest one are compatible with upcoming UE 5.2 (new instructions are in a readme).

Also please note that there are two Citysample versions currently on epic marketplace. You should go with it like that:

  • citysample 5.1 for UE 5.1 or UE 5.2 (ue5-main commit I've pointed in readme) and latest commits in my citysample branch
  • citysample 5.0 for UE 5.0 (I worked with it in the past, didnt check compatibility for my recent commits)

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

No branches or pull requests

2 participants