Everything was compiling fine with the previous version of Visual Studio. However, after I updated to the latest version, 17.14.13, it seems to be causing a conflict with ImfPixelType.h
.
Does anyone know how to fix this?
The logs are below.
Build started at 6:03 PM…
1>------ Build started: Project: UE5, Configuration: Development_Editor x64 ------
Failed to restore D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj (in 104 ms).
Failed to restore D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj (in 104 ms).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
1>Using bundled DotNet SDK version: 8.0.300 win-x64
1>Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild -architecture=x64
1>Log file: D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Programs\UnrealBuildTool\Log.txt
1>Building UnrealEditor and ShaderCompileWorker…
1>Using Visual Studio 2022 14.38.33145 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Adaptive Build] Excluded from CubemapExport unity file: CubemapExport.cpp, CubemapExportLibrary.cpp, CubemapUtils.cpp
1>[Adaptive Build] Excluded from CubemapExportEditor unity file: CubemapExportEditor.cpp, RenderTargetCubeBmpExporter.cpp, TextureCubeBmpExporter.cpp, RenderTargetCubeExrExporter.cpp, TextureCubeExrExporter.cpp, RenderTargetCubeJpgExporter.cpp, TextureCubeJpgExporter.cpp, RenderTargetCubePngExporter.cpp, TextureCubePngExporter.cpp
1>Determining max actions to execute in parallel (12 physical cores, 24 logical cores)
1> Executing up to 12 processes, one per physical core
1>Using Unreal Build Accelerator executor to run 9 action(s)
1> Storage capacity 40Gb
1>---- Starting trace: 250909_180353_vs15960 ----
1>UbaSessionServer - Disable remote execution (remote sessions will finish current processes)
1>------ Building 9 action(s) started ------
1>** For UnrealEditor-Win64-Development **
1>[1/9] Compile [x64] Module.MovieRenderPipelineEditor.2.cpp
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfPixelType.h(22,2): error C2059: syntax error: ‘UINT’
1> UINT = 0, // unsigned int (32 bit)
1> ^
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfPixelType.h(27,1): error C2143: syntax error: missing ‘;’ before ‘}’
1>};
1>^
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfPixelType.h(29,1): error C2059: syntax error: ‘}’
1>OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
1>^
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfPixelType.h(29,1): error C2143: syntax error: missing ‘;’ before ‘}’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xnode_handle.h(22,1): error C2143: syntax error: missing ‘;’ before ‘{’
1>_STD_BEGIN
1>^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xnode_handle.h(22,1): error C2447: ‘{’: missing function header (old-style formal list?)
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,64): error C3878: syntax error: unexpected token ‘{’ following ‘expression’
1> return _Insert_return_type<iterator, node_type>{end(), false, {}};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,64): note: the template instantiation context (the oldest one first) is
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1973,2): note: see reference to class template instantiation ‘std::_Tree<_Traits>’ being compiled
1>};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,64): note: error recovery skipped: ‘{ identifier (’
1> return _Insert_return_type<iterator, node_type>{end(), false, {}};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
1> return _Insert_return_type<iterator, node_type>{end(), false, {}};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C3878: syntax error: unexpected token ‘)’ following ‘jump_statement’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C3878: syntax error: unexpected token ‘)’ following ‘statement’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C3878: syntax error: unexpected token ‘)’ following ‘statement_seq’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): note: missing one of: ‘}’ ?
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C2760: syntax error: ‘)’ was unexpected here; expected ‘}’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C3878: syntax error: unexpected token ‘)’ following ‘compound_statement’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): error C3878: syntax error: unexpected token ‘)’ following ‘selection_statement’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,69): note: error recovery skipped: ‘) ,’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,79): error C2760: syntax error: ‘{’ was unexpected here; expected ‘expression’
1> return _Insert_return_type<iterator, node_type>{end(), false, {}};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,79): error C3878: syntax error: unexpected token ‘{’ following ‘expression’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,79): note: error recovery skipped: ‘{’
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\xtree(1765,80): error C2760: syntax error: ‘}’ was unexpected here; expected ‘;’
1> return _Insert_return_type<iterator, node_type>{end(), false, {}};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(38,9): error C2065: ‘_Node_handle_map_base’: undeclared identifier
1> _Node_handle_map_base, _Kty, _Ty>;
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(38,9): note: the template instantiation context (the oldest one first) is
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(69,2): note: see reference to class template instantiation ‘std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,_Mfl>’ being compiled
1>};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(37,23): error C7568: argument list missing after assumed function template ‘_Node_handle’
1> using node_type = _Node_handle<_Tree_node<value_type, typename allocator_traits<_Alloc>::void_pointer>, _Alloc,
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(103,32): error C7568: argument list missing after assumed function template ‘_Insert_return_type’
1> using insert_return_type = _Insert_return_type<iterator, typename _Mybase::node_type>;
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(103,32): note: the template instantiation context (the oldest one first) is
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\map(369,2): note: see reference to class template instantiation ‘std::map<_Kty,_Ty,_Pr,_Alloc>’ being compiled
1>};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(35,9): error C2065: ‘_Node_handle_set_base’: undeclared identifier
1> _Node_handle_set_base, _Kty>;
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(35,9): note: the template instantiation context (the oldest one first) is
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(48,2): note: see reference to class template instantiation ‘std::_Tset_traits<_Kty,_Pr,_Alloc,_Mfl>’ being compiled
1>};
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(34,23): error C7568: argument list missing after assumed function template ‘_Node_handle’
1> using node_type = _Node_handle<_Tree_node<value_type, typename allocator_traits<_Alloc>::void_pointer>, _Alloc,
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(80,32): error C7568: argument list missing after assumed function template ‘_Insert_return_type’
1> using insert_return_type = _Insert_return_type<iterator, typename _Mybase::node_type>;
1> ^
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(80,32): note: the template instantiation context (the oldest one first) is
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\INCLUDE\set(180,2): note: see reference to class template instantiation ‘std::set<_Kty,_Pr,_Alloc>’ being compiled
1>};
1> ^
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfChannelList.h(68,13): error C2065: ‘HALF’: undeclared identifier
1> Channel (
1> ^
1>D:\Workspace\EngineDev\UnrealEngine5.6\Engine\Source\ThirdParty\openexr\Deploy\openexr-3.3.2\include\OpenEXR\ImfFrameBuffer.h(107,11): error C2065: ‘HALF’: undeclared identifier
1> Slice (
1> ^
1>Trace written to file D:/Workspace/EngineDev/UnrealEngine5.6/Engine/Programs/UnrealBuildTool/Log.uba with size 11.6kb
1>Total time in Unreal Build Accelerator local executor: 8.34 seconds
1>
1>Result: Failed (OtherCompilationError)
1>Total execution time: 10.72 seconds
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command “…\Build\BatchFiles\Build.bat -Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6.
1>Done building project “UE5.vcxproj” – FAILED.
========== Build: 0 succeeded, 1 failed, 11 up-to-date, 0 skipped ==========
========== Build completed at 6:04 PM and took 35.911 seconds ==========