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
zynaddsubfx: use zyn-fusion as default gui module #91674
Conversation
5d6dc41
to
337d647
Compare
51b7641
to
b34b338
Compare
Formatted with |
I get
I have |
@Sohalt I'm also using an AMD graphics card (Radeon RX 590) and I haven't run into this issue with Zyn-Fusion, but I've seen this issue before on blender. I fixed it by using the same nixpkgs for NixOS that I used to build blender. I assume there are some ABI incompatibilities with AMD OpenGL drivers between different versions? I'm sure you would be able to get it to work if you used my NUR package instead: |
I was having issues running this with the zest ui under Ardour. The issue is that when using the zest ui, the ZynAddSubFx plugin does a I was able to resolve the issue by forcing postFixup = ''
rp=$(patchelf --print-rpath $out/lib/lv2/ZynAddSubFX.lv2/ZynAddSubFX_ui.so)
patchelf --set-rpath ${mruby-zest}:$rp $out/lib/lv2/ZynAddSubFX.lv2/ZynAddSubFX_ui.so
rp=$(patchelf --print-rpath $out/lib/vst/ZynAddSubFX.so)
patchelf --set-rpath ${mruby-zest}:$rp $out/lib/vst/ZynAddSubFX.so
''; |
Using this PR with When I add the directory of |
@Sorixelle & @Beskhue Hmm, that's strange. It dynamically links to libzest here: https://github.com/zynaddsubfx/zynaddsubfx/blob/3.0.5/src/Plugin/ZynAddSubFX/ZynAddSubFX-UI-Zest.cpp#L68-L72. But when I will try it out in Ardour to try to reproduce it. |
Ardour doesn't use the standalone binary, it just goes straight to the LV2 plugin. The LD_LIBRARY_PATH setup is only in the standalone binary.
Are you sure about that? I ran |
@Sorixelle Oh right, thanks I misread your comment. I think patching the rpath would be the best approach then. |
@Sorixelle I get:
|
@Beskhue I think that file is printing that because there are no load-time dynamically linked dependencies, but |
@MetaDark You're right. @Sorixelle's patch works, and the GUI loads without setting |
Ok I'll submit the patch. I was trying to remove EDIT: Oh right, it's because it looks for |
de9eb56
to
55b2f66
Compare
Thank you @Sorixelle & @Beskhue. Now it should properly load |
Builds and works wonderfully, both the standalone and the lv2. |
I've been using this to make some songs in Ardour, and I just love it. Could the people in this thread have another look and see if it works for them now? Maybe the maintainers could also have a look? |
Nice! I always wanted to try zyn-fusion, but unfortunately I'm not using nix on a desktop anymore, so I cannot test this patch. Could you remove me from the maintainers? |
55b2f66
to
d1a5f3d
Compare
@nico202 Just submitted an update that removes you as a maintainer |
@magnetophon It's working great for me. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
@magnetophon Sorry for the late reply. It works perfectly for me as well. |
It's working well for me as well. It'd be nice to get this merged. @SuperSandro2000 can you have a look? |
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 3 packages built:
|
d1a5f3d
to
eb94716
Compare
@SuperSandro2000 Thanks for reviewing this! I didn't resolve all of your comments, but does this look ok now? |
5439bcc
to
ef3a07e
Compare
- Added `guiModule` option that accepts "fltk", "ntk", "zest", or "off" - Split FLTK dependencies from NTK dependencies - Added support for building the FLTK gui - Added support for building the Zyn-Fusion (zest) gui - Added new derivation for the Zest UI framework (local to zynaddsubfx) It's not yet designed to be used outside of zynaddsubfx, but it may be in the future - Added flags for all optional features - Added & disabled `dssiSupport` by default - Disabled `lashSupport` by default Slows down startup looking for LASH server if not running - Added & enabled `portaudioSupport` by default Cross platform audio library that uses ALSA/JACK on Linux. Supports multiple audio streams without needing JACK. - Enabled tests - Removes nico202 as maintainer, as requested in code review
ef3a07e
to
8deca0d
Compare
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 3 packages built:
|
Thank you @SuperSandro2000! I really appreciate the review ❤️ |
Added
guiModule
option that accepts "fltk", "ntk", "zest", or "off"Split FLTK dependencies from NTK dependencies
Added support for building the FLTK gui
Added support for building the Zyn-Fusion (zest) gui
Added new derivation for the Zest UI framework (local to zynaddsubfx)
It's not yet designed to be used outside of zynaddsubfx, but it
may be in the future
Added flags for all optional features
Added & disabled
dssiSupport
by defaultDisabled
lashSupport
by defaultSlows down startup looking for LASH server if not running
Added & enabled
portaudioSupport
by defaultCross platform audio library that uses ALSA/JACK on Linux.
Supports multiple audio streams without needing JACK.
Enabled tests
Removes nico202 as maintainer, as requested in code review
Motivation for this change
Closes #90698
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)222.5M -> 223.1M