Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when including tesseract_task_composer_planning_nodes_export.h #531

Open
173hyj opened this issue Nov 19, 2024 · 2 comments
Open

Comments

@173hyj
Copy link

173hyj commented Nov 19, 2024

hello:
i am building planning master branch on ubuntu 20.04.6(focal)

command:

rosinstall src/tesseract_ros/ src/tesseract_ros/dependencies.rosinstall
rosdep install --from-paths src -iry
catkin_make_isolated

and when i run catkin_make_isolated, there print some error

==> make -j16 -l16 in '/home/hyj/colcon_ws/build_isolated/tesseract_task_composer/devel'
[ 23%] Built target tesseract_task_composer
[ 24%] Building CXX object core/CMakeFiles/tesseract_task_composer_nodes.dir/src/nodes/has_data_storage_entry_task.cpp.o
[ 29%] Built target tesseract_task_composer_taskflow
[ 32%] Built target tesseract_task_composer_taskflow_factories
[ 35%] Built target tesseract_task_composer_trajopt_example
[ 38%] Built target tesseract_task_composer_raster_example
[ 41%] Built target tesseract_task_composer_example
[ 43%] Linking CXX shared library libtesseract_task_composer_nodes.so
[ 52%] Built target tesseract_task_composer_nodes
Scanning dependencies of target tesseract_task_composer_factories
Scanning dependencies of target tesseract_task_composer_planning_nodes
[ 53%] Building CXX object core/CMakeFiles/tesseract_task_composer_factories.dir/src/task_composer_task_plugin_factory.cpp.o
[ 55%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/continuous_contact_check_task.cpp.o
[ 56%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/fix_state_bounds_task.cpp.o
[ 58%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/format_as_input_task.cpp.o
[ 60%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/fix_state_collision_task.cpp.o
[ 61%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/format_as_result_task.cpp.o
[ 63%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/discrete_contact_check_task.cpp.o
[ 64%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/profile_switch_task.cpp.o
[ 66%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/min_length_task.cpp.o
[ 72%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/upsample_trajectory_task.cpp.o
[ 72%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/process_planning_input_task.cpp.o
[ 72%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_end_state_task.cpp.o
[ 72%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_start_and_end_state_task.cpp.o
[ 73%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_start_state_task.cpp.o
[ 76%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/raster_only_motion_task.cpp.o
[ 76%] Building CXX object planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/raster_motion_task.cpp.o
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/update_start_and_end_state_task.cpp:34:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/update_start_and_end_state_task.h:32:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   32 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:193: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_start_and_end_state_task.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/upsample_trajectory_task.cpp:34:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/upsample_trajectory_task.h:32:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   32 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/update_end_state_task.cpp:34:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/update_end_state_task.h:32:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   32 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/raster_motion_task.cpp:35:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/raster_motion_task.h:34:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   34 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/update_start_state_task.cpp:34:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/update_start_state_task.h:32:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   32 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:219: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/upsample_trajectory_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:180: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_end_state_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:232: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/raster_motion_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:206: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/update_start_state_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/process_planning_input_task.cpp:34:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/process_planning_input_task.h:34:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   34 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/profile_switch_task.cpp:33:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/profile_switch_task.h:31:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   31 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/format_as_result_task.cpp:9:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/format_as_result_task.h:8:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
    8 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:167: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/process_planning_input_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/raster_only_motion_task.cpp:35:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/raster_only_motion_task.h:34:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   34 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:141: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/profile_switch_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:128: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/format_as_result_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:245: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/raster_only_motion_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/format_as_input_task.cpp:39:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/format_as_input_task.h:36:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   36 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:115: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/format_as_input_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/fix_state_bounds_task.cpp:37:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/fix_state_bounds_task.h:33:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   33 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:89: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/fix_state_bounds_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/min_length_task.cpp:38:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/min_length_task.h:34:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   34 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:154: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/min_length_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/discrete_contact_check_task.cpp:45:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/discrete_contact_check_task.h:33:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   33 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:76: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/discrete_contact_check_task.cpp.o] Error 1
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/continuous_contact_check_task.cpp:45:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/continuous_contact_check_task.h:33:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   33 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/src/nodes/fix_state_collision_task.cpp:47:
/home/hyj/colcon_ws/src/tesseract_ros/tesseract_planning/tesseract_task_composer/planning/include/tesseract_task_composer/planning/nodes/fix_state_collision_task.h:33:10: fatal error: tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h: No such file or directory
   33 | #include <tesseract_task_composer/planning/tesseract_task_composer_planning_nodes_export.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:63: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/continuous_contact_check_task.cpp.o] Error 1
make[2]: *** [planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/build.make:102: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/src/nodes/fix_state_collision_task.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:281: planning/CMakeFiles/tesseract_task_composer_planning_nodes.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 78%] Linking CXX shared library libtesseract_task_composer_factories.so
[ 78%] Built target tesseract_task_composer_factories
make: *** [Makefile:130: all] Error 2
<== Failed to process package 'tesseract_task_composer':
  Command '['/home/hyj/colcon_ws/devel_isolated/tesseract_motion_planners/env.sh', 'make', '-j16', '-l16']' returned non-zero exit status 2.
@CodingHzx
Copy link

oh, It seems like you're facing the same issue.
You can use find -name "tesseract_task_composer_nodes_export.h" to check if the header file has been generated.

@173hyj
Copy link
Author

173hyj commented Nov 20, 2024

oh, It seems like you're facing the same issue. You can use find -name "tesseract_task_composer_nodes_export.h" to check if the header file has been generated.

there found a file with that name.

$ sudo find . -name "tesseract_task_composer_nodes_export.h"
./build_isolated/tesseract_task_composer/devel/core/tesseract_task_composer_nodes_export.h

file content:

$ cat ./build_isolated/tesseract_task_composer/devel/core/tesseract_task_composer_nodes_export.h

#ifndef TESSERACT_TASK_COMPOSER_NODES_EXPORT_H
#define TESSERACT_TASK_COMPOSER_NODES_EXPORT_H

#ifdef TESSERACT_TASK_COMPOSER_NODES_STATIC_DEFINE
#  define TESSERACT_TASK_COMPOSER_NODES_EXPORT
#  define TESSERACT_TASK_COMPOSER_NODES_NO_EXPORT
#else
#  ifndef TESSERACT_TASK_COMPOSER_NODES_EXPORT
#    ifdef tesseract_task_composer_nodes_EXPORTS
        /* We are building this library */
#      define TESSERACT_TASK_COMPOSER_NODES_EXPORT __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define TESSERACT_TASK_COMPOSER_NODES_EXPORT __attribute__((visibility("default")))
#    endif
#  endif

#  ifndef TESSERACT_TASK_COMPOSER_NODES_NO_EXPORT
#    define TESSERACT_TASK_COMPOSER_NODES_NO_EXPORT __attribute__((visibility("hidden")))
#  endif
#endif

#ifndef TESSERACT_TASK_COMPOSER_NODES_DEPRECATED
#  define TESSERACT_TASK_COMPOSER_NODES_DEPRECATED __attribute__ ((__deprecated__))
#endif

#ifndef TESSERACT_TASK_COMPOSER_NODES_DEPRECATED_EXPORT
#  define TESSERACT_TASK_COMPOSER_NODES_DEPRECATED_EXPORT TESSERACT_TASK_COMPOSER_NODES_EXPORT TESSERACT_TASK_COMPOSER_NODES_DEPRECATED
#endif

#ifndef TESSERACT_TASK_COMPOSER_NODES_DEPRECATED_NO_EXPORT
#  define TESSERACT_TASK_COMPOSER_NODES_DEPRECATED_NO_EXPORT TESSERACT_TASK_COMPOSER_NODES_NO_EXPORT TESSERACT_TASK_COMPOSER_NODES_DEPRECATED
#endif

#if 0 /* DEFINE_NO_DEPRECATED */
#  ifndef TESSERACT_TASK_COMPOSER_NODES_NO_DEPRECATED
#    define TESSERACT_TASK_COMPOSER_NODES_NO_DEPRECATED
#  endif
#endif

#endif /* TESSERACT_TASK_COMPOSER_NODES_EXPORT_H */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants