[Interest] What is the difference.

Elvis Stansvik elvstone at gmail.com
Fri Sep 26 23:19:25 CEST 2014


2014-09-26 22:09 GMT+02:00 Karl Ruetz <karl.ruetz at ruetzdogz.com>:

>
> On Sep 26, 2014, at 2:37 PM, Karl Ruetz <karl.ruetz at ruetzdogz.com> wrote:
>
> >
> > On Sep 24, 2014, at 10:22 AM, Thiago Macieira <thiago.macieira at intel.com>
> wrote:
> >
> >> On Wednesday 24 September 2014 10:41:09 Koehne Kai wrote:
> >>> I think Thiago already wrote it: use the offscreen plugin . Launch
> your app
> >>> with e.g.
> >>>
> >>> -platform minimal
> >>>
> >>> And continue to use QApplication.
> >>
> >> offscreen, not minimal.
> >>
> >> You can also set QT_QPA_PLATFORM environment variable before the
> >> QGuiApplication construction if you need to do it programmatically.
> There is
> >> no C++ setter for it.
> >>
> >> The minimal plugin is a sample plugin for plugin writers, explaining
> what the
> >> minimum they have to do is. We should disable its build for
> non-developer-
> >> builds of Qt...
> >> --
> >> Thiago Macieira - thiago.macieira (AT) intel.com
> >>
> >
> > Apparently I don’t know how deploy the offscreen platform.
> > I have created a directory on the deployment machine called platforms
> that lives in the same directory with my executable.
> > Inside the platforms directory is the following:
> > # ls
> > libqlinuxfb.a    libqminimal.a    libqoffscreen.a    libqxcb.a
> > libqlinuxfb.prl  libqminimal.prl  libqoffscreen.prl  libqxcb.prl
> > libqlinuxfb.so   libqminimal.so   libqoffscreen.so   libqxcb.so
> >
> > When I attempt to run my app I get the following error:
> > This application failed to start because it could not find or load the
> Qt platform plugin "offscreen".
> >
> > Available platform plugins are: xcb.
> >
> > Do I need to include something inside my executable to make it aware of
> the other platforms?
> >
> > Karl
> >
>
> Nevermind.  I rebuilt the app as dynamically linked using dynamically
> linked Qt and it found the platform.
> Now I can do the dance of joy.
> Can this be done with statically linked programs?
> Do I just need to explicitly add the platform .a file to the LIBS in the
> Qt project file?
>

I think you have some info on this here:

  http://qt-project.org/doc/qt-5/plugins-howto.html#static-plugins

I haven't done this myself though. But since you're using QMake, it seems
quite straightforward.

Elvis


> Karl
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140926/3610eca1/attachment.html>


More information about the Interest mailing list