It is through such paths that all libraries and modules are located
On the side of the snap that should be connected to these slots all the plugins are declared so:
When I try to start I see an error, does not find the plugin XCB.
Connect to plug-ins go through without errors sudo snap connect bsp095project:qt5qml qtlibraries:qt5qml
I assume that I have incorrectly path, can anyone tell me where I could be wrong?
Not sure if this is related to any of the problems but can you please ensure you prefix those with $SNAP. The prefix-less syntax was used in the initial and old version of snapd and may be rejected at some time in the future.
At the moment I’m trying in a same way to take Qt libraries into a separate snap package.
The same situation, connect have, but the plugins did not find.
This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.
This is measured on the outside. I absolutely need the internal measurement. When you use nsenter as I described you will switch to a different mount namespace with different things mounted.
In fact, I have the same output like Blin.
Tell me, how do I understand when I write in snapkraft.yaml such a slot:
slots:
5libs:
content: 5libs0
interface: content
read:
- $SNAP/5.9.1/gcc_64/lib
This means that there will be a name for the 5libs slot that will access the $SNAP/5.9.1/gcc_64/lib path
And is it connected, then we like to get access to the files that are stored in … /lib?
Then on the side of the snap package that you want to access this slot, you create plug-ins
And if there is a directory named 5libs and the connection is normal, then we will access the files from the slot $SNAP/5.9.1/gcc_64/lib
I understand correctly?
If this is so then how can I see if there are files in the directory 5libs on the side of the snap package with plugs after the connection?
Thank you.
I have never used the content interface before, so take this hint with a gain of salt, but i would expect if the interface is properly connected you should be able to run your consumer app like:
snap run --shell <appname>
that usually spawns a shell in the envirnoment the app sees when it is run, so there you should be able to see $SNAP/5libs/ (or $SNAP_DATA/5libs, not sure what the exact mountpoint is, as i said, i’m guessing )
@zyga-snapd You got a response to your question above some days ago. Not sure if you’ve exchanged further info about it elsewhere? Can you please update here with the details.
Also, this says “upcoming”, but nothing above hints about what would in fact be upcoming. We should probably avoid tagging topics for work until we can correctly identify what the work is, or at least what needs to be fixed.