Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QNetworkConfigurationManager::capabilities() returning empty QFlags
Forum Updated to NodeBB v4.3 + New Features

QNetworkConfigurationManager::capabilities() returning empty QFlags

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 2 Posters 2.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jngd
    wrote on last edited by
    #1

    I have two environments (DEV and PROD). Both are linux running Connman as network manager. In my DEV environment the signal QNetworkConfigurationManager::configurationAdded is working properly when I plug/unplug ethernet cable. On the other hand, in PROD env, with computer with the same hw specifications, this signal is not emitted. My question in this topic is: which it is based Qt, in particular QtNetwork, to emit this signal? What their depenedencies? I am assuming that I have any missing dependencies in PROD env by wich this is not working properly.

    Checking QNetworkConfigurationManager::capabilities, the result in DEV environment is QFlags(0x1|0x10|0x20|0x40) while in PROD env is QFlags() (empty). So this can be a problem with QtNetwork backend in PROD env.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you deploy the bearer plugins ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you deploy the bearer plugins ?

        J Offline
        J Offline
        jngd
        wrote on last edited by
        #3

        @SGaist Sorry, I'm newbie in Qt Framework, how can I do that? what's libraries are involved in this?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Before diving deep in the Qt specific deployment stuff, how are you currently deploying/running your application to your prod machine ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply
          0
          • SGaistS SGaist

            Before diving deep in the Qt specific deployment stuff, how are you currently deploying/running your application to your prod machine ?

            J Offline
            J Offline
            jngd
            wrote on last edited by
            #5

            @SGaist All Qt libraries that I think are needed are in the same directory than my app executable or in SO path (/usr/lib64). Doing ldd against app binary, all libraries are found. What's libraries are needed to use QtBearer plugin? I think that your point about Qt Bearer plugin deploy is right but I don't know how to proceed with it.

            Thanks in advance.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You have to deploy the bearer plugin folder.

              Are you mixing your system Qt installation with the one you used to build your application ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply
              0
              • SGaistS SGaist

                You have to deploy the bearer plugin folder.

                Are you mixing your system Qt installation with the one you used to build your application ?

                J Offline
                J Offline
                jngd
                wrote on last edited by
                #7

                @SGaist just have deployed plugins folder into the same directory than binary with same result. I think I'm not mixing anything, all libraries installed in system are in /lib64 and deployed with app are in same dir. Need to do anything more in addition to copy plugins folder to binary dir?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What I find strange is that you are deploying things in several places.

                  Take a look at this excellent article about deployment.

                  There's also the deployment guide.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  J 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What I find strange is that you are deploying things in several places.

                    Take a look at this excellent article about deployment.

                    There's also the deployment guide.

                    J Offline
                    J Offline
                    jngd
                    wrote on last edited by
                    #9

                    @SGaist I found the issue and you 're in the right way. Debuggin with QLibraryInfo::location(QLibraryInfo::PluginsPath) I've noticed that the path in this trace is not correct, in fact is the path where the machine wich build binary, have plugins directory, so I need to change this. Thanks a lot for your help and for this articles.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      What did you change ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved