Hi All,
While trying to build UE5-main, today 16th May 2022.
I have encountered an error based on VS2022
This was a link error
Error LNK1181 cannot open input file ’ ROOT:\ue5main\Engine\Source\ThirdParty\etc2comp\lib\Win64\Release\EtcLib.lib ’
In the source, there is a file at
ROOT:\ue5-main\Engine\Source\ThirdParty\etc2comp\BuildForUE
BuildForWindows.bat which needs to be run in the
If you don’t have VS2019 installed change the line
“%_vsinstall%\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe” -G “Visual Studio 16 2019” -A x64 “%PATH_TO_CMAKE_FILE%”
to
“%_vsinstall%\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe” -G “Visual Studio 17 2022” -A x64 “%PATH_TO_CMAKE_FILE%”
Open the Start Menu\Programs\Visual Studio 2022\Visual Studio Tools\VC
x64 Native Tools Command Prompt for VS 2022
cd ROOT:\ue5-main\Engine\Source\ThirdParty\etc2comp\BuildForUE
BuildForWindows.bat
for some unknown reason even with 2019 installed this will not be built automatically so you must restart the UE5 2022 build again
There may be other ThirdParty libraries that need fixing using the same method above and these can be found using “Find Files” and the search parameter “Visual Studio 16 2019”