Skip to content

构建鸿蒙错误:error: cross toolchain not found! #7382

@molihuan

Description

@molihuan

Xmake 版本

xmake v3.0.7+HEAD.77d94ad9d

操作系统版本和架构

版本 Windows 11 专业版 版本号 25H2 安装日期 ‎2025/‎11/‎13 操作系统版本 26200.7840 体验 Windows 功能体验包 1000.26100.291.0

描述问题

报错日志:

xmake f -p harmony
checking for architecture ... arm64-v8a
checking for Harmony SDK directory ... no
error: no any matched platform for this package(pcre2)!

xmake f -p harmony --sdk=C:/Users/moli/AppData/Local/OpenHarmony/Sdk/20/native
checking for architecture ... arm64-v8a
error: cross toolchain not found!

期待的结果

可以正常编译

工程配置

任意

附加信息和错误日志

报错日志:

xmake f -p harmony
checking for architecture ... arm64-v8a
checking for Harmony SDK directory ... no
error: no any matched platform for this package(pcre2)!

xmake f -p harmony --sdk=C:/Users/moli/AppData/Local/OpenHarmony/Sdk/20/native
checking for architecture ... arm64-v8a
error: cross toolchain not found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions