This repository was archived by the owner on Feb 21, 2021. It is now read-only.
#729 Disabling ROS when not available#737
Merged
Merged
Conversation
Closed
Collaborator
|
when I have try to compile Jderobot with this changes, in basic_component, it shows me the following error (in docker without ROS dependencies): [ 45%] Automatic moc for target basic_component [ 45%] Built target basic_component_automoc [ 45%] Linking CXX executable basic_component CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `GUI::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x0): multiple definition of `GUI::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:moc_gui.cpp:(.text+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `GUI::signal_updateGUI()': basic_component_automoc.cpp:(.text+0x242): multiple definition of `GUI::signal_updateGUI()' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:moc_gui.cpp:(.text+0x242): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o:(.data.rel.ro+0x0): multiple definition of `GUI::staticMetaObject' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:(.data.rel.ro+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `GUI::metaObject() const': basic_component_automoc.cpp:(.text+0x126): multiple definition of `GUI::metaObject() const' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:moc_gui.cpp:(.text+0x126): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `GUI::qt_metacast(char const*)': basic_component_automoc.cpp:(.text+0x16e): multiple definition of `GUI::qt_metacast(char const*)' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:moc_gui.cpp:(.text+0x16e): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `GUI::qt_metacall(QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x1be): multiple definition of `GUI::qt_metacall(QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/moc_gui.cpp.o:moc_gui.cpp:(.text+0x1be): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `CamerasWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x26e): multiple definition of `CamerasWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/widget/moc_cameraswidget.cpp.o:moc_cameraswidget.cpp:(.text+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o:(.data.rel.ro+0x40): multiple definition of `CamerasWidget::staticMetaObject' CMakeFiles/basic_component.dir/gui/widget/moc_cameraswidget.cpp.o:(.data.rel.ro+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `CamerasWidget::metaObject() const': basic_component_automoc.cpp:(.text+0x284): multiple definition of `CamerasWidget::metaObject() const' CMakeFiles/basic_component.dir/gui/widget/moc_cameraswidget.cpp.o:moc_cameraswidget.cpp:(.text+0x16): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `CamerasWidget::qt_metacast(char const*)': basic_component_automoc.cpp:(.text+0x2cc): multiple definition of `CamerasWidget::qt_metacast(char const*)' CMakeFiles/basic_component.dir/gui/widget/moc_cameraswidget.cpp.o:moc_cameraswidget.cpp:(.text+0x5e): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `CamerasWidget::qt_metacall(QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x31c): multiple definition of `CamerasWidget::qt_metacall(QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/widget/moc_cameraswidget.cpp.o:moc_cameraswidget.cpp:(.text+0xae): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `controlVW::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x35c): multiple definition of `controlVW::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:moc_controlvw.cpp:(.text+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `controlVW::VW_changed(float, float)': basic_component_automoc.cpp:(.text+0x534): multiple definition of `controlVW::VW_changed(float, float)' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:moc_controlvw.cpp:(.text+0x1d8): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o:(.data.rel.ro+0x80): multiple definition of `controlVW::staticMetaObject' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:(.data.rel.ro+0x0): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `controlVW::metaObject() const': basic_component_automoc.cpp:(.text+0x418): multiple definition of `controlVW::metaObject() const' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:moc_controlvw.cpp:(.text+0xbc): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `controlVW::qt_metacast(char const*)': basic_component_automoc.cpp:(.text+0x460): multiple definition of `controlVW::qt_metacast(char const*)' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:moc_controlvw.cpp:(.text+0x104): first defined here CMakeFiles/basic_component.dir/basic_component_automoc.cpp.o: In function `controlVW::qt_metacall(QMetaObject::Call, int, void**)': basic_component_automoc.cpp:(.text+0x4b0): multiple definition of `controlVW::qt_metacall(QMetaObject::Call, int, void**)' CMakeFiles/basic_component.dir/gui/widget/moc_controlvw.cpp.o:moc_controlvw.cpp:(.text+0x154): first defined here collect2: error: ld returned 1 exit status src/tools/basic_component/CMakeFiles/basic_component.dir/build.make:432: recipe for target 'src/tools/basic_component/basic_component' failed make[2]: *** [src/tools/basic_component/basic_component] Error 1 CMakeFiles/Makefile2:2492: recipe for target 'src/tools/basic_component/CMakeFiles/basic_component.dir/all' failed make[1]: *** [src/tools/basic_component/CMakeFiles/basic_component.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 |
Member
Author
|
Try now. |
Collaborator
|
all work well. only you need delete ${easyiceconfig_LIBRARY_DIRS} line ( 57 ) of basic_component CMakeLists because it shows the following warning in cmake: WARNING: Target "basic_component" requests linking to directory "/root/JdeRobot/build/src/libs/easyiceconfig". Targets may link only to libraries. CMake is dropping the item. when it is deleted, this PR can be merged |
Member
Author
|
Ups.... fixed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.