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. car_interface.h missing from D-Bus Car Example
Forum Updated to NodeBB v4.3 + New Features

car_interface.h missing from D-Bus Car Example

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 216 Views 1 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.
  • R Offline
    R Offline
    rcx11
    wrote on last edited by
    #1

    I'm looking at the D-Bus example Remote Controled Car example. I'm trying to study the code to gain an understanding of its functioning. The controller.h file provided at code.qt.io contains the line #include "car_interface.h" which is not anywhere in the directory. I presume that's another class that's supposed to be there. The files in the Fedora package for Qt6 D-Bus examples match code.qt.io. Where are the missing file(s)?

    1 Reply Last reply
    0
    • Paul ColbyP Offline
      Paul ColbyP Offline
      Paul Colby
      wrote on last edited by
      #3

      So I think car_interface.h should be generated during building.

      Or more correctly, generated during CMake's generation of the build system, as documented here.

      @rcx11, have you run CMake on the remotecontrolledcar directory?

      1 Reply Last reply
      4
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #2

        I know nothing about dbus. But since this is in the CMakeLists.txt:

        qt_add_dbus_interface(controller_SRCS
        ../common/car.xml
        car_interface
        )

        So I think car_interface.h should be generated during building.

        1 Reply Last reply
        3
        • Paul ColbyP Offline
          Paul ColbyP Offline
          Paul Colby
          wrote on last edited by
          #3

          So I think car_interface.h should be generated during building.

          Or more correctly, generated during CMake's generation of the build system, as documented here.

          @rcx11, have you run CMake on the remotecontrolledcar directory?

          1 Reply Last reply
          4
          • R Offline
            R Offline
            rcx11
            wrote last edited by
            #4

            I apologize for the late response. I did not try to run CMake on the directory. I still haven't, but after seeing your reply, that's most likely the issue. I appreciate your time. My project that might have used DBus is progressing in a direction that it won't be necessary, so I didn't look closer.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Ben Campbell-Wallis
              wrote last edited by Ben Campbell-Wallis
              #5

              @rcx11 it uses a similar approach to gRPC/QtRemoteObjects in that the files that are compiled are generated using calls to the generators via cmake.

              I checked Qt6.10.0 on windows 11 and indeed, until you configure the file cannot be found:

              The file that generated (for reference of others reading this thread):

              16213277-3c7c-43a6-93f4-c7c2f1ecea7e-image.png

              I'd recommend marking as resolved with @Paul-Colby 's response.

              1 Reply Last reply
              1
              • aha_1980A aha_1980 has marked this topic as solved

              • Login

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