lite
lite copied to clipboard
Can't build Terminal Studio Lite on Windows 10
I tried to build Terminal Studio Lite and got this error message. I use Flutter 1.23 master channel on Windows 10 version 2004, build 20201.1000.
> flutter run --release
Launching lib\main.dart on Windows in release mode...
~\flutter\lite\windows\runner\flutter_window.cpp(23,44): error C2664: 'void RegisterPlugins(flutter::PluginRegistry *)':
cannot convert argument 1 from 'flutter::FlutterViewController *' to 'flutter::PluginRegistry *'
[~\flutter\lite\build\windows\runner\lite.vcxproj]
~\flutter\lite\windows\runner\run_loop.cpp(63,29):
error C2039: 'ProcessMessages': is not a member of 'flutter::FlutterViewController'
[~\flutter\lite\build\windows\runner\lite.vcxproj]
Building Windows application...
Exception: Build process failed.
It seems that flutter had updated its windows template since 1.23.0.
Try delete the windows
folder and run flutter create .
, or checkout the flutter_1.23.0 branch which is compatible with Flutter 1.23.0+.
After cloning the project afresh and upgraded Flutter successful built the project but it starts with the Lite terminal showing this message:
Do you want to run software from this untrusted publisher?
File C:\Users\<user-name>\Documents\PowerShell\Modules\PSReadline\2.1.0\PSReadLine.format.ps1xml is published by
CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
and is not trusted on your system. Only run scripts from trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help (default is "D"):
It does not allow for typing anything, so I can't accept or deny anything.
Try run the following command in Powershell
Set-ExecutionPolicy Unrestricted
Details: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7