Skip to content

flutter build windows failed on src/serious_python/example/flet_example #33

@liudonghua123

Description

@liudonghua123

Hi, I tried the src/serious_python/example/flet_example, and it is ok with flutter build apk. However, when I tried to execute flutter build windows, it always failed with the following errors.

Details
>  flutter build windows

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: The command "setlocal [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E make_directory D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E copy_directory D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/python/Lib D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/Lib [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E copy_directory D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/python/DLLs D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: IF "release" == "release" DEL "D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs\*_d.*" /S /Q [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: DEL "D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs\*.ico" /S /Q [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: DEL "D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs\*.cat" /S /Q [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: DEL "D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs\tcl86t.dll" /Q [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: DEL "D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/DLLs\tk86t.dll" /Q [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmErrorLevel [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: exit /b %1 [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmDone [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :VCEnd" exited with code 1. [D:\code\python\serious-python\src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
Building Windows application...                                  2,989ms
Build process failed.

I found it failed on execute "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E copy_directory D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/python/Lib D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/runner/Release/Lib in src\serious_python\example\flet_example\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj. The directory D:/code/python/serious-python/src/serious_python/example/flet_example/build/windows/x64/python/ is not exists on my system.

I tried to download Python310.zip and extracted to src/serious_python/example/flet_example/build/windows/x64/python manually, then it build successfully.

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