[Interest] Qt.conf and desktop application

Mitch Curtis mitch.curtis at qt.io
Wed Jan 16 11:45:02 CET 2019


> -----Original Message-----
> From: Interest <interest-bounces at qt-project.org> On Behalf Of Jérôme
> Godbout
> Sent: Wednesday, 16 January 2019 12:12 AM
> To: Interests Qt <interest at qt-project.org>
> Subject: [Interest] Qt.conf and desktop application
> 
> Hi,
> 
> I'm having some problem while porting an application to Linux Desktop. I'm
> using a qt.conf to set 2 values
> 
> [Paths]
> 
> Translations = :/i18n
> 
> Qml2Imports = :/
> 
> 
> 
> I don't do anything else, but I cannot launch my application when I add the
> Qt.conf (even with only Translations). The platform library cannot be found
> anymore. I'm having a hard time figuring how to setup this for desktop since
> the debug and packaged application will fetch those at different place I
> guess. And why does the non set value get modified? Seem like giving a
> qt.conf make some kind of magic into qt creator and affect the plugins path
> to be destroyed.
> 
> 
> 
> Console output
> 
> 
> 
> QML debugging is enabled. Only use this in a safe environment.
> 
> qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
> 
> This application failed to start because no Qt platform plugin could be
> initialized. Reinstalling the application may fix this problem.
> 
> 
> 
> Anybody how to create a qt.conf that work on desktop inside QtCreator and
> also after deploy gather of file?

I had a similar issue and ended up building statically instead:

https://github.com/probonopd/linuxdeployqt/issues/280

> Thanks,
> 
> Jerome




More information about the Interest mailing list