Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Trying to build on Windows with OpenBLAS feature and getting "Error: could not find native static library 'ggml-blas', perhaps an -L flag is missing?" #235

@bbales

Description

@bbales

Version: whisper-rs 0.14.3
Platform: Windows with OpenBLAS static installed via vcpkg

When running cargo build, I get:

error: could not find native static library `ggml-blas`, perhaps an -L flag is missing?

First off, thanks for your efforts on this package. I got things up and running quickly on CPU, and I'm running into some issues getting it to build with OpenBLAS support.

In my Cargo.toml, I have:

[dependencies]
whisper-rs = { version = "0.14.3", features = ["openblas"] }

My environment:

# Tried with and without RUSTFLAGS
RUSTFLAGS=-C target-feature=+crt-static -L native=C:\vcpkg\installed\x64-windows-static\lib

# This contains a lib folder containing openblas.lib
OPENBLAS_PATH=C:\vcpkg\installed\x64-windows-static

# This contains cblas.h and openblas_config.h headers
OPENBLAS_INCLUDE_DIRS=C:\vcpkg\installed\x64-windows-static\include\openblas

The following files exist in those dirs:

C:\vcpkg\installed\x64-windows-static\lib\openblas.lib ✓
C:\vcpkg\installed\x64-windows-static\include\openblas\cblas.h ✓
C:\vcpkg\installed\x64-windows-static\include\openblas\openblas_config.h ✓

Any idea why I might be getting this error?
Am I missing some configuration?
Should I try using another method to provide these libraries?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions