[Interest] Qt.conf and desktop application

Jérôme Godbout godboutj at amotus.ca
Wed Jan 16 15:30:45 CET 2019


Hi,
static linking is not really an option for this right now, so I guess I will move the .qm from resource to translation folder  and use the default. For Qml2Import I might just try to add the import path from C++  I guess. 

qt.conf seem like a big mess, why changing one path make the default of other changes??? This is really strange and unexpected. I will just ditch it, unless someone have a good way to make a qt.conf and not modify the whole building process.

Thanks,
Jerome

-----Original Message-----
From: Mitch Curtis <mitch.curtis at qt.io> 
Sent: January 16, 2019 5:45 AM
To: Jérôme Godbout <godboutj at amotus.ca>; Interests Qt <interest at qt-project.org>
Subject: RE: Qt.conf and desktop application

> -----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