-
I've wanted to try out arrayfire to speed up some calculations (in rust, not cpp), but after installing it to
and
but an error occurs when trying out something simple:
namely
How can I solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
It seems like path issues or broken installation. Please show the files under $AF_PATH and $AF_PATH/lib64 |
Beta Was this translation helpful? Give feedback.
-
Sure! the
Im using MacOS 10.15.6 btw! |
Beta Was this translation helpful? Give feedback.
-
I now see that set the environmental variable to |
Beta Was this translation helpful? Give feedback.
-
I just had similar linking problems on Linux and had to run |
Beta Was this translation helpful? Give feedback.
-
I think we do mention about approaches in our tutorial - http://arrayfire.org/docs/installing.htm @pvdklei If it is OSX, I would expect it to be @TheDan64 |
Beta Was this translation helpful? Give feedback.
-
Yes, targeting Linux. I just followed the instructions in the README under |
Beta Was this translation helpful? Give feedback.
-
@TheDan64 I do experience that issue sometimes. If you set the environment variables after running cargo build/test once, the linking errors don't go away. I have had to run cargo clean and then it will run smoothly. I believe cargo run's |
Beta Was this translation helpful? Give feedback.
-
I think that was my issue then. Perhaps it's worth mentioning in the readme? |
Beta Was this translation helpful? Give feedback.
-
@TheDan64 Sure, will add it before closing this issue. |
Beta Was this translation helpful? Give feedback.
-
@9prady9 I set the env variables using the |
Beta Was this translation helpful? Give feedback.
@9prady9 I set the env variables using the
.bash_profile
file. Butcargo clean
did the job so no worries! Thanks!