[Interest] [Qt4] QNetwork and bearer plugins

Christian Gagneraud chgans at gna.org
Mon Jul 15 22:41:12 CEST 2013


On 15/07/13 18:11, Thiago Macieira wrote:
> On segunda-feira, 15 de julho de 2013 17.30.59, Christian Gagneraud wrote:
>> Hi all,
>>
>> If I build Qt with several bearer plugin (says, linux-generic, connman
>> and NM), how would Qt decide on which plugin it needs to load? Can Qt
>> auto-detect which plugin is the best?
> It will load all of them and use the one that works.
OK, thanks.

>> Now, when it comes to configure/build time, it seems to me that the 3
>> plugins are built whn using DBUS, can anyone correct me if i'm wrong?
> Two of the three require D-Bus (connman and NM). The generic requires only
> QtNetwork.
That's what I thought, but looking at bearer.pro (latest 4.8 branch):
contains(QT_CONFIG, dbus) {
     contains(QT_CONFIG, icd) {
         SUBDIRS += icd
     } else:linux* {
         SUBDIRS += generic
         SUBDIRS += connman networkmanager
     }
}
[...]
isEmpty(SUBDIRS):SUBDIRS = generic

Well, I just understood! the "SUBDIRS += generic" just make sure that 
generic is as well selected when DBus is in the config, if not, the last 
line will select only generic (at least on linux)...
My first understanding was wrong, SUBDIRS += generic doesn't imply any 
sort of dependency in that case...

Thanks Thiago,
Chris
>
>> Context: I'm trying to get Qt-4.8 built with connman plugin for an
>> embedded ARM system (using Yocto).
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list