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

Missing entry method in VST2 plugin #48

Closed
sc3sc3 opened this issue Nov 12, 2021 · 15 comments
Closed

Missing entry method in VST2 plugin #48

sc3sc3 opened this issue Nov 12, 2021 · 15 comments

Comments

@sc3sc3
Copy link

sc3sc3 commented Nov 12, 2021

Since awhile I cannot load the vst files anymore, they don't appear in Ardour nor in Bitwig.

Ardour info scanning:
_[Info]: Scanning: /home/sn/.vst/CardinalFX.vst/CardinalFX.so
[ERROR]: Missing entry method in VST2 plugin '/home/sn/.vst/CardinalFX.vst/CardinalFX.so'
[WARNING]: Cannot open VST2 module '/home/sn/.vst/CardinalFX.vst/CardinalFX.so'
Scan Failed.

[Info]: Scanning: /home/sn/.vst/CardinalSynth.vst/CardinalSynth.so
[ERROR]: Missing entry method in VST2 plugin '/home/sn/.vst/CardinalSynth.vst/CardinalSynth.so'
[WARNING]: Cannot open VST2 module '/home/sn/.vst/CardinalSynth.vst/CardinalSynth.so'
Scan Failed.

[Info]: Scanning: /home/sn/.vst/Cardinal.vst/Cardinal.so
[WARNING]: Cannot open VST2 module '/home/sn/.vst/Cardinal.vst/Cardinal.so'
Scan Failed._

If I remember correctly this started happening around the time Cardinal got renamed to CardinalFX

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 12, 2021

Also vst3 and lv2 are not recognized by Ardour.

I'm on UbuntuStudio LTS 20.04

@falkTX
Copy link
Contributor

falkTX commented Nov 12, 2021

delete those files and do a full rebuild. this is 99% sure an issue with your build or setup.

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 12, 2021

I haven't been building the plugins myself, I have always used Github builds, provided under the Actions tab.

@falkTX
Copy link
Contributor

falkTX commented Nov 12, 2021

Oh, interesting. I havent tried those in a while. Nevermind my last comment then, obviously invalid.

One thing that I did change was bumping from Ubuntu 18.04 base to 20.04 base.
But since you run 20.04 yourself, this should not be the problem.
So, dont know what is going on yet. If you find something please post about it.

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

I got the project building succesfully, but at the end there is no bin folder.
What are the commands to build the actual vst, vst3, lv2 files?
Thanks

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

Apparently I do get an error:

Compiling src/ApplicationPrivateData.cpp
In file included from src/ApplicationPrivateData.cpp:20:
src/pugl.hpp:44:10: fatal error: pugl-upstream/include/pugl/pugl.h: No such file or directory
44 | #include "pugl-upstream/include/pugl/pugl.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
connected.
make[1]: *** [Makefile:169: ../build/dgl/ApplicationPrivateData.cpp.o] Error 1

@falkTX
Copy link
Contributor

falkTX commented Nov 13, 2021

you need submodules

@falkTX
Copy link
Contributor

falkTX commented Nov 13, 2021

anyhow I think I found the reason why.
latest commit about CardinalFX should fix it, but you need to remove Cardinal.vst which does nothing and is not possible in VST2

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

concerning the submodules, I get the pugl issue with the following

git clone https://github.com/DISTRHO/Cardinal.git
cd Cardinal
git submodule init
git submodule sync
git submodule update
make WITH_LTO=true -j6

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

I tried the latest Actions build, and unfortunately the issue is still there: Missing entry method in VST2 plugin

@falkTX
Copy link
Contributor

falkTX commented Nov 13, 2021

Yes I can reproduce that here, investigating.
Also, LTO takes a really long time, I dont recommend it for testing builds yourself.
For submodules you need to apply it recursively, aka git submodule update --init --recursive

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

Thank you, I got the project fully built now.
Weirdly, my own built CardinalFX/CardinalSynth vst2 plugins aren't recognized either.

The standalone applications Cardinal, CardinalFX and CardinalSynth in bin folder work correctly.

@falkTX
Copy link
Contributor

falkTX commented Nov 13, 2021

It is likely related to LTO.
Since you had a partial LTO build, the compiler likely tried to do a full LTO build in the end. Try make clean and building again without LTO.

@sc3sc3
Copy link
Author

sc3sc3 commented Nov 13, 2021

With clean build:

  • lv2 works correctly in Ardour
  • vst2 is not seen in Ardour, nor Bitwig
  • vst3 loads but does not contain any modules to use

@falkTX
Copy link
Contributor

falkTX commented Nov 14, 2021

Issue was the -fwhole-program that doesnt work with GCC for plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants