#1040·makepad

cross-compiled exe file cannot find resources on windows

Author: dai1975Created Apr 12, 2026Updated Jun 16, 2026

Using latest(2026-04-12) dev branch:

  1. Build on WSL by cargo build --target x86_64-pc-windows-gnu --release
  2. copy output exe to windows folder
  3. run exe on windows

No text is rendered and console logs:

WARNING: encountered empty font family

From quick survey of the source codes, the font path is set as full path at compile time and it cannot found on windows. It is better that it is enabled to search font(or resource) files from related path or to be able to set package_root at runtime.