uleroboticsgroup / yasmin

YASMIN (Yet Another State MachINe)
GNU General Public License v3.0
130 stars 25 forks source link

Issues building yasmin #4

Closed shanestevenz closed 1 year ago

shanestevenz commented 1 year ago

Hello, after cloning the repo and install the dependencies I try to build the project and the yasmin fails

here is the result... It fails to find the includes for Boost shnub@shane-laptop:~/Documents/MQP-boat/src$ cd yasmin/ shnub@shane-laptop:~/Documents/MQP-boat/src/yasmin$ colcon build Starting >>> yasmin
Starting >>> yasmin_interfaces --- stderr: yasmin
In file included from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard.hpp:8, from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/src/yasmin/blackboard/blackboard.cpp:5: /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard_value.hpp:7:10: fatal error: boost/type_index.hpp: No such file or directory 7 | #include <boost/type_index.hpp> | ^~~~~~ compilation terminated. gmake[2]: [CMakeFiles/yasmin_lib.dir/build.make:76: CMakeFiles/yasmin_lib.dir/src/yasmin/blackboard/blackboard.cpp.o] Error 1 gmake[2]: Waiting for unfinished jobs.... In file included from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard.hpp:8, from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/src/yasmin/cb_state.cpp:4: /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard_value.hpp:7:10: fatal error: boost/type_index.hpp: No such file or directory 7 | #include <boost/type_index.hpp> | ^~~~~~ compilation terminated. gmake[2]: [CMakeFiles/yasmin_lib.dir/build.make:104: CMakeFiles/yasmin_lib.dir/src/yasmin/cb_state.cpp.o] Error 1 In file included from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard.hpp:8, from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/state.hpp:9, from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/src/yasmin/state.cpp:6: /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard_value.hpp:7:10: fatal error: boost/type_index.hpp: No such file or directory 7 | #include <boost/type_index.hpp> | ^~~~~~ compilation terminated. gmake[2]: [CMakeFiles/yasmin_lib.dir/build.make:90: CMakeFiles/yasmin_lib.dir/src/yasmin/state.cpp.o] Error 1 In file included from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard.hpp:8, from /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/src/yasmin/state_machine.cpp:10: /home/shnub/Documents/MQP-boat/src/yasmin/yasmin/include/yasmin/blackboard/blackboard_value.hpp:7:10: fatal error: boost/type_index.hpp: No such file or directory 7 | #include <boost/type_index.hpp> | ^~~~~~ compilation terminated. gmake[2]: [CMakeFiles/yasmin_lib.dir/build.make:118: CMakeFiles/yasmin_lib.dir/src/yasmin/state_machine.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:140: CMakeFiles/yasmin_lib.dir/all] Error 2 gmake[1]: Waiting for unfinished jobs.... gmake: [Makefile:146: all] Error 2

Failed <<< yasmin [0.72s, exited with code 2] Aborted <<< yasmin_interfaces [0.76s]

Summary: 0 packages finished [1.02s] 1 package failed: yasmin 1 package aborted: yasmin_interfaces 1 package had stderr output: yasmin 3 packages not processed shnub@shane-laptop:~/Documents/MQP-boat/src/yasmin$

mgonzs13 commented 1 year ago

Hi @shanestevenz, I have removed that boost include. Pull the changes and try to build YASMIN again.