OndrejSladky / kmercamel

KmerCamel🐫 provides implementations of several algorithms for efficiently representing a set of k-mers as a masked superstring.
MIT License
11 stars 2 forks source link

Compilation doesn't work on OS X with M1 because of different brew paths #62

Closed karel-brinda closed 8 months ago

karel-brinda commented 8 months ago

on macos brew install glpk is not sufficient

for include, I had to add this manually: -I /opt/homebrew/Cellar/glpk/5.0/include -L /opt/homebrew/Cellar/glpk/5.0/lib

karel-brinda commented 8 months ago

I think this is the issue: https://github.com/Homebrew/brew/issues/13481#issuecomment-1207203483

Also mentioned here: https://earthly.dev/blog/homebrew-on-m1/

karel-brinda commented 8 months ago

It seems macOS has no way to globally add a directory in the library search path, and so there is way besides explicitly looking in /opt/homebrew/lib (well, except pkg-config maybe) to find Homebrew libs. I blame Apple for this.

So the paths need to be added manually.