UWP il2cpp issues, 5.3.3f1 and 5.3.3p1

Hey all,

I updated to Unity 5.3.3f1 and upgraded VS2015 with update 1. I’ve also tried Unity 5.3.3p1. The game built just fine before we upgraded.

I have two big problems I’m hitting now:

  • Trying to open Package.appxmanifest crashes visual studio
  • Trying to build the game results in the compiler errors shown below.

Anyone know anything about this?

Thanks!


1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): error C2039: ‘GetFileType’: is not a member of ‘global namespace'' 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): error C2664: 'il2cpp::os::File::FileType il2cpp::os::File::GetFileType(il2cpp::os::FileHandle *)': cannot convert argument 1 from 'HANDLE' to 'il2cpp::os::FileHandle *' 1> C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): note: Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(179): error C2039: 'ReplaceFileW': is not a member of 'global namespace’’
1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(179): error C3861: ‘ReplaceFileW’: identifier not found
1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(309): error C2039: ‘GetFileSizeEx’: is not a member of ‘global namespace'' 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(309): error C3861: 'GetFileSizeEx': identifier not found 1> 1> 1> 1> Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" 1> Arguments: /DWIN32 /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /D_NDEBUG /DNDEBUG /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\external\boehmgc\include" /I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt" /MD /c /bigobj /EHs /W3 /GR- /Zi /Gy /wd4102 /wd4800 /wd4307 /wd4056 /wd4190 /wd4723 /Ox /Oi /Oy- /GS- /Gw /GF /Zo "C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp" /Fd"C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\objectfiles\48804DC4C064B7F6DF6ED1F563DAB539.pdb" /Fo"C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\objectfiles\48804DC4C064B7F6DF6ED1F563DAB539.obj" 1> EnvArg key: PATH value: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Windows Kits\10\bin\x86 1> 1> at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable1 sourceFilesToCompile)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build()
1> at il2cpp.Program.DoRun(String[ ] args)
1> at il2cpp.Program.Run(String[ ] args)
1> at il2cpp.Program.Main(String[ ] args)
1>
1> Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: File.cpp
1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): error C2039: ‘GetFileType’: is not a member of ‘global namespace'' 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): error C2664: 'il2cpp::os::File::FileType il2cpp::os::File::GetFileType(il2cpp::os::FileHandle *)': cannot convert argument 1 from 'HANDLE' to 'il2cpp::os::FileHandle *' 1> C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(120): note: Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(179): error C2039: 'ReplaceFileW': is not a member of 'global namespace’’
1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(179): error C3861: ‘ReplaceFileW’: identifier not found
1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(309): error C2039: ‘GetFileSizeEx’: is not a member of 'global namespace'' 1>C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp(309): error C3861: 'GetFileSizeEx': identifier not found 1> 1> 1> 1> Invocation was: Executable: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" 1> Arguments: /DWIN32 /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /D_NDEBUG /DNDEBUG /DWINAPI_FAMILY=WINAPI_FAMILY_APP /I"C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp" /I"C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\external\boehmgc\include" /I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10586.0\ucrt" /MD /c /bigobj /EHs /W3 /GR- /Zi /Gy /wd4102 /wd4800 /wd4307 /wd4056 /wd4190 /wd4723 /Ox /Oi /Oy- /GS- /Gw /GF /Zo "C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\libil2cpp\os\Win32\File.cpp" /Fd"C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\objectfiles\48804DC4C064B7F6DF6ED1F563DAB539.pdb" /Fo"C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\objectfiles\48804DC4C064B7F6DF6ED1F563DAB539.obj" 1> EnvArg key: PATH value: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Windows Kits\10\bin\x86 1> 1> at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable1 sourceFilesToCompile)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build()
1> at il2cpp.Program.DoRun(String[ ] args)
1> at il2cpp.Program.Run(String[ ] args)
1> at il2cpp.Program.Main(String[ ] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ““C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\build\il2cpp.exe” --compile-cpp -architecture=x86 -configuration=Release -platform=winrt -outputpath=“C:\Builds\Oxenfree\Windows10\build\bin\Win32\Release\UnityPlayer.dll” -cachedirectory=“C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\” -generatedcppdir=“C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\il2cppOutput” -define=WINDOWS_UWP -define=UNITY_UWP -define=UNITY_WSA_10_0 -define=UNITY_WSA -define=UNITY_WINRT --additional-libraries=“C:\Builds\Oxenfree\Windows10\Players\UAP\x86\Release\UnityPlayer.lib,d3d11.lib,d3d12.lib,dxguid.lib,mfuuid.lib,msxml6.lib,vccorlib.lib,dloadhelper.lib” --linker-flags=”/DELAYLOAD:mfplat.dll /DELAYLOAD:mfreadwrite.dll" -verbose" exited with code -532462766.
2>------ Build started: Project: Oxenfree, Configuration: Release Win32 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Application Type\Windows Store\10.0\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(41,5): error : The Windows SDK version (10.0.10586.0) was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting ‘Retarget solution’

That sounds like VS Update didn’t get installed correctly. The Il2CppOutputProject is being built by us, so we try to build it and fail. However, the “Oxenfree” project is getting built by MSBuild, and it’s giving you an error:

I’d go to control panel → programs and features, then Modify Visual Studio 2015, and make sure that both Visual C++ and Universal Windows SDK 10586 is installed.

Tried that, but it says that 10586 is installed. I also tried repairing all of those components.

Perhaps I’ll try uninstalling altogether…?

Yes, I’d try reinstalling VS if it thinks everything is installed, since it clearly isn’t.

Hmmm, still having issues. It’s now saying that VS 14.0 is not installed, when, obviously, it is. (14.0.24720.00 to be exact). Still the same message at the end. any ideas?

1>------ Build started: Project: Il2CppOutputProject, Configuration: Release Win32 ------
1> il2cpp.exe didn’t catch exception: System.Exception: MSVC Installation version 14.0 is not installed on current machine!
1> at Unity.IL2CPP.Building.ToolChains.MsvcVersions.MsvcInstallation.GetInstallation(Version version)
1> at Unity.IL2CPP.Building.ToolChains.MsvcWinRtToolChain.get_MsvcInstallation()
1> at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.ToolChainIncludePaths()
1> at Unity.IL2CPP.Building.ToolChains.MsvcWinRtToolChain.c__Iterator3.MoveNext()
1> at System.Linq.Enumerable.d__581.MoveNext() 1> at System.Linq.Enumerable.<ConcatIterator>d__581.MoveNext()
1> at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() 1> at Unity.IL2CPP.Building.Hashing.FileHashProvider.Initialize(IEnumerable1 cppSourceCompileInstructions)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build()
1> at il2cpp.Program.DoRun(String[ ] args)
1> at il2cpp.Program.Run(String[ ] args)
1> at il2cpp.Program.Main(String[ ] args)
1>
1> Unhandled Exception: System.Exception: MSVC Installation version 14.0 is not installed on current machine!
1> at Unity.IL2CPP.Building.ToolChains.MsvcVersions.MsvcInstallation.GetInstallation(Version version)
1> at Unity.IL2CPP.Building.ToolChains.MsvcWinRtToolChain.get_MsvcInstallation()
1> at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.ToolChainIncludePaths()
1> at Unity.IL2CPP.Building.ToolChains.MsvcWinRtToolChain.c__Iterator3.MoveNext()
1> at System.Linq.Enumerable.d__581.MoveNext() 1> at System.Linq.Enumerable.<ConcatIterator>d__581.MoveNext()
1> at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() 1> at Unity.IL2CPP.Building.Hashing.FileHashProvider.Initialize(IEnumerable1 cppSourceCompileInstructions)
1> at Unity.IL2CPP.Building.CppProgramBuilder.Build()
1> at il2cpp.Program.DoRun(String[ ] args)
1> at il2cpp.Program.Run(String[ ] args)
1> at il2cpp.Program.Main(String[ ] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ““C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\IL2CPP\build\il2cpp.exe” --compile-cpp -architecture=x86 -configuration=Release -platform=winrt -outputpath=“C:\Builds\Oxenfree\Windows10\build\bin\Win32\Release\UnityPlayer.dll” -cachedirectory=“C:\Builds\Oxenfree\Windows10\build\obj\il2cppOutputProject\Win32\Release\” -generatedcppdir=“C:\Builds\Oxenfree\Windows10\Il2CppOutputProject\il2cppOutput” -define=WINDOWS_UWP -define=UNITY_UWP -define=UNITY_WSA_10_0 -define=UNITY_WSA -define=UNITY_WINRT --additional-libraries=“C:\Builds\Oxenfree\Windows10\Players\UAP\x86\Release\UnityPlayer.lib,d3d11.lib,d3d12.lib,dxguid.lib,mfuuid.lib,msxml6.lib,vccorlib.lib,dloadhelper.lib” --linker-flags=”/DELAYLOAD:mfplat.dll /DELAYLOAD:mfreadwrite.dll" -verbose" exited with code -532462766.
2>------ Build started: Project: Oxenfree, Configuration: Release Win32 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Application Type\Windows Store\10.0\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(41,5): error : The Windows SDK version (10.0.10586.0) was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting ‘Retarget solution’
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

Are you able to create an empty UWP C++ application from Visual Studio?

Just tried “Blank Universal App” and I cannot build it (see error below).

One possible suspect I just realized: Earlier, Unity was complaining about there not being a file at C:\Program Files (x86)\Windows Kits\10\Platforms\UAP\10.0.10586.0\Platform.xml. I duplicated the 10.0.10240 folder and renamed it 10.0.10586 and Unity was able to build. BUT, that was before I repaired the VS installation, AND before I uninstalled and reinstalled VS (all components).

Here are some screenshots of Control Panel and the installer after clicking on “Modify”:


2534900--176001--components.PNG

1>------ Build started: Project: App1, Configuration: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Application Type\Windows Store\10.0\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(41,5): error : The Windows SDK version (10.0.0.0) was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting ‘Retarget solution’
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

I realize that at this point this is outside the bounds of Unity, but any advice would be appreciated! :slight_smile:

Yea I’m sorry, I don’t know what to tell you. I’d suggest trying msdn forums.