sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.34k stars 372 forks source link

Compile error and warnings in 4.26 #137

Open VicSch opened 3 years ago

VicSch commented 3 years ago

Hi, i got an error and warnings wile compile Houdini Engine for UE4 4.26 with RunUAT.sh

Houdini Engine 4.26 Unreal Engine 4.26.1 OS Fedora 30

In file included from /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.2_of_4.cpp:23: /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1455:2: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] FString MaterialDescriptor; ^ /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1452:5: note: previous statement is here if ( !HoudiniAsset || HoudiniAsset->IsPendingKill() ) ^ /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1651:30: warning: 'CreatePackage' is deprecated: Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] PackageNew = CreatePackage(OuterPackage, *PackageName); ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h:641:1: note: 'CreatePackage' has been explicitly marked deprecated here UE_DEPRECATED(4.26, "Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported.") ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:234:43: note: expanded from macro 'UE_DEPRECATED'

define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]

                                        ^

In file included from /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.2_of_4.cpp:23: /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1882:30: warning: 'CreatePackage' is deprecated: Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] PackageNew = CreatePackage(OuterPackage, *PackageName); ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h:641:1: note: 'CreatePackage' has been explicitly marked deprecated here UE_DEPRECATED(4.26, "Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported.") ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:234:43: note: expanded from macro 'UE_DEPRECATED'

define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]

                                        ^

In file included from /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.3_of_4.cpp:10: /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineUtils.cpp:9241:24: error: cannot initialize a parameter of type 'HAPI_Int64 ' (aka 'long ') with an rvalue of type 'TArray<long long, TSizedDefaultAllocator<32> >::ElementType ' (aka 'long long ') 0, CurrentUProperty.IntValues.GetData(), 0, AttribInfo.count ), false ); ^~~~~~~~ /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimePrivatePCH.h:170:40: note: expanded from macro 'HOUDINI_CHECK_ERROR_RETURN' HOUDINI_CHECK_ERROR_RETURN_HELPER( HAPI_PARAM_CALL, HAPI_PARAM_RETURN, HOUDINI_LOG_ERROR ) ^~~~~~~ /run/media/victor/WD_250/HouEng/HostProject/Plugins/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimePrivatePCH.h:160:38: note: expanded from macro 'HOUDINI_CHECK_ERROR_RETURN_HELPER' HAPI_Result ResultVariable = HAPI_PARAM_CALL; \ ^~~~~~~ 1 error generated. 2 warnings and 1 error generated. Took 157.881634s to run mono, ExitCode=6 UnrealBuildTool failed. See log for more details. (/home/victor/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-UE4Editor-Linux-Development.txt) AutomationTool exiting with ExitCode=6 (6)

VicSch commented 3 years ago

This time i did according to instruction in README.md but with no luck also. No one *.so file was builded and UE4Editor unable to launch successfully, it throws a warning: 'LogModuleManager: Warning: ModuleManager: Unable to load module 'HoudiniEngineRuntime' - 0 instances of that module name found.'

This is log of make:

In file included from /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.3_of_4.cpp:10: /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineUtils.cpp:9241:24: error: cannot initialize a parameter of type 'HAPI_Int64 ' (aka 'long ') with an rvalue of type 'TArray<long long, TSizedDefaultAllocator<32> >::ElementType ' (aka 'long long ') 0, CurrentUProperty.IntValues.GetData(), 0, AttribInfo.count ), false ); ^~~~~~~~ /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimePrivatePCH.h:170:40: note: expanded from macro 'HOUDINI_CHECK_ERROR_RETURN' HOUDINI_CHECK_ERROR_RETURN_HELPER( HAPI_PARAM_CALL, HAPI_PARAM_RETURN, HOUDINI_LOG_ERROR ) ^~~~~~~ /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimePrivatePCH.h:160:38: note: expanded from macro 'HOUDINI_CHECK_ERROR_RETURN_HELPER' HAPI_Result ResultVariable = HAPI_PARAM_CALL; \ ^~~~~~~ In file included from /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.2_of_4.cpp:23: /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1455:2: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation] FString MaterialDescriptor; ^ /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1452:5: note: previous statement is here if ( !HoudiniAsset || HoudiniAsset->IsPendingKill() ) ^ /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1651:30: warning: 'CreatePackage' is deprecated: Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] PackageNew = CreatePackage(OuterPackage, *PackageName); ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h:641:1: note: 'CreatePackage' has been explicitly marked deprecated here UE_DEPRECATED(4.26, "Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported.") ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:234:43: note: expanded from macro 'UE_DEPRECATED'

define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]

                                      ^

In file included from /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/HoudiniEngineRuntime/Module.HoudiniEngineRuntime.2_of_4.cpp:23: /run/media/victor/WD_250/UnrealEngine/Engine/Plugins/Runtime/HoudiniEngine/Source/HoudiniEngineRuntime/Private/HoudiniEngineBakeUtils.cpp:1882:30: warning: 'CreatePackage' is deprecated: Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [-Wdeprecated-declarations] PackageNew = CreatePackage(OuterPackage, *PackageName); ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h:641:1: note: 'CreatePackage' has been explicitly marked deprecated here UE_DEPRECATED(4.26, "Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported.") ^ /run/media/victor/WD_250/UnrealEngine/Engine/Source/Runtime/Core/Public/Misc/CoreMiscDefines.h:234:43: note: expanded from macro 'UE_DEPRECATED'

define UE_DEPRECATED(Version, Message) [[deprecated(Message " Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.")]]

                                      ^

1 error generated. 2 warnings and 1 error generated. make: *** [Makefile:1008: UE4Editor] Error 6