Open ekrich opened 1 month ago
Some configuration info. OS 13.6.7 arm64 M1 XCode 14.2
% cc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
For context I am trying to create bindings for LAPACK that are cross platform. I would prefer the LAPACKE interfaces thus why I am here. This is for Scala Native. https://github.com/scala-native/scala-native I created simple bindings for CBLAS that can be found here for reference. https://github.com/ekrich/sblas
I did the install using sudo
which put the library in /usr/local/lib
and then my project worked. Note that the install also put cmake
and pkgconfig
directories into the lib
dir. Doesn't seem like it should do that.
Thanks for this project. I had some difficulty getting started.
Once I create the directories I get the following:
I tried the following found on SOF:
Then this seemed to help.
Then when I tried to build it worked. I don't know much about
cmake
so maybe this is obvious to others or just omitted from the instructions.Next I tried to install and got the following which I guess would require
sudo
:I tried linking with
-L/path/to/lib
where they were built since I didn't want it to go into/usr/local/lib
and got the following:Next I tried this maybe to help with the
@rpath
issue.I again tried install with no luck - was thinking that maybe the libs would go in
~/.local
but not sure.Sorry, if I don't know a ton about this but thought it might be helpful to share my experience - this seems like this is an extremely useful project. Too bad Apple doesn't just do this for us. Not being cross platform at least with LAPACKE is not great and using LAPACKE is much nicer than LAPACK.