Skip to content
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

Plugins fail to run in Bitwig 5.2 on Ubuntu 24.04: undefined symbol deflateinit_ #856

Open
gaheldev opened this issue Aug 25, 2024 · 6 comments
Labels
Bug Reproduced bug. Enhancement This issue is about a new feature rather than a bug. Linux This issue is Linux-specific. Mental load Is related to API usability.

Comments

@gaheldev
Copy link

Hi,

I was having some trouble making my plugin work in Bitiwig, while it was running fine in Ardour and Carla. It was also the case with at least the example plugins Clipit and Distort. In all cases Bitwig gives the error undefined symbol deflateinit_ or undefined symbol deflateinit2_

I tried inner Pitch and it's running fine.

The solution was to add -lz to the lflags in the dub.json file.

@p0nce
Copy link
Collaborator

p0nce commented Aug 26, 2024

Hello, thanks! This sounds like a more modern ldc2 phobos lib requiring zlib, annoying.
You can probably workaround that using LDC 1.28

@gaheldev
Copy link
Author

Using the -lz solution would create issues when distributing the plugin?

@p0nce
Copy link
Collaborator

p0nce commented Aug 26, 2024

Probably not indeed. Hard to say.

But using a recent LDC will create issues with the libc version when distributing.
LDC 1.28.0 is warmly recommended for Linux distribution. (see: https://linuxmusicians.com/viewtopic.php?p=160822&sid=cf06c312589610a33e16ff5385fde109#p160822)

@p0nce
Copy link
Collaborator

p0nce commented Aug 26, 2024

Mmmm I don't exactly remember if it was Ubuntu that needed downgrade or LDC for that issue. I think you need both ubuntu-20.04 (or equivalent) and a LDC around 1.28 for most diverse distribution. This should probably be documented somewhere.

@gaheldev
Copy link
Author

gaheldev commented Aug 26, 2024

Well, because of glibc you'd need the oldest distribution you want to support I suppose. Thanks for the heads up with LDC version 👍

@p0nce
Copy link
Collaborator

p0nce commented Aug 26, 2024

Hello, reopening! I'd like to:

  • add this flag if I'm sure if doesn't restrict compatibility
  • document the recommended Linux build as done above

@p0nce p0nce added Bug Reproduced bug. Enhancement This issue is about a new feature rather than a bug. Linux This issue is Linux-specific. labels Aug 26, 2024
@p0nce p0nce reopened this Nov 2, 2024
@p0nce p0nce added the Mental load Is related to API usability. label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Reproduced bug. Enhancement This issue is about a new feature rather than a bug. Linux This issue is Linux-specific. Mental load Is related to API usability.
Projects
None yet
Development

No branches or pull requests

2 participants