Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt D-Bus
QtWS25 Last Chance

Qt D-Bus

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.8k Views
  • 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.
  • D Offline
    D Offline
    daniil
    wrote on last edited by
    #1

    Hi,

    It may not relates directly to qt.
    I have created simple d-bus application it works fine on desktop, but when I try to run it in embedded linux it says.
    "Not connected to D-Bus server"

    I am new to d-bus and I don't even know what to begin from to start to debug it. Maybe it possible to output some additional information.

    Regards,
    Daniil

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Is a dbus daemon running on the embedded system?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daniil
        wrote on last edited by
        #3

        Yes.

        I noticed one thing, on my desktop I see dbus-daemon and dbus-launch.
        But on embedded system only dbus-daemon.

        I don't know is it ok or not. If I run dbus-launch another dbus-daemon appears.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jkcha
          wrote on last edited by
          #4

          Hi
          I have the same problem when running from embedded.
          I put libdbus-1.so, libQtDBus.so.4, libQtXml.so.4, libexpat.so.1 along with a test executable below.

          The following is the test code for checking DBus Connection.

          #include <QtCore>
          #include <QtDBus>

          int main( int argc, char *argv[] )
          {
          QCoreApplication app(argc, argv);

          QDBusConnection bus = QDBusConnection::sessionBus();
          
          if (!QDBusConnection::sessionBus().isConnected()) {
              qDebug() << "DBUS Connection Fail";
              return 1;
          }
          QStringList serviceNames = bus.interface()->registeredServiceNames();
          qDebug() << serviceNames;
          
          return app.exec();
          

          }

          In addition I set /opt/arm/dbus/lib to the LD_LIBRARY_PATH.

          Does anyone know how to solve this problem regarding
          checking sessionBus?

          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