Platform
Flutter Desktop Windows
Doctor
[√] Flutter (Channel stable, 3.35.7, on Microsoft Windows [Version 10.0.19045.6456], locale en-GB) [341ms]
• Flutter version 3.35.7 on channel stable at C:\Users\Rohinton Collins\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision adc9010625 (2 weeks ago), 2025-10-21 14:16:03 -0400
• Engine revision 035316565a
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [981ms]
[X] Android toolchain - develop for Android devices [159ms]
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[√] Chrome - develop for the web [132ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.14.19) [131ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.14.36623.8
• Windows 10 SDK version 10.0.26100.0
[!] Android Studio (not installed) [7ms]
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
[√] VS Code (version 1.105.1) [6ms]
• VS Code at C:\Users\Rohinton Collins\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.122.0
[√] Connected device (3 available) [121ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.6456]
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.104
• Edge (web) • edge • web-javascript • Microsoft Edge 141.0.3537.99
[√] Network resources [253ms]
• All expected network resources are available.
! Doctor found issues in 2 categories.
Version
9.8.0
Steps to Reproduce
I have nasm.exe installed at 'C:\Program Files\NASM\nasm.exe'. This is required by a couple of other plugins in my project. My project was building fine on Windows until I attempted to integrate Sentry. I got this error when building:
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\share\cmake-3.31\Templates\MSBuild\nasm.targets(33,5): error MSB3721: The command ""C:/Program Files/NASM/nasm.exe" -o "crashpad_util.dir\Release\capture_context_win.obj" -fwin32 -I"C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-src\external\crashpad\\" -I"C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-src\external\crashpad\third_party\mini_chromium\mini_chromium\\" -I"C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-src\external\crashpad\compat\win\\" -I"C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-src\external\crashpad\third_party\mini_chromium\\" -D"WIN32" -D"_WINDOWS" -D"NDEBUG" -D"UNICODE" -D"_UNICODE" -D"CRASHPAD_FLOCK_ALWAYS_SUPPORTED=1" -D"CRASHPAD_LSS_SOURCE_EMBEDDED" -D"NOMINMAX" -D"WIN32_LEAN_AND_MEAN" -D"_CRT_SECURE_NO_WARNINGS" -D"_HAS_EXCEPTIONS=0" -D"CRASHPAD_ZLIB_SOURCE_EMBEDDED" -D"ZLIB_CONST" -D"CMAKE_INTDIR="Release"" -f "C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-src\external\crashpad\util\misc\capture_context_win.asm"" exited with
code 1. [C:\Users\Rohinton Collins\IDZ\flutter-app\zcloud\build\windows\x64\_deps\sentry-native-build\crashpad_build\util\crashpad_util.vcxproj]
So what is happening is that CMake is trying to use 'nasm.exe' to build 'capture_context_win.asm' instead of 'ml64.exe' which is the Microsoft ASM compiler. The command line isn't even correct for nasm.exe. I don't have great experience on this toolchain, but I need nasm.exe installed and available for other dependencies. So I made some changes to the following file:
"$projectRoot\build\windows\x64_deps\sentry-native-src\external\crashpad\util\CMakeLists.txt"
to force CMake to use ml64.exe instead of nasm.exe to compile .asm files in the utility/misc folder.
This worked and I was able to build my project but it seems to be that there is a problem with the crashpad\util\CMakeLists.txt file which is preventing it from selecting the ml64.exe compiler.
This is the patch I added to the top of that file:
if(WIN32 AND MSVC)
message(STATUS "Configuring Crashpad to use ml64.exe instead of NASM")
# Disable NASM completely for this project
set(CMAKE_ASM_NASM_COMPILER NOTFOUND CACHE FILEPATH "" FORCE)
unset(CMAKE_ASM_NASM_COMPILER CACHE)
# Enable MASM and point to ml64.exe
enable_language(ASM_MASM)
set(ML64_PATH "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/ml64.exe")
if(EXISTS "${ML64_PATH}")
message(STATUS "Using ml64 assembler: ${ML64_PATH}")
set(CMAKE_ASM_MASM_COMPILER "${ML64_PATH}" CACHE FILEPATH "Path to ml64.exe" FORCE)
else()
message(WARNING "ml64.exe not found at expected path: ${ML64_PATH}")
endif()
# Apply MASM language property to Crashpad's .asm files (util/misc and others)
file(GLOB_RECURSE CRASHPAD_ASM_FILES
"${PROJECT_SOURCE_DIR}/util/misc/*.asm"
"${PROJECT_SOURCE_DIR}/*.asm"
)
foreach(asm_file ${CRASHPAD_ASM_FILES})
set_source_files_properties(${asm_file} PROPERTIES LANGUAGE ASM_MASM)
endforeach()
endif()
Expected Result
My project should have built without having to apply the patch. ml64.exe should have been used instead of nasm.exe
Actual Result
Compilation error - as shown above.
Platform
Flutter Desktop Windows
Doctor
[√] Flutter (Channel stable, 3.35.7, on Microsoft Windows [Version 10.0.19045.6456], locale en-GB) [341ms]
• Flutter version 3.35.7 on channel stable at C:\Users\Rohinton Collins\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision adc9010625 (2 weeks ago), 2025-10-21 14:16:03 -0400
• Engine revision 035316565a
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging
[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [981ms]
[X] Android toolchain - develop for Android devices [159ms]
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[√] Chrome - develop for the web [132ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.14.19) [131ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.14.36623.8
• Windows 10 SDK version 10.0.26100.0
[!] Android Studio (not installed) [7ms]
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
[√] VS Code (version 1.105.1) [6ms]
• VS Code at C:\Users\Rohinton Collins\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.122.0
[√] Connected device (3 available) [121ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.6456]
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.104
• Edge (web) • edge • web-javascript • Microsoft Edge 141.0.3537.99
[√] Network resources [253ms]
• All expected network resources are available.
! Doctor found issues in 2 categories.
Version
9.8.0
Steps to Reproduce
I have nasm.exe installed at 'C:\Program Files\NASM\nasm.exe'. This is required by a couple of other plugins in my project. My project was building fine on Windows until I attempted to integrate Sentry. I got this error when building:
So what is happening is that CMake is trying to use 'nasm.exe' to build 'capture_context_win.asm' instead of 'ml64.exe' which is the Microsoft ASM compiler. The command line isn't even correct for nasm.exe. I don't have great experience on this toolchain, but I need nasm.exe installed and available for other dependencies. So I made some changes to the following file:
"$projectRoot\build\windows\x64_deps\sentry-native-src\external\crashpad\util\CMakeLists.txt"
to force CMake to use ml64.exe instead of nasm.exe to compile .asm files in the utility/misc folder.
This worked and I was able to build my project but it seems to be that there is a problem with the crashpad\util\CMakeLists.txt file which is preventing it from selecting the ml64.exe compiler.
This is the patch I added to the top of that file:
Expected Result
My project should have built without having to apply the patch. ml64.exe should have been used instead of nasm.exe
Actual Result
Compilation error - as shown above.