Closed DegradedMind closed 3 years ago
Thanks a lot for moving. Now looking at it...
What is the ZynFusionDir
in your CMakeCache.txt
in the zynaddsubfx
folder? It should really end on /package
, like the README described - otherwise it will not work.
Sorry again for late reply.
I am unable to find CMakeCache.txt
anywhere. The build/src
has a zyn-config.h
file where there is a line:
constexpr const char* fusion_dir = "~/lmms-zyn-fusion-test/mruby-zest-build/package";
The way i compile zynaddsubfx is:
mkdir -p build
cd build
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"/usr/local/lib/pkgconfig" cmake -DZynFusionDir="~/lmms-zyn-fusion-test/mruby- zest-build/package" -DGuiModule=zest ..
make
Is this incorrect?
The error i get when trying to run the compiled zynaddsubfx binary is:
Warning: CMake's ZynFusionDir does not contain a"zest" binary - ignoring.zynaddsubfx: Failed to launch Zyn-Fusion: No such file or directory
I'm not sure if you can really use "~", as this is a bash extension. Maybe try the complete /home/.../
path?
Also, what's in ~/lmms-zyn-fusion-test/mruby-zest-build/package
? Is there a zest
in there?
By the way, there is a "space" in your path if I edit your message, but I guess that's just a formatting issue on github.
@JohannesLorenz, yes there is zest
file in there. i'll try absolute path.
@JohannesLorenz, Success! You were right. Indeed you need to specify the absolute path. Now I can run the compiled Zyn-Fusion binary.
Cool! Does the new zyn work inside LMMS for you, too?
@JohannesLorenz, running ./lmms
with LMMS_PLUGIN_DIR=<path to where libzynaddsubfx_spa.so is>
prepended made no result. There was still the old zynaddsubfx
in the native instrument rack.
I can run Zyn-Fusion inside LMMS only if I swap the old /build/plugins/libzynaddsubfx.so
with /src/Output/libzynaddsubfx_spa.so
, but preview and drag-drop from "My Presets" doesn't work. The plugin itself works great so far.
You need to prepend it (it's an environment variable). Does it work then?
Is this the correct way to run?
LMMS_PLUGIN_DIR="/home/user/lmms-zyn-fusion-test/zynaddsubfx/build/src/Output/libzynaddsubfx_spa.so" ./lmms
This doesn't seem to work.
@DegradedMind I don't think so. It says plugin dir, so it expects a directory (the one where the .so
file is in).
@JohannesLorenz, it works! there are now 2 versions of zynaddsubfx (old and new). Drag and dropping the presets open the old version, and if i drag and drop them into the new version it causes LMMS to freeze. Any way to fix that? If not, i am still very much happy and grateful for your help and patience. i can select the presets from inside the Zyn-Fusion browser.
So, previewing and drag-dropping xmz-files (only this file type) works for me and should work for you.
What exactly do you mean with "presets"?
@JohannesLorenz, the presets from inside the LMMS browser that's on the left. The extension of the files are .xiz
.
Oh, wait. i was trying to use the presets with .xiz
extension. They don't work, but .xmz
do.
@DegradedMind It's true that the plugin currently only supports xmz. However, there should really be no crash with xiz, it should simply not load them.
I'd say let's close this issue, since the install worked. If you can describe exactly how to reproduce a crash, it would be nice if you could open it in a new issue. Would that be OK?
@JohannesLorenz, yes, this issue should be closed.
The crash happens only if i drag and drop .xiz
files here:
I don't think opening an issue is really necessary.
No problem, this is very easy to fix. Tracked as #6. I'll do that after I finished something else. Thanks for the report!
Hi. i just want to be able to use LMMS with Zyn-Fusion natively, but I am not experienced with Linux and computers in general so i've encountered some issues with the compilation. Can anyone help me?
Running
./build.sh clang
gives me:and running
./build.sh gcc
:When i try the second method Compile + Install (where i need to compile each component individually): I compiled zynaddsubfx but it wouldn't run because it couldn't find Zyn-Fusion or something. Maybe I didn't properly specify
-DZynFusionDir=<path to where fusion is>/package
but i'm not sure where that is. I just put the path tomruby-zest-build
because it had/package
folder after i compiled it.