Skip to content

Can't run project with cargo run on OSX #97

@shusson

Description

@shusson

Platform: macOS 10.12.2
Cargo: cargo 0.15.0-nightly (298a012 2016-12-20)
Rust: rustc 1.14.0 (e8a012324 2016-12-16)

I've set up a rust project using crates but I'm getting no backends if I use cargo run, if I run the executable directly from the shell, I get expected results.

cargo run --example unified
   Compiling arrayfire v3.4.1 (file:///Users/shane/src/rust/arrayfire-rust)
    Finished debug [unoptimized + debuginfo] target(s) in 0.27 secs
     Running `target/debug/examples/unified`
There are 0 available backends

cargo build --example unified
    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs

./target/debug/examples/unified
There are 2 available backends
Evaluating CPU Backend...
There are 1 CPU compute devices
...

I've added a stackoverflow question with similar info http://stackoverflow.com/questions/41602744/how-to-configure-arrayfire-rust-to-use-cargo-run

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions