title: Qt DBus registerService function call returns false on an embedded Linux device
body: <p>I’m new to DBus, but I’m trying to use it in two Qt applications on an embedded device. I have a very simple interface that consists of one slot:</p>
  <pre><code>QString SendMessage(const QString &amp;cmd);
  </code></pre>
  <p>The server application is then using the following code to start the connection:</p>
  <pre><code>    DbusService* dBus = new DbusService;
      new interfaceIfAdaptor(dBus);
   
      QDBusConnection connection = QDBusConnection::sessionBus();
      bool ret = connection.registerService(&quot;com.domain.project.interface&quot;);
      qDebug() &lt;&lt; &quot;returns&quot; &lt;&lt; ret;
      ret = connection.registerObject(&quot;/&quot;, dBus);
      qDebug() &lt;&lt; &quot;returns&quot; &lt;&lt; ret;
  </code></pre>
  <p><strong>This works fine on the desktop</strong>. In the embedded system, the connection.registerService function returns false. As a result, any messages to the server fail. I’m not sure why. Running ‘ps’ tells me that [dbus-daemon —system] and [dbus-daemon —sesson] are both running.</p>
  <p>Finally, I have noticed that Qt Creator complains when I debug the application. I see the following warning messages:</p>
  <blockquote>
  <p>Could not load shared library symbols for 10 libraries, e.g. /opt/arm/lib/libQtDBus.so.4.</p>
  <p>Use the “info sharedlibrary” command to see the complete listing.</p>
  <p>Do you need “set solib-search-path” or “set sysroot”?</p>
  <p>Could not load shared library symbols for /usr/lib/libdbus-1.so.3.</p>
  <p>Do you need “set solib-search-path” or “set sysroot”?</p>
  </blockquote>
  <p>If additional information is required to debug this problem, please let me know. Or if there are useful dbus commands I could run to help figure this out.  Thanks!</p>