Skip to content

Can't build Terminal Studio Lite on Windows 10 #1

Description

@Tembocs

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.

Activity

  1. xtyxtyx commented on Oct 3, 2020

    @xtyxtyx
    Member

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

  2. Tembocs commented on Oct 3, 2020

    @Tembocs
    Author

    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.

  3. xtyxtyx commented on Oct 4, 2020

    @xtyxtyx
    Member

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions