-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Hi! I'm new in ffi using Rust programs, so my question may be elementary.
While compiling the example code i've got an error
@error: failed to run custom build command for openblas-src v0.10.11
Caused by:
process didn't exit successfully: F:\RUST\RustProjects_\BLAS_example\target\release\build\openblas-src-309e4a8469626958\build-script-build (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=OPENBLAS_TARGET
cargo:rerun-if-env-changed=OPENBLAS_CC
cargo:rerun-if-env-changed=OPENBLAS_HOSTCC
cargo:rerun-if-env-changed=OPENBLAS_FC
cargo:rerun-if-env-changed=OPENBLAS_RANLIB
cargo:warning=OpenBLAS is built as a shared library. You need to set LD_LIBRARY_PATH=F:\RUST\RustProjects_\BLAS_example\target\release\build\openblas-src-27176a6223dcac25\out\OpenBLAS-0.3.28@
system: Win11
[dependencies]
blas = "0.22.0"
blas-src = { version = "0.9.0", features = ["openblas"] }
code:
just example code from blas page on github.
installed toolchains
stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc
active toolchain
stable-x86_64-pc-windows-gnu (default)
rustc 1.83.0 (90b35a623 2024-11-26)
i realised that i didn't installed properly OpenBLAS so i did as in the manual is written but while running command @vcpkg install openblas --triplet x64-windows@ got error @cmake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: F:/LAPACK/vcpkg-master/downloads/tools/ninja/1.12.1-windows/ninja.exe -v
Working Directory: F:/LAPACK/vcpkg-master/buildtrees/openblas/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
F:\LAPACK\vcpkg-master\buildtrees\openblas\config-x64-windows-dbg-CMakeCache.txt.log
F:\LAPACK\vcpkg-master\buildtrees\openblas\config-x64-windows-rel-CMakeCache.txt.log
F:\LAPACK\vcpkg-master\buildtrees\openblas\config-x64-windows-dbg-CMakeConfigureLog.yaml.log
F:\LAPACK\vcpkg-master\buildtrees\openblas\config-x64-windows-rel-CMakeConfigureLog.yaml.log
F:\LAPACK\vcpkg-master\buildtrees\openblas\config-x64-windows-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
ports/openblas/portfile.cmake:55 (vcpkg_cmake_configure)
scripts/ports.cmake:196 (include)@
any help would be appreciated