ruyo / VRM4U

Runtime VRM loader for UnrealEngine5
Other
1.39k stars 179 forks source link

i am trying to upgrade 5.1 to 5.2 #287

Open penyparker opened 1 year ago

penyparker commented 1 year ago

Describe the bug

i am getting this error when i try to compile the project with latest plugin

Running C:/Program Files/Epic Games/UE_5.2/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="C:/Users/doswl/Documents/Unreal Projects/MyProject1_5.1 5.2/MyProject1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE Using bundled DotNet SDK version: 6.0.302 Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="C:/Users/doswl/Documents/Unreal Projects/MyProject1_5.1 5.2/MyProject1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE Log file: C:\Users\doswl\AppData\Local\UnrealBuildTool\Log.txt Creating makefile for MyProject1Editor (no existing makefile) Warning: Plugin 'VRM4U' does not list plugin 'IKRig' as a dependency, but module 'VRM4U' depends on 'IKRig'. Warning: Plugin 'VRM4U' does not list plugin 'IKRig' as a dependency, but module 'VRM4U' depends on 'IKRigEditor'. Warning: Plugin 'VRM4U' does not list plugin 'IKRig' as a dependency, but module 'VRM4ULoader' depends on 'IKRig'. Warning: Plugin 'VRM4U' does not list plugin 'IKRig' as a dependency, but module 'VRM4ULoader' depends on 'IKRigEditor'. @progress push 5% Parsing headers for MyProject1Editor Running Internal UnrealHeaderTool "C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\MyProject1.uproject" "C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Intermediate\Build\Win64\MyProject1Editor\Development\MyProject1Editor.uhtmanifest" -WarningsAsErrors -installed Total of 118 written Reflection code generated for MyProject1Editor in 1.2262273 seconds @progress pop Building MyProject1Editor... Using Visual Studio 2022 14.34.31946 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10). [Upgrade] [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is: [Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0 [Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_2;' in MyProject1Editor.Target.cs. [Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine. [Upgrade] Determining max actions to execute in parallel (6 physical cores, 12 logical cores) Executing up to 6 processes, one per physical core Requested 1.5 GB free memory per action, 6.84 GB available: limiting max parallel actions to 4 Building 44 actions with 4 processes... [1/44] Resource Default.rc2 [2/44] Resource Default.rc2 [3/44] Resource Default.rc2 [4/44] Resource Default.rc2 [5/44] Resource Default.rc2 [6/44] Resource Default.rc2 [7/44] Resource Default.rc2 [8/44] Compile [x64] SharedPCH.UnrealEd.ShadowErrors.InclOrderUnreal5_0.cpp [9/44] Compile [x64] SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.cpp [10/44] Compile [x64] Module.VRM4U.1_of_3.cpp [11/44] Compile [x64] VRM4UMisc.cpp [12/44] Compile [x64] Module.VRM4U.2_of_3.cpp [13/44] Compile [x64] Module.VRM4U.3_of_3.cpp C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(893): error C2039: 'StaticSwitchParameters': is not a member of 'FStaticParameterSetEditorOnlyData' C:\Program Files\Epic Games\UE_5.2\Engine\Source\Runtime\Engine\Public\StaticParameterSet.h(413): note: see declaration of 'FStaticParameterSetEditorOnlyData' C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(893): error C2530: 'params': references must be initialized C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(896): error C3536: 'params': cannot be used before it is initialized C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(897): error C2109: subscript requires array or pointer type C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(908): error C2109: subscript requires array or pointer type C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(918): error C2109: subscript requires array or pointer type C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(919): error C2109: subscript requires array or pointer type C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(1653): warning C4996: 'IAnimationDataController::AddBoneTrack': AddBoneTrack returning index is deprecated use AddBoneCurve returning bool instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(1672): warning C4996: 'IAnimationDataController::SetPlayLength': SetPlayLength with length in seconds in deprecated use SetNumberOfFrames using FFrameNumber instead Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmBPFunctionLibrary.cpp(1674): warning C4996: 'UAnimSequence::SetUseRawDataOnly': SetUseRawDataOnly has been deprecated Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4U\Private\VrmUtil.cpp(535): fatal error C1083: Cannot open include file: 'Solvers/IKRig_PBIKSolver.h': No such file or directory [14/44] Link [x64] UnrealEditor-VRM4U.dll cancelled [15/44] Link [x64] UnrealEditor-VRM4U.lib cancelled [16/44] Link [x64] UnrealEditor-VRM4UMisc.dll cancelled [17/44] Compile [x64] test1.cpp [18/44] Compile [x64] Module.VRM4UEditor.cpp [19/44] Link [x64] UnrealEditor-VRM4UEditor.dll cancelled [20/44] Compile [x64] MyClass.cpp [21/44] Compile [x64] Module.VRM4UImporter.cpp C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4UImporter\Private\VrmOptionWindow.cpp(48): warning C4996: 'FEditorStyle::GetBrush': FEditorStyle::GetBrush() is deprecated, use FAppStyle::GetBrush() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4UImporter\Private\VrmOptionWindow.cpp(55): warning C4996: 'FEditorStyle::GetFontStyle': FEditorStyle::GetFontStyle() is deprecated, use FAppStyle::GetFontStyle() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4UImporter\Private\VrmOptionWindow.cpp(64): warning C4996: 'FEditorStyle::GetFontStyle': FEditorStyle::GetFontStyle() is deprecated, use FAppStyle::GetFontStyle() instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. [22/44] Compile [x64] MyProject1.init.gen.cpp [23/44] Compile [x64] AExeDreCharacter.cpp [24/44] Compile [x64] AExeDreCharacter.gen.cpp [25/44] Compile [x64] Module.VRM4ULoader.cpp C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Source\VRM4ULoader\Private\LoaderBPFunctionLibrary.cpp(63): fatal error C1083: Cannot open include file: 'Solvers/IKRig_PBIKSolver.h': No such file or directory [26/44] Link [x64] UnrealEditor-VRM4ULoader.lib cancelled [27/44] Link [x64] UnrealEditor-VRM4ULoader.dll cancelled [28/44] Link [x64] UnrealEditor-VRM4UImporter.dll cancelled [29/44] Compile [x64] MyCharacter.cpp [30/44] Compile [x64] MyCharacterMovementComponent.cpp [31/44] Compile [x64] MyCharacter.gen.cpp [32/44] Compile [x64] MyProject1.cpp [33/44] Compile [x64] AExedrePlayerController.cpp [34/44] Link [x64] UnrealEditor-VRM4UMisc.lib Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UMisc\UnrealEditor-VRM4UMisc.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UMisc\UnrealEditor-VRM4UMisc.exp [35/44] Link [x64] UnrealEditor-VRM4UEditor.lib Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UEditor\UnrealEditor-VRM4UEditor.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UEditor\UnrealEditor-VRM4UEditor.exp [36/44] Compile [x64] Module.VRM4UCapture.cpp [37/44] Link [x64] UnrealEditor-VRM4UCapture.dll cancelled [38/44] Link [x64] UnrealEditor-VRM4UImporter.lib Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UImporter\UnrealEditor-VRM4UImporter.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UImporter\UnrealEditor-VRM4UImporter.exp [39/44] Compile [x64] MyCharacterMovementComponent.gen.cpp [40/44] Link [x64] UnrealEditor-VRM4UCapture.lib Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UCapture\UnrealEditor-VRM4UCapture.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Plugins\VRM4U\Intermediate\Build\Win64\x64\UnrealEditor\Development\VRM4UCapture\UnrealEditor-VRM4UCapture.exp [41/44] Compile [x64] AExedrePlayerController.gen.cpp [42/44] Link [x64] UnrealEditor-MyProject1.lib Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Intermediate\Build\Win64\x64\UnrealEditor\Development\MyProject1\UnrealEditor-MyProject1.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Intermediate\Build\Win64\x64\UnrealEditor\Development\MyProject1\UnrealEditor-MyProject1.exp [43/44] Link [x64] UnrealEditor-MyProject1.dll Creating library C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Intermediate\Build\Win64\x64\UnrealEditor\Development\MyProject1\UnrealEditor-MyProject1.suppressed.lib and object C:\Users\doswl\Documents\Unreal Projects\MyProject1_5.1 5.2\Intermediate\Build\Win64\x64\UnrealEditor\Development\MyProject1\UnrealEditor-MyProject1.suppressed.exp [44/44] WriteMetadata MyProject1Editor.target cancelled

Screenshots, log If applicable, add screenshots to help explain your problem. Please note that the log may contain user names and path names. MyProject/Saved/Logs/MyProject.log

UnrealEngine Version: UE5.2

Additional context Add any other context about the problem here.

acolasialiuliu commented 1 year ago

我也无法编译5.2

ruyo commented 1 year ago

Hi. Please use the latest source. If you still have problems, please let me know which revision you are using.