lite icon indicating copy to clipboard operation
lite copied to clipboard

Can't build Terminal Studio Lite on Windows 10

Open Tembocs opened this issue 3 years ago • 3 comments

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.

Tembocs avatar Oct 02 '20 17:10 Tembocs

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+.

xtyxtyx avatar Oct 03 '20 01:10 xtyxtyx

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.

Tembocs avatar Oct 03 '20 17:10 Tembocs

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

xtyxtyx avatar Oct 04 '20 02:10 xtyxtyx