Closed AJ-Williams1 closed 2 years ago
@cmaughan - any thoughts on this?
I'm hitting the same problem when building on NixOS. Did you find a workaround @AJ-Williams1?
From what I can see we don't have any places in our code that hard-code /usr/lib; it looks like these are all in external projects that we consume. So to fix this I guess we would have to patch them or add scripts to move things around...
Just tried to build on OpenSUSE and got same error.
Likely to be fixed in https://github.com/sonic-pi-net/sonic-pi/pull/2833.
We have improved our build process - especially for Linux - in addition to a complete overhaul of how we boot the system. Therefore, please feel free to re-open if this is still an issue with the recently released v4 of Sonic Pi - https://github.com/sonic-pi-net/sonic-pi/releases
I am trying to build sonic pi from source on linux (gentoo, to be exact). Running
linux-prebuild.sh
fails with this error:I know that this is because gentoo uses
lib64
as the LIBDIR, rather than justlib
. As I understand it, this is exactly the problem theCMAKE_INSTALL_LIBDIR
variable was made to solve. Using it rather than hard-coding things like/usr/lib
would, I believe, fix this. I could just change it all by hand (there are quite a few places where this shows up), but I think this might be a good upstream addition. If I am wrong about any of this, or you think this is too niche to be worth it, please let me know.