Skip to content

UE 5.6编译失败 #754

@tsunake

Description

@tsunake

使用5.6学习UE,复制Plugin到工程根目录启动失败,查询log有类似如下的error和warning
LogPluginManager: Mounting Project plugin UnLua
LogPluginManager: Mounting Project plugin LuaProtobuf
LogPluginManager: Mounting Project plugin LuaRapidjson
LogPluginManager: Mounting Project plugin LuaSocket
SourceControl: Revision control is disabled
SourceControl: Revision control is disabled
SourceControl: Revision control is disabled
LogInit: Warning: Incompatible or missing module: UnLua
LogInit: Warning: Incompatible or missing module: UnLuaEditor
LogInit: Warning: Incompatible or missing module: LuaProtobuf
LogInit: Warning: Incompatible or missing module: LuaRapidjson
LogInit: Warning: Incompatible or missing module: LuaSocket
Running G:/UnrealEngine/Epic Games/UE_5.6/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="F:/Projects/UELearning/AdventureGame/AdventureGame.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300 win-x64
Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="F:/Projects/UELearning/AdventureGame/AdventureGame.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\liupeifu\AppData\Local\UnrealBuildTool\Log.txt
Compiled assembly file 'F:\Projects\UELearning\AdventureGame\Intermediate\Build\BuildRules\AdventureGameModuleRules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Bad IL format. The format of the file 'F:\Projects\UELearning\AdventureGame\Intermediate\Build\BuildRules\AdventureGameModuleRules.dll' is invalid.)
F:\Projects\UELearning\AdventureGame\Plugins\UnLuaExtensions\LuaProtobuf\Source\LuaProtobuf.Build.cs(30,9): warning CS0618: 'ModuleRules.bEnableUndefinedIdentifierWarnings' is obsolete: 'Deprecated in UE5.5 - Replace with ModuleRules.UndefinedIdentifierWarningLevel'
F:\Projects\UELearning\AdventureGame\Plugins\UnLuaExtensions\LuaRapidjson\Source\LuaRapidjson.Build.cs(30,9): warning CS0618: 'ModuleRules.bEnableUndefinedIdentifierWarnings' is obsolete: 'Deprecated in UE5.5 - Replace with ModuleRules.UndefinedIdentifierWarningLevel'
F:\Projects\UELearning\AdventureGame\Plugins\UnLuaExtensions\LuaSocket\Source\LuaSocket.Build.cs(30,9): warning CS0618: 'ModuleRules.bEnableUndefinedIdentifierWarnings' is obsolete: 'Deprecated in UE5.5 - Replace with ModuleRules.UndefinedIdentifierWarningLevel'
F:\Projects\UELearning\AdventureGame\Plugins\UnLua\Source\ThirdParty\Lua\Lua.Build.cs(34,9): warning CS0618: 'ModuleRules.bEnableUndefinedIdentifierWarnings' is obsolete: 'Deprecated in UE5.5 - Replace with ModuleRules.UndefinedIdentifierWarningLevel'
F:\Projects\UELearning\AdventureGame\Plugins\UnLua\Source\ThirdParty\Lua\Lua.Build.cs(35,9): warning CS0618: 'ModuleRules.ShadowVariableWarningLevel' is obsolete: 'Deprecated in UE5.6 - Replace with ModuleRules.CppCompileWarningSettings.ShadowVariableWarningLevel'
F:\Projects\UELearning\AdventureGame\Plugins\UnLua\Source\ThirdParty\Lua\Lua.Build.cs(445,72): error CS0117: 'WindowsCompiler' does not contain a definition for 'VisualStudio2019'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions