unrealcv/unrealcv

Branch 4.25 fails to build

Opened this issue · 15 comments

Hi, you should create a C++ Project, then create a Plugins folder under the project. Put the UnrealCV in the Plugins folder. Build the project.
./[your Project]/Plugins/Unrealcv.
Find the .uproject file in the project folder and build the project.
It should work.

Hi, you should create a C++ Project, then create a Plugins folder under the project. Put the UnrealCV in the Plugins folder. Build the project.
./[your Project]/Plugins/Unrealcv.
Find the .uproject file in the project folder and build the project.
It should work.

This works for me. Thanks!

Add #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" in Source/UnrealCV/Private/Server/UnrealcvServer.cpp and #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h may also solve this problem for UE4.25.4. I have made a PR:

Hi,
I've been trying to build for 4.25 for a while without success :(
I'm not a dev, so I must have missed something. I keep having this error:
AutomationTool exiting with ExitCode=6 (6)

Any ideas about what I'm doing wrong? (I'm on MacOS 10.15.7, UE 4.25.4)
I've attached my logs files.
Thank you!

Log.txt
UBT-UE4Editor-Mac-Development.txt
UBT-UE4Game-Mac-Development.txt

Hi,
I've been trying to build for 4.25 for a while without success :(
I'm not a dev, so I must have missed something. I keep having this error:
AutomationTool exiting with ExitCode=6 (6)

Any ideas about what I'm doing wrong? (I'm on MacOS 10.15.7, UE 4.25.4)
I've attached my logs files.
Thank you!

Log.txt
UBT-UE4Editor-Mac-Development.txt
UBT-UE4Game-Mac-Development.txt

Have you trid to add #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in file Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h ?.

Hi,
I've been trying to build for 4.25 for a while without success :(
I'm not a dev, so I must have missed something. I keep having this error:
AutomationTool exiting with ExitCode=6 (6)
Any ideas about what I'm doing wrong? (I'm on MacOS 10.15.7, UE 4.25.4)
I've attached my logs files.
Thank you!
Log.txt
UBT-UE4Editor-Mac-Development.txt
UBT-UE4Game-Mac-Development.txt

Have you trid to add #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in file Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h ?.

No, I'll try now. Thanks!

@Acebee
I just got the same error after adding #include "Runtime/Engine/Classes/Camera/CameraTypes.h" to the FusionCamSensor.h
AutomationTool exiting with ExitCode=6 (6)
RunUAT ERROR: AutomationTool was unable to run successfully.

@Acebee
I just got the same error after adding #include "Runtime/Engine/Classes/Camera/CameraTypes.h" to the FusionCamSensor.h
AutomationTool exiting with ExitCode=6 (6)
RunUAT ERROR: AutomationTool was unable to run successfully.

I've also tried by adding #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" to the UnrealcvServer.cpp, and still have the same error AutomationTool exiting with ExitCode=6 (6)

Add #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" in Source/UnrealCV/Private/Server/UnrealcvServer.cpp and #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h may also solve this problem for UE4.25.4. I have made a PR:

Add #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" in Source/UnrealCV/Private/Server/UnrealcvServer.cpp will cause “ fatal error C1083: Cannot open include file: 'Editor/Transactor.h': No such file or directory“ when packaging a game

Somehow, I got it to "work", the plugin is unstable and it crashes quite often :(
I tried to package my project, but now I have this errors:

UATHelper: Packaging (Mac): /Users/Shared/Epic Games/UE_4.25/Engine/Plugins/UnrealCV/Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h(145) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
UATHelper: Packaging (Mac): /Users/Shared/Epic Games/UE_4.25/Engine/Plugins/UnrealCV/Source/UnrealCV/Public/Actor/StereoCameraActor.h(21) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
PackagingResults: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
UATHelper: Packaging (Mac): /Users/Shared/Epic Games/UE_4.25/Engine/Plugins/UnrealCV/Source/UnrealCV/Public/Component/KeypointComponent.h(56) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
PackagingResults: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
UATHelper: Packaging (Mac): /Users/Shared/Epic Games/UE_4.25/Engine/Plugins/UnrealCV/Source/UnrealCV/Public/Sensor/CameraSensor/DepthCamSensor.h(21) : LogCompile: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.
PackagingResults: Error: An explicit Category specifier is required for any property exposed to the editor or Blueprints in an Engine module.

Any ideas how to fix this?
Thanks!

Hi,
I've been trying to build for 4.25 for a while without success :(
I'm not a dev, so I must have missed something. I keep having this error:
AutomationTool exiting with ExitCode=6 (6)
Any ideas about what I'm doing wrong? (I'm on MacOS 10.15.7, UE 4.25.4)
I've attached my logs files.
Thank you!
Log.txt
UBT-UE4Editor-Mac-Development.txt
UBT-UE4Game-Mac-Development.txt

Have you trid to add #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in file Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h ?.

I tried but got:
2021-04-09 11:21:00.343 UnrealHeaderTool[34857:1551324] [UE4] Assertion failed: Class->Children == __null [File:/Users/build/Build/++UE4/Sync/Engine/Source/Programs/UnrealHeaderTool/Private/HeaderParser.cpp] [Line: 6302]

/Users/bytedance/Documents/unrealcv-4.25/Plugins/UnrealCV/HostProject/Plugins/UnrealCV/Source/UnrealCV/Public/Sensor/CameraSensor/.ipynb_checkpoints/FusionCamSensor-checkpoint.h(40) : LogMac: Error: appError called: Assertion failed: Class->Children == __null [File:/Users/build/Build/++UE4/Sync/Engine/Source/Programs/UnrealHeaderTool/Private/HeaderParser.cpp] [Line: 6302]
Took 17.499492s to run mono, ExitCode=3
UnrealBuildTool failed. See log for more details. (/Users/bytedance/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Mac-Development.txt)
AutomationTool exiting with ExitCode=3 (Error_UnknownCommand)
RunUAT ERROR: AutomationTool was unable to run successfully.

qhaas commented

In addition to adding the #include mentioned by @Acebee , I also had to make it not halt on warnings by removing the -Werror from Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs. With UE4.25.4 I was getting a error: declaration shadows a variable in the global namespace warning as an error because of two different enums, both named Error, and both having a value of 1.

I can't fine "Source" and "Sensor" folder in the specific directory, can you help me out?
I am using 4.25.4

Excuse me, have you solved this problem?

Add #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" in Source/UnrealCV/Private/Server/UnrealcvServer.cpp and #include "Runtime/Engine/Classes/Camera/CameraTypes.h" in Source/UnrealCV/Public/Sensor/CameraSensor/FusionCamSensor.h may also solve this problem for UE4.25.4. I have made a PR:

Add #include "Editor/UnrealEd/Classes/Editor/EditorEngine.h" in Source/UnrealCV/Private/Server/UnrealcvServer.cpp will cause “ fatal error C1083: Cannot open include file: 'Editor/Transactor.h': No such file or directory“ when packaging a game

Do you know how to fix that? I've met the same problem when build for 4.25