[Interest] What is the difference.
Karl Ruetz
karl.ruetz at ruetzdogz.com
Fri Sep 26 22:09:45 CEST 2014
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?
Karl
More information about the Interest
mailing list