tesseract-robotics / tesseract_qt

Tesseract Qt Widgets and Applications
GNU Lesser General Public License v3.0
11 stars 11 forks source link

Build issue on Noble/Jazzy #111

Closed rjoomen closed 4 months ago

rjoomen commented 6 months ago

I tried building Tesseract on Ubuntu 24.04 (Noble) with ROS2 Jazzy and ran (after fixing some minor other issues) into this issue, related to qt5_wrap_cpp, and I have no idea how to fix it:

Starting >>> tesseract_qt
--- stderr: tesseract_qt
/bin/sh: 1: @/home/roelof/tesseract_ws/build/tesseract_qt/common/include/tesseract_qt/common/moc_environment_wrapper.cpp_parameters: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:78: common/include/tesseract_qt/common/moc_environment_wrapper.cpp] Error 127
gmake[2]: *** Waiting for unfinished jobs....
/bin/sh: 1: @/home/roelof/tesseract_ws/build/tesseract_qt/common/include/tesseract_qt/common/moc_environment_manager.cpp_parameters: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:74: common/include/tesseract_qt/common/moc_environment_manager.cpp] Error 127
/bin/sh: 1: @/home/roelof/tesseract_ws/build/tesseract_qt/common/include/tesseract_qt/common/models/moc_component_info_manager_model.cpp_parameters: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:90: common/include/tesseract_qt/common/models/moc_component_info_manager_model.cpp] Error 127
/bin/sh: 1: @/home/roelof/tesseract_ws/build/tesseract_qt/common/include/tesseract_qt/common/models/moc_json_model.cpp_parameters: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:82: common/include/tesseract_qt/common/models/moc_json_model.cpp] Error 127
/bin/sh: 1: @/home/roelof/tesseract_ws/build/tesseract_qt/common/include/tesseract_qt/common/models/moc_yaml_model.cpp_parameters: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:86: common/include/tesseract_qt/common/models/moc_yaml_model.cpp] Error 127
/bin/sh: 1: -o: not found
gmake[2]: *** [common/CMakeFiles/tesseract_qt_common.dir/build.make:166: common/ui_load_environment_widget.h] Error 127
gmake[1]: *** [CMakeFiles/Makefile2:556: common/CMakeFiles/tesseract_qt_common.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:136: all] Error 2
---
Failed   <<< tesseract_qt [1.43s, exited with code 2]

@Levi-Armstrong, do you have an idea?

Levi-Armstrong commented 6 months ago

Do you have a branch to look at?

rjoomen commented 6 months ago

No branch, just master.

Only fix needed is adding C to the languages here project(${pkg_extracted_name} VERSION ${pkg_extracted_version} LANGUAGES C CXX) in some of the makefiles, because of an issue with a dependency (issue seems related to this).

rjoomen commented 6 months ago

For reference, a workaround like this might be needed for the MPI::MPI_C target issue requiring the C language to be enabled. But I don't think that's related to the QT issue.

rjoomen commented 5 months ago

Related: https://github.com/tesseract-robotics/tesseract_ros2/issues/86

Levi-Armstrong commented 5 months ago

What are the next steps on fixing this?

rjoomen commented 5 months ago

Just today I got it all building.

I'll submit a PR to tesseract_qt tomorrow for you to check out and we can discuss how to continue.

rjoomen commented 5 months ago

Submitted. The mixing of AUTOMOC/UIC/RCC and qt5wrap is not ideal, of course, either we find out why qt5wrap fails, or switch everything over to AUTO*.