shirne / chinese_chess

Chinese Chess game by Flutter
GNU General Public License v2.0
48 stars 9 forks source link

Windows下编译失败 #6

Closed swim2sun closed 6 months ago

swim2sun commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

Windows下编译失败

To Reproduce Steps to reproduce the behavior:

flutter run -d windows

Desktop (please complete the following information):

Flutter 3.21.0-7.0.pre.37 • channel master • https://github.com/flutter/flutter.git
Framework • revision 20889dd816 (4 weeks ago) • 2024-03-14 13:19:24 -0400
Engine • revision 41fce3f010
Tools • Dart 3.4.0 (build 3.4.0-232.0.dev) • DevTools 2.33.1

Additional context Add any other context about the problem here.

错误

CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1601 (message):
  Build step for nuget failed: 1
Call Stack (most recent call first):
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1741:EVAL:2 (__FetchContent_directPopulate)
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1741 (cmake_language)
  C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1955 (FetchContent_Populate)
  flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:20 (FetchContent_MakeAvailable)
swim2sun commented 6 months ago
MSBuild version 17.5.0+6f08c67f3 for .NET Framework

  Checking Build System
  Performing download step (download and verify) for 'nuget-populate'
  -- verifying file...
         file='C:/Users/xxxxx/flutter_chess/build/windows/x64/_deps/nuget-subbuild/nuget-populate-prefix/src/nuget.exe'
  -- SHA256 hash of
      C:/Users/xiangyang/project/chess/flutter_chess/build/windows/x64/_deps/nuget-subbuild/nuget-populate-prefix/src/nuget.exe
    does not match expected value
      expected: 'd5fce5185de92b7356ea9264b997a620e35c6f6c3c061e471e0dc3a84b3d74fd'
        actual: 'f038a1ff110afa5d063d4a6a36ab509b647039ec7654d807ed6eec16ed66b73f'
  -- File already exists but hash mismatch. Removing...
  -- Downloading...
     dst='C:/Users/xxxxxx/flutter_chess/build/windows/x64/_deps/nuget-subbuild/nuget-populate-prefix/src/nuget.exe'
     timeout='none'
     inactivity timeout='none'
  -- Using src='https://dist.nuget.org/win-x86-commandline/v6.5.0/nuget.exe'
  -- [download 0% complete]
  -- [download 2% complete]
  -- [download 3% complete]
  -- [download 4% complete]
  -- [download 5% complete]
  -- [download 6% complete]
  -- [download 7% complete]
  -- [download 8% complete]
  -- [download 9% complete]
  -- [download 10% complete]
  -- [download 11% complete]
  -- [download 12% complete]
  -- [download 13% complete]
  -- [download 14% complete]
  -- [download 15% complete]
  -- [download 16% complete]
  -- [download 17% complete]
  CMake Error at nuget-subbuild/nuget-populate-prefix/src/nuget-populate-stamp/download-nuget-populate.cmake:170 (message):
    Each download failed!
shirne commented 6 months ago

pre版本变动比较大,一般不考虑支持。 需要自行修改配置或代码适配

swim2sun commented 6 months ago

@shirne 那能否提供编译好的windows版本或mac版本程序?谢谢~

shirne commented 6 months ago

@shirne 那能否提供编译好的windows版本或mac版本程序?谢谢~

可以尝试用flutter stable 版本运行( 之前最后debug应该是用的 3.13 )