Unsolved include vlc in qt application
-
Hello!I am developing a qt application with vlc-qt.Can anyone tell me how to include vlc package in my qt application?As of now my app is working if one installs vlc in the machine.I want to include vlc in my application.
-
Hi,
You should take a look at the vlc-qt examples repo. They also provide the deployment step.
-
@SGaist I used vlc-qt source code for my application.I want to create a standalone package without vlc or libvlc being installed.Can you tell me how can I do that?
-
Which OS are you targeting ?
-
@SGaist linux only.I am working on linuxmint
-
Then follow the Linux deployment guide.
-
@SGaist I deployed my app by linuxdeployqt tool.My app is working perfectly.But it's running only on machines which have vlc or libvlc.I want to bind the app into my appimage.But I am not able to do so.Can you tell me briefly how can I bind libvlc and my app,so that users without vlc also can run my app?Thanks!
-
Did you use the
-bundle-non-qt-libs
option of that tool ? -
@SGaist Yes.But no luck :(
-
@abhay you can do a static link in case you are writing app under GPL licence and your code is open sourced.
-
@Tikani I am sorry.I don't know how to create a static link.Can you tell me how to do this? Thanks! and my code is under GPL license
-
@abhay At first you need a static version of Qt environment. To get this one you need to build a Qt from source with
-static
parameter. Start from this link. Perhaps, you will have to get the sources of libvlc and recompile it as a static library, but I do not quite sure. Depends on what you will find in libvlc-dev package if you use sources from official mint repos. But you can download the freshest sources tarball from VLC site. In official repos packages are slightly outdated, usually. -
-
@SGaist only vlc libraries.Qt is fine
-
Did you increase the log level of linuxdeployqt ? That might give you hints of what is happening.
You may have to tweak the tool a bit to make it include the vlc libraries.
-
@SGaist Did you mean --verbose? I set the default value only.
-
Put it at 4
-
@SGaist Same error man :(
-
@abhay and I think range is from 0-3 only I think.Although if you give more than 3 it will take same as 3 I think
-
Setting the verbosity up won't fix the problem, however it should help you get information on what is happening. Maybe tell you why what dependency is ignored.
From a quick look at linuxdeployqt, it might be because vlc is installed in a system folder which will be avoided by the tool.