From ac029ad79cd228e1e7fe4bf8a1a36f9fac96106e Mon Sep 17 00:00:00 2001 From: Guillaume Sarthou Date: Wed, 6 Dec 2023 20:47:06 +0100 Subject: [PATCH] [OntoloGui] fix ros undefined symbol --- CMakeLists.txt | 10 ++-------- include/ontologenius/graphical/ontoloGUI/ontologui.h | 3 --- src/graphical/ontoloGUI/ontologui.cpp | 5 ----- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d019dc9..86b35f50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,8 +32,8 @@ function(add_onto_library TARGET) endif() add_library(${TARGET} ${ARGN}) add_dependencies(${TARGET} ontologenius_gencpp ${catkin_EXPORTED_TARGETS}) - target_include_directories(${TARGET} PUBLIC include PRIVATE ${catkin_INCLUDE_DIRS}) - target_link_libraries(${TARGET} PRIVATE ${catkin_LIBRARIES}) + target_include_directories(${TARGET} PUBLIC include ${catkin_INCLUDE_DIRS}) + target_link_libraries(${TARGET} PUBLIC ${catkin_LIBRARIES}) # PRIVATE has been removed fot ontoloGUI set_target_properties(${TARGET} PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON) target_compile_options(${TARGET} PRIVATE -Wall -Wextra) target_enable_sanitizers(${TARGET}) @@ -405,13 +405,7 @@ set( QT_SOURCES ############################################################################## add_executable(ontoloGUI ${QT_SOURCES} ${QT_RESOURCES_CPP} ${QT_FORMS_HPP} ${QT_MOC_HPP}) -target_include_directories(ontoloGUI - PRIVATE - ${catkin_INCLUDE_DIRS} -) -add_dependencies(ontoloGUI ontologenius_gencpp ${catkin_EXPORTED_TARGETS}) target_link_libraries(ontoloGUI - ${catkin_LIBRARIES} Qt5::Core Qt5::Widgets Qt5::PrintSupport diff --git a/include/ontologenius/graphical/ontoloGUI/ontologui.h b/include/ontologenius/graphical/ontoloGUI/ontologui.h index 466b385d..c0410216 100644 --- a/include/ontologenius/graphical/ontoloGUI/ontologui.h +++ b/include/ontologenius/graphical/ontoloGUI/ontologui.h @@ -6,12 +6,9 @@ #include #include "ontologenius/OntologiesManipulator.h" -#include #include #include -#include "std_msgs/String.h" - namespace Ui { class ontoloGUI; } diff --git a/src/graphical/ontoloGUI/ontologui.cpp b/src/graphical/ontoloGUI/ontologui.cpp index c8937fe5..bc2c4f12 100644 --- a/src/graphical/ontoloGUI/ontologui.cpp +++ b/src/graphical/ontoloGUI/ontologui.cpp @@ -5,13 +5,8 @@ #include -#include "ontologenius/OntologeniusService.h" -#include "std_msgs/String.h" - #include -#define QUEU_SIZE 1000 - ontoloGUI::ontoloGUI(QWidget *parent) : QMainWindow(parent), ui(new Ui::ontoloGUI)