-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble compiling on NixOS #164
Comments
Oh wow, that is a lot of errors! This is strange, because it seems to be having trouble linking to the JUCE library code as though the JUCE code was never compiled, which makes no sense, since the output also shows that the JUCE library code was in fact compiled. I wonder if there's something specific about the way NixOS compiles it that would break the JUCE module linking system... Would you have any insight as to what the differences are between compiling on other Linux distros (I use Ubuntu for the CI builds) and NixOS? |
FWIW, an older version compiles fine. As to the differences between NixOS and other distros: there are a few (but I'm not the best person to list them). |
Hmm, I wonder if the older version was before I switched to the CMake compilation pipeline? Also was your build based on the |
The older version was indeed before cmake. |
Ah okay. So I've made a branch to work on this (see While I'm fine with leaving the Projucer interface in the repo to help with making packaged builds like this, I'm not sure it's worth the effort to continually maintan both the Projucer and CMake build systems. I'll have to think about this a little bit more, but I'm wondering if you're comfortable with using the Projucer, in case you would need to make changes to the Projucer build system in the future? |
Thanks for making this! It would be nice to get the cmake version working on nix. |
Okay, glad that the building step works. Which step in the build is the one that tries to write to home? For CMake builds, is it possible to build some of the JUCE examples plugins on NixOS? |
I was hoping you knew!
I'm sure it is. |
Haha, no worries. Would it be possible to share the terminal output to see where it gets stuck?
Here are instructions for building the JUCE examples with CMake. |
Here's the build error: https://gist.github.com/magnetophon/b228642642b4ec2f6adb2f8fede2488a I'll go build the examples now. |
The examples build and run just fine. |
Man, I'm pretty stumped on this one... I don't really get why the examples would build but the plugin won't. I have a couple ideas, but I feel like the best bet might be to find someone with a little bit more knowledge of this system. Basically, I'm thinking that NixOS might not like that I compile the plugin dependencies as a static lib and then link the main plugin code to that lib (I do this so that CMake doesn't have to rebuild the JUCE modules for every plugin target). The counter-argument is that the linker errors were only occuring for JUCE code, any not for any of the other code in that library. I wonder if the fix might be as simple as setting different target properties for the static lib? |
The only suspicious lines I can find are
but I am not sure if thats the issue. |
Fixed in #215 |
Describe the bug
When I try to compile on NixOS, I get a lot of ld errors:
https://gist.github.com/magnetophon/24456c080ec3402cff26b5bca2353207
The text was updated successfully, but these errors were encountered: