bug in flutter build in windows #2

Open
opened 2026-05-20 10:29:02 +03:30 by morrning · 0 comments
Owner

PS C:\Users\babak\Desktop\backup\hesabixarc> .\build_windows.ps1

=== Flutter Windows build - quick guide ===
This script will:

  1. Verify Flutter is on PATH and Visual Studio C++ (MSVC) is available for desktop builds.
  2. Allow Windows to create symlinks (Developer Mode or an elevated terminal).
  3. Run flutter pub get when dependencies look stale (use -InstallDeps to always refresh).
  4. Run flutter build windows with your selected -Mode and -ApiBaseUrl.

If something fails: run .\build_windows.ps1 -Help for all options; check IDE setup with: flutter doctor -v

[step] Prerequisites: Flutter found at C:\Users\babak\Development\flutter\bin\flutter.bat
Run 'flutter doctor -v' if desktop toolchains look wrong.
[step] Visual Studio C++ toolchain detected (PATH or vswhere).

Repo root: C:\Users\babak\Desktop\backup\hesabixarc
Project path: C:\Users\babak\Desktop\backup\hesabixarc\hesabixUI\hesabix_ui
Mode: release
API Base URL: https://hsxn.hesabix.ir

[step] Flutter pub/storage mirrors (deploy.sh defaults unless overridden):
PUB_HOSTED_URL=https://f.mirror.hesabix.ir/pub
FLUTTER_STORAGE_BASE_URL=https://f.mirror.hesabix.ir/gcs
Override with env vars or -PubHostedUrl / -FlutterStorageBaseUrl if needed.

[step] Checking symlink support (required for many Flutter plugins)...
Symlink check passed.
[info] Skipping flutter pub get (package_config.json is newer than pubspec.yaml / pubspec.lock).
Use -InstallDeps to always run flutter pub get before build.

Build configuration:
Mode: release
API base URL: https://hsxn.hesabix.ir
Expected EXE: hesabix_ui.exe

==========================================
Building Flutter for Windows...

Command: flutter build windows --release --dart-define=API_BASE_URL=https://hsxn.hesabix.ir

Flutter assets will be downloaded from https://f.mirror.hesabix.ir/gcs. Make sure you trust this source!
CMake Error at flutter/ephemeral/.plugin_symlinks/printing/windows/DownloadProject.cmake:179 (message):
Build step for pdfium failed: 1
Call Stack (most recent call first):
flutter/ephemeral/.plugin_symlinks/printing/windows/CMakeLists.txt:37 (download_project)

Building Windows application... 96.8s
Unable to generate build files

[error] Build failed.
Run: flutter doctor -v ... and confirm Windows (desktop) is supported; fix MSVC or SDK warnings shown there.
PS C:\Users\babak\Desktop\backup\hesabixarc\hesabixUI\hesabix_ui>

PS C:\Users\babak\Desktop\backup\hesabixarc> .\build_windows.ps1 === Flutter Windows build - quick guide === This script will: 1) Verify Flutter is on PATH and Visual Studio C++ (MSVC) is available for desktop builds. 2) Allow Windows to create symlinks (Developer Mode or an elevated terminal). 3) Run flutter pub get when dependencies look stale (use -InstallDeps to always refresh). 4) Run flutter build windows with your selected -Mode and -ApiBaseUrl. If something fails: run .\build_windows.ps1 -Help for all options; check IDE setup with: flutter doctor -v =========================================== [step] Prerequisites: Flutter found at C:\Users\babak\Development\flutter\bin\flutter.bat Run 'flutter doctor -v' if desktop toolchains look wrong. [step] Visual Studio C++ toolchain detected (PATH or vswhere). Repo root: C:\Users\babak\Desktop\backup\hesabixarc Project path: C:\Users\babak\Desktop\backup\hesabixarc\hesabixUI\hesabix_ui Mode: release API Base URL: https://hsxn.hesabix.ir [step] Flutter pub/storage mirrors (deploy.sh defaults unless overridden): PUB_HOSTED_URL=https://f.mirror.hesabix.ir/pub FLUTTER_STORAGE_BASE_URL=https://f.mirror.hesabix.ir/gcs Override with env vars or -PubHostedUrl / -FlutterStorageBaseUrl if needed. [step] Checking symlink support (required for many Flutter plugins)... Symlink check passed. [info] Skipping flutter pub get (package_config.json is newer than pubspec.yaml / pubspec.lock). Use -InstallDeps to always run flutter pub get before build. Build configuration: Mode: release API base URL: https://hsxn.hesabix.ir Expected EXE: hesabix_ui.exe ========================================== Building Flutter for Windows... ========================================== Command: flutter build windows --release --dart-define=API_BASE_URL=https://hsxn.hesabix.ir Flutter assets will be downloaded from https://f.mirror.hesabix.ir/gcs. Make sure you trust this source! CMake Error at flutter/ephemeral/.plugin_symlinks/printing/windows/DownloadProject.cmake:179 (message): Build step for pdfium failed: 1 Call Stack (most recent call first): flutter/ephemeral/.plugin_symlinks/printing/windows/CMakeLists.txt:37 (download_project) Building Windows application... 96.8s Unable to generate build files [error] Build failed. Run: flutter doctor -v ... and confirm Windows (desktop) is supported; fix MSVC or SDK warnings shown there. PS C:\Users\babak\Desktop\backup\hesabixarc\hesabixUI\hesabix_ui>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hesabix/arc#2
No description provided.