On Sun, Jun 28, 2020 at 01:03:48PM +0100, Stuart Henderson wrote:
> On 2020/06/28 11:01, Kinichiro Inoguchi wrote:
> > On Sat, Jun 27, 2020 at 04:55:47PM +0100, Stuart Henderson wrote:
> > > On 2020/06/27 15:37, Kinichiro Inoguchi wrote:
> > > > Currently, lmms is disabling the ZynAddSubFX plugin.
> > > > This diff enables it.
> > > > 
> > > > - remove patches/patch-plugins_CMakeLists_txt to build zynaddsubfx
> > > > - add required libraries to WANTLIB and LIB_DEPENDS
> > > > - bump up REVISION to 1
> > > > 
> > > >   In this diff, I just delete all lines in patch-plugins_CMakeLists_txt.
> > > >   I would like to 'cvs remove' it if this diff is ok.
> > > > 
> > > > I had confirmed that build and install on my OpenBSD 6.7 (amd64) 
> > > > succeeded.
> > > > And I could play ZynAddSubFX within lmms.
> > > > 
> > > > ok?
> > > 
> > > Doesn't seem to work here (I couldn't get it to work when I tried
> > > before when I updated the port to 1.2.0).
> > > 
> > > I don't see ZynAddSubFX show up in the plugins list in lmms.
> > > And I see this on the console when starting lmms,
> > > 
> > > lmms:/usr/local/lib/lmms/libZynAddSubFxCore.so: lmms : WARNING: 
> > > symbol(_ZTI6Effect) size mismatch, relink your program
> > > lmms:/usr/local/lib/lmms/libZynAddSubFxCore.so: lmms : WARNING: 
> > > symbol(_ZTV6Effect) size mismatch, relink your program
> > > "LMMS plugin /usr/local/lib/lmms/libZynAddSubFxCore.so does not have a 
> > > plugin descriptor named ZynAddSubFxCore_plugin_descriptor!"
> > 
> > Thanks for checking this.
> > 
> > I'm getting the same console messages.
> > ============================================================
> > $ lmms
> > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to 
> > '/tmp/runtime-inoguchi'
> > lmms:/usr/local/lib/lmms/libZynAddSubFxCore.so: lmms : WARNING: 
> > symbol(_ZTI6Effect) size mismatch, relink your program
> > lmms:/usr/local/lib/lmms/libZynAddSubFxCore.so: lmms : WARNING: 
> > symbol(_ZTV6Effect) size mismatch, relink your program
> > "LMMS plugin /usr/local/lib/lmms/libZynAddSubFxCore.so does not have a 
> > plugin descriptor named ZynAddSubFxCore_plugin_descriptor!"
> > ============================================================
> > But I can see ZynAddSubFX in "Instrument Plugins" and "My Preset".
> > 
> > I will attach my "make port-lib-depends-check" and "make config" below.
> > difference seems:
> > - I'm using lo.1 (recently I re-added liblo-0.31 to ports)
> > - Mine showed up patch apply section (intentionally omitted ?)
> > - I have no cmake warning (I installed 3.16.2)
> > - fluidsynth 1.1.6 vs 2.1.2 (I'm using pkg_add on my OpenBSD 6.7,
> >   and the latest was fluidsynth-1.1.6p5)
> > 
> > Can I try fluidsynth 2.1.2 to check if this is the problem ?
> > In that case, could you tell me where I can obtain 2.1.2, please.
> 
> Apologies, I had forgotten about the local update to fluidsynth (I didn't
> successfully get sndio working so I had abandoned it, but still had it
> installed)..
> 
> My liblo version is from testing your submission before it was committed,
> I think there was no change other than the version number.
> 
> Replacing liblo and fluidsynth with the versions from current packages
> doesn't help. I only see Sine Oscillator (x4) and White Noise Source in
> instrument plugins.
> 
> The missing linkages in port-lib-depends-check are still there:
> 
> lmms-1.2.0p1(audio/lmms):
> Extra:  fftw3.7 lo.1 mxml.0
> 
> "Extra" means that the libraries are listed in WANTLIB but are not used
> by any of the programs/libraries in the package, this might mean that
> static libraries are used instead, but it's a bit suspicious.

Sorry, I misunderstood "Extra:".
And nothing seems to link those libraries.
I should remove them from WANTLIB next time.

> 
> Can you try updating your system? cmake 3.17 has been in the ports tree
> for a month, maybe it's related to that.
> 

Yes, sure.

And I had updated cmake to 3.17.2 from latest ports, and rebuild lmms.
Before rebuild, I had cleaned up my lmms installation and package,
with make uninstall, make clean, and make clean=[package plist dist].

After rebuild with cmake 3.17.2, zynaddsubfx is still working with lmms.

Latest cmake gives warning like
"CMake Deprecation Warning at CMakeLists.txt:11 (CMAKE_POLICY):",
but works fine and build was succeeded.
I can't tell why zynaddsubfx is not working on your environment...

Here is my build log.
https://github.com/kinichiro/zynaddsubfx/files/4842454/lmms-make.zip

Some screen shots for lmms with zynaddsubfx on my OpenBSD 6.7 (amd64).

Instrument Plugins:
https://user-images.githubusercontent.com/4927823/85950622-e5cff480-b998-11ea-8689-b41ea1195475.PNG

My Presets:
https://user-images.githubusercontent.com/4927823/85950692-42cbaa80-b999-11ea-8704-1be8d0044744.PNG

Loading demos:
https://user-images.githubusercontent.com/4927823/85950716-76a6d000-b999-11ea-8b02-9ff2f0418f56.PNG

Kinichiro Inoguchi

Reply via email to