CodexLabsLLC / Colosseum

Open source simulator for autonomous robotics built on Unreal Engine with support for Unity
https://codexlabsllc.github.io/Colosseum/
Other
335 stars 105 forks source link

PackagingResults : Error: cannot initialize a variable of type 'const UClass *' with an lvalue of type 'FFieldClass *' #75

Closed jiaxiaofeng666 closed 5 days ago

jiaxiaofeng666 commented 7 months ago

Bug report

What's the issue you encountered?

I created a new C++ project using the UE5.2.1 version on ubuntu20.04, and then compiled the source code of airsim v2.1.0(https://github.com/CodexLabsLLC/Colosseum/releases/tag/v2.1.0), and also put the airsim plug-in in the Plugins directory of the new project. After that, the project compiled and ran successfully, and I was also editing I saw the drone model when running the server, but when I packaged the project into an executable file under the Linux platform, I got the following error:

20240118-124632

This error also occurs on Windows. Is there a bug in the packaging process of this version of airsim?

I used UE5.0.3 and another version of airsim (https://github.com/czero69/AirSim/tree/ue5-cv) on ubuntu20.04. It successfully ran and packaged without any errors. Please tell me why the above UE5.2.1 Will the above error occur when using arsim v2.1.0 for packaging?

Settings

How can the issue be reproduced?

1.Create a new C++ project using UE5.2.1 under Ubuntu20.04 2.Download the source code of airsim V2.1.0 to the root directory, and then execute the following command to compile the airsim plugin

cd AirSim
./setup.sh
./build.sh

Then put the ~/Unreal/Plugins/AirSim plug-in under the Plugins directory in the new project. The new project needs to create a new Plugins directory 3.then compile and run, and package the Linux platform package after successful operation.

Include full error message in text form

If you have any other questions, please contact me, my email is 1600927475@qq.com

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

IaroslavS commented 4 months ago

Bug report

* AirSim Version/#commit: latest Release V2.1.0

* UE/Unity version: Unreal 5.2.1

* autopilot version:

* OS Version: Ubuntu 20.04

What's the issue you encountered?

I created a new C++ project using the UE5.2.1 version on ubuntu20.04, and then compiled the source code of airsim v2.1.0(https://github.com/CodexLabsLLC/Colosseum/releases/tag/v2.1.0), and also put the airsim plug-in in the Plugins directory of the new project. After that, the project compiled and ran successfully, and I was also editing I saw the drone model when running the server, but when I packaged the project into an executable file under the Linux platform, I got the following error:

20240118-124632

This error also occurs on Windows. Is there a bug in the packaging process of this version of airsim?

I used UE5.0.3 and another version of airsim (https://github.com/czero69/AirSim/tree/ue5-cv) on ubuntu20.04. It successfully ran and packaged without any errors. Please tell me why the above UE5.2.1 Will the above error occur when using arsim v2.1.0 for packaging?

Settings

How can the issue be reproduced?

1.Create a new C++ project using UE5.2.1 under Ubuntu20.04 2.Download the source code of airsim V2.1.0 to the root directory, and then execute the following command to compile the airsim plugin

cd AirSim
./setup.sh
./build.sh

Then put the ~/Unreal/Plugins/AirSim plug-in under the Plugins directory in the new project. The new project needs to create a new Plugins directory 3.then compile and run, and package the Linux platform package after successful operation.

Include full error message in text form

If you have any other questions, please contact me, my email is 1600927475@qq.com

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

Find 'Plugins/AirSim/Source/SimMode/SimModeBase.cpp' line 232 and replace Cast with CastFieldChecked. It's a software crutch (because you remove compatibility with some other versions of Unreal), but it works.

xxEoD2242 commented 5 days ago

Please reopen if this is an issue in UE 5.4