Repository: rive-app/rive-flutter

Issue #308: Build fails on Windows
Created: 2023-04-09T11:29:22Z
Description
When building for windows with version 0.10.3 build fails:

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5): error MSB8020: The build tools for ClangCL (Platform Toolset = 'ClangCL') cannot be found. To build using the ClangCL build tools, please install ClangCL build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\sszajbely\FlutterProjects\lender_app\build\windows\plugins\rive_common\rive_common_plugin.vcxproj]

Steps To Reproduce

Run flutter run windows
See the error

Device & Versions
Flutter doctor output:

[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.22621.1413], locale hu-HU)
• Flutter version 3.7.10 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4b12645012 (5 days ago), 2023-04-03 17:46:48 -0700
• Engine revision ec975089ac
• Dart version 2.19.6
• DevTools version 2.20.1


[√] Windows Version (Installed version of Windows is version 10 or higher)


[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at C:\Users\sszajbely\AppData\Local\Android\sdk
• Platform android-33, build-tools 32.1.0-rc1
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
• All Android licenses accepted.


[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe


[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.3)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.2.32526.322
• Windows 10 SDK version 10.0.19041.0


[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)


[√] VS Code, 64-bit edition (version 1.76.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.62.0


[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1413]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 111.0.5563.147
• Edge (web)        • edge    • web-javascript • Microsoft Edge 111.0.1661.62


[√] HTTP Host Availability
• All required HTTP hosts are available


• No issues found!

Additional context
The build doesn't fail on rive version 0.9.1

Duplicate issue #368: Windows build failure
Created: 2024-03-16T02:15:49Z
Description
Windows build fails with the following error on Codemagic
Building Windows application...                                 
Nuget.exe not found, trying to download or use cached version.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for ClangCL (Platform Toolset = 'ClangCL') cannot be found. To build using the ClangCL build tools, please install ClangCL build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\builder\clone\build\windows\x64\plugins\rive_common\rive_common_plugin.vcxproj]
Building Windows application...                                   128.9s
Build process failed.

Steps To Reproduce
Try to build windows app
Expected behavior
The app should build successfully
Screenshots
N/A
Device & Versions (please complete the following information)
Flutter 3.19.3 • Dart 3.3.1

Closing comment (2024-03-16T02:23:20Z): duplicate of #308