car_interface.h missing from D-Bus Car Example
-
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)?
-
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? -
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? -
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.
-
@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):
I'd recommend marking as resolved with @Paul-Colby 's response.
-
A aha_1980 has marked this topic as solved