.hpp files not generating for services_quiz_srv

When I try to build my services_quiz application, it does not recognize the custom interface, even though it was built and is recognized in the terminal. In the directory, I do not see any.hpp files generated either.

Hi @CedricK04, welcome to the community!

Thank you for the screenshot. It shows me that you’ve verified first that the package where you have your service definition was compiled and sourced correctly before attempting to compile the package that uses the custom service.

I think you are almost there, and I believe a missing piece could be the addition of the interface to the main package CMakeLists.txt. Please go through the course’s instructions on how to do so, you would need to add something like

target_include_directories(services_quiz PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/path/to/interface)
target_sources(services_quiz PRIVATE path/to/interface/YourInterface.hpp)

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.