Azure Remote rendering error - EXEC : fatal error C1007: unrecognized flag '-ssa-cfg-jt-' in 'p2' - unity3d

I am trying to build Azure remote rendering unity showcase project. After unity build the output visual studio project upon building is giving below error, my Unity 3D version is 2019.4.29f and visual studio version is 2019:
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: Il2CppTypeDefinitions.c
1>EXEC : fatal error C1007: unrecognized flag '-ssa-cfg-jt-' in 'p2'
LINK : fatal error LNK1181: cannot open input file 'C:\ADO-Repo\MR\ARR\Unity\v2019\ARRShowcase\ARRApp\build\bin\ARM64\Release\GameAssembly.lib'

It looks like the compiler flags in the Il2CppOutputProject project contain an error. I generated the Showcase solution with Unity 2019.4.29f and see a similar flag -d2ssa-cfg-jt- in there.
You can check if the compiler flags in your generated solution contain -ssa-cfg-jt-, and if so try replacing that by -d2ssa-cfg-jt-.
To view the compiler flags in Visual Studio open the Properties of the Il2CppOutputProject project. Then go to the NMake page and edit the Build Command Line field. In my configuration --compiler-flags="-d2ssa-cfg-jt-" is right at the end: Il2CppOutputProject Properties.

Related

Vscode : Command 'CMake: Configure' resulted in an error (No usable generator found)

When I am configuring the CMake for vscode,I encounter a very puzzling problem.I follow the steps of Microsoft's vscode official documentation to configure CMake for vscode,and everything is good.I can finish the 'F5' debugging operation and running the project in the vscode.
However,later while configuring vscode for cmake with "cmake.generator": "Ninja" and using the CMake:Configure command, vscode generates an error——
Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings. json, your Kit configuration or Path variable
The following output[1] of the CMake Tools Extension indicated that it tried to find the new CMake generator but not found.
Command 'CMAKE:Configure' result in an error (No usable generator found.)
[rollbar] Unhandled exception: Unhandled Promise rejection: configure Error: No usable generator found.
I read the CMake official doucument,searched the problem in google but I can't find out why.
[1] the detailed error prompts

Swift error on Windows: invalidManifestFormat: Missing or empty JSON output from manifest compilation

I've installed Swift 5.6.1 on my Windows 10 machine, including all the necessary Visual Studio components, but I can't seem to build anything. Even just running the following set of commands in git bash results in an error:
mkdir swiftTest
cd swiftTest
swift package init --type executable
swift build
Specifically, the swift build command gives the following errors:
warning: Failed creating default cache location, Error Domain=NSCocoaErrorDomain Code=256 "(null)"
'swiftTest': error: invalidManifestFormat("Missing or empty JSON output from manifest compilation for swiftTest", diagnosticFile: nil)
The error message seems surprisingly rare -- the top google results were the source of the program that generated that error, and an unrelated error with similar wording from a ReactJS application.
Do I just have to add some flags to the swift build command, or is there something else wrong with my setup?
In my case what fixed it was invoking the command from a Visual Studio Developer Command prompt.

How to config CDT debug for cygwin?

I am new to eclipse CDT with cygwin. I just created a HelloWorld C++ project.
The built exe works in cygwin.
If I click the exe in file in file explorer, it says that it can not find cygwin1.dll. This error can be resolved by adding C:\cygwin64\bin to the Path env variable.
If I try to debug directly, I got the following errors:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/WINDOWS/system32/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/Debug/HelloWorld.exe, (error 2).
The above diagnosis seems to point to lacking of C:\cygwin64\bin, so I add C:\cygwin64\bin to Path env variable in the env var tab of the debug config, but the result is the same.
My questions:
How to solve this issue?
Where to find a list of error to decode error 2?
It seems that the latest gdb above version 9.2-1 is wrong: https://www.eclipse.org/forums/index.php/t/1105969/
I have downgrade my gdb and gcc for cgywin to cure the issue

Cannot create a C++ project in Unreal Engine 4

Whenever I try to create a C++ project in Unreal Engine 4, it throws me this error:
An error occurred while trying to generate project files.
Running C:/Program Files/Epic Games/UE_4.25/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="C:/Users/Zahin/Documents/Unreal Projects/TestC/TestC.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
While compiling C:\Program Files\Epic Games\UE_4.25\Engine\Intermediate\Build\BuildRules\UE4Rules.dll:
error CS0042: Unexpected error creating debug information file 'c:\Program Files\Epic Games\UE_4.25\Engine\Intermediate\Build\BuildRules\UE4Rules.PDB' -- 'c:\Program Files\Epic Games\UE_4.25\Engine\Intermediate\Build\BuildRules\UE4Rules.pdb: Access is denied.
ERROR: Unable to compile source files.
It works perfectly fine with Blueprint mode, but I need to open in C++. Please help.
Start/Execute Unreal as Administrator. It should solve the problem.
Try to install:
Win64:
https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-3.1.18-windows-x64-installer
Win32:
https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-3.1.18-windows-x86-installer
It helped me to solve the problem.

Trying to Add-Migration - Exception in Package Manager Console: "Cannot get an instance of EnvDTE.DTE"

I have been migrating my project to Visual Studio 2015 RC. I have also refactored it into separate projects. Now I need to add a migration for a model change in entity framework but as soon as I open the Package Manager Console I get this error message:
Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE At C:\Users...\Visual Studio 2010\Projects\MyProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:30
If I clear the console and try again, I get "an exception has been encountered" - with more information in the activity log. Inspect the activity log and the exception is:
System.ArgumentOutOfRangeException: Specified argument was out of the
range of valid values. Parameter name: span at
Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot,
Span span) at
NuGetConsole.Implementation.Console.WpfConsoleClassifier.GetClassificationSpans(SnapshotSpan
span) at
Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__1.MoveNext()
at
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__1.MoveNext()
I realised that I had removed some packages that I probably should not have. So I re-installed these:
ModelScaffolding 0.9.2
MvcScaffolding 1.0.9
T4Scaffolding 1.0.8
This appears to have taken the second exception (ArgumentOutOfRangeException) away. However, now when I try Add-Migration I get
Join-Path : Cannot bind argument to parameter 'Path' because it is
null. At C:\Users...\Visual Studio
2010\Projects\MyProject\packages\EntityFramework.6.1.0\tools\EntityFramework.psm1:713
char:27
I tried uninstalling and re-installing Entity Framework. I noticed during install that the Join-Path error was displayed again, but package-manager continued, and reported a successful install. I still got the error when I tried Add-Migration
Then I opened the solution in Visual Studio Express 2013. I still get the initial Cannot get an instance of EnvDTE.DTE error, but I can clear the console window and I can add a migration - Phew!
I'd still like to get rid of that error message...and use VS 2015...
There was an error in the NuGet VS extension. You can fix this by installing the latest NuGet (not available through VS yet). This may require an update of Powershell and/or Windows Management Framework.