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

[WIP] Build FLTK for ZynAddSubFX support #1

Closed
wants to merge 2 commits into from

Conversation

PhysSong
Copy link
Contributor

@PhysSong PhysSong commented May 5, 2019

@flathubbot
Copy link

Started test build 3086

@flathubbot
Copy link

Build 3086 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/2949/io.lmms.LMMS.flatpakref

@hfiguiere
Copy link
Collaborator

You still have this marked as [WIP]. Anything you'd like to add?

It builds properly and the ZynAddSubFX is there.
However there UI never show when I click on "Show UI"

@PhysSong
Copy link
Contributor Author

PhysSong commented May 15, 2019

@hfiguiere Did you get some terminal output like this after clicking Show UI?

Could not connect to local server.
Error while writing.

@hfiguiere
Copy link
Collaborator

yes I'm getting these.

@PhysSong
Copy link
Contributor Author

PhysSong commented May 15, 2019

As you can see in https://github.com/LMMS/lmms/blob/ec64de072352c17a025e073114aaaea6ba773822/src/core/RemotePlugin.cpp#L102-L104, LMMS uses local sockets on the temporary directory. I suspect there were some permission issues with the sockets.

	m_socketFile = QDir::tempPath() + QDir::separator() +
						QUuid::createUuid().toString();
	const char * path = m_socketFile.toUtf8().constData();

Edit: The assumption was correct.

@flathubbot
Copy link

Started test build 3415

@flathubbot
Copy link

Build 3415 failed

@flathubbot
Copy link

Started test build 3416

@flathubbot
Copy link

Build 3416 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/3263/io.lmms.LMMS.flatpakref

@hfiguiere
Copy link
Collaborator

still doesn't work here.

@hfiguiere
Copy link
Collaborator

It fails because

bind(33, {sa_family=AF_UNIX, sun_path="/var/tmp/{9879ab2c-c2c8-4a1b-aa28-fa3b5f6276a0}"}, 110) = -1 EROFS (Read-only file system)

@hfiguiere
Copy link
Collaborator

hfiguiere commented Jun 1, 2019

Solution is to add "--filesystem=/var/tmp" (since this is what TMPDIR is set to) instead of changing to "--filesystem=host".

@PhysSong
Copy link
Contributor Author

PhysSong commented Jun 2, 2019

Solution is to add "--filesystem=/var/tmp" (since this is what TMPDIR is set to) instead of changing to "--filesystem=host".

Okay. BTW, why did you set TMPDIR to /var/tmp? Are there any issues with default /tmp?

@hfiguiere
Copy link
Collaborator

Not setting TMPDIR make the additional filesystem permission unneeded.

That is also a reasonable solution.

@hfiguiere hfiguiere closed this in 1e08e6f Jun 9, 2019
@hfiguiere
Copy link
Collaborator

Cherry-picked the fltk patch to master, added the proper change for plugin socket to work and rolled all out for the 1.2.0 release that should be building right now.

Thanks you so much.

@PhysSong PhysSong deleted the fltk branch June 9, 2019 14:57
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

Successfully merging this pull request may close these issues.

3 participants