blas-lapack-rs / openblas-src

Source of BLAS and LAPACK via OpenBLAS
Other
78 stars 48 forks source link

Non-vcpkg builds are not supported on Windows. Even tho I've installed openblas via vcpkg #121

Open ll01 opened 2 months ago

ll01 commented 2 months ago

Hi im getting Non-vcpkg builds are not supported on Windows. and as you can see from the logs below, vcpkg install openblas --triplet x64-windows worked fine. I'm not quite sure what I'm doing wrong.

The following packages are already installed:
    openblas:x64-windows@0.3.27#1
openblas:x64-windows is already installed
Total install time: 142 us
openblas provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(OpenBLAS CONFIG REQUIRED)
  target_link_libraries(main PRIVATE OpenBLAS::OpenBLAS)

openblas provides pkg-config modules:

  # OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version
  openblas

PS C:\Users\enti2\programming\trading_bot\pair_finder> cargo build
   Compiling openblas-src v0.10.9
error: failed to run custom build command for `openblas-src v0.10.9`

Caused by:
  process didn't exit successfully: `C:\Users\enti2\programming\trading_bot\pair_finder\target\debug\build\openblas-src-d4120acb98c0a100\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at C:\Users\enti2\.cargo\registry\src\index.crates.io-6f17d22bba15001f\openblas-src-0.10.9\build.rs:103:13:
  Non-vcpkg builds are not supported on Windows. You must use the 'system' feature.
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Dirreke commented 4 days ago

Have you tried cargo build --features=system ?