coincar-sim / coincarsim_getting_started

Readme and script for single-line installation
48 stars 12 forks source link

build fail #16

Open minhaj6 opened 2 months ago

minhaj6 commented 2 months ago

Using ros melodic in LXD container.

Starting  >>> desired_motion_rviz_plugin_ros                                                                                                                                                                                                                 
_____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << lanelet2_core:make /home/ubuntu/coincarsim_getting_started/catkin_ws/logs/lanelet2_core/build.make.000.log                                                                                                                                     
In file included from /usr/include/boost/geometry/algorithms/detail/relate/de9im.hpp:24:0,
                 from /usr/include/boost/geometry/algorithms/detail/relate/interface.hpp:28,
                 from /usr/include/boost/geometry/algorithms/detail/disjoint/interface.hpp:30,
                 from /usr/include/boost/geometry/algorithms/disjoint.hpp:24,
                 from /home/ubuntu/coincarsim_getting_started/catkin_ws/src/lanelet2/lanelet2_core/src/LineStringGeometry.cpp:9:
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp: In constructor ‘boost::geometry::detail::relate::matrix<Height, Width>::matrix()’:
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:69:11: error: ‘::memset’ has not been declared
         ::memset(m_array, 'F', static_size);
           ^~~~~~
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:69:11: note: suggested alternative: ‘wmemset’
         ::memset(m_array, 'F', static_size);
           ^~~~~~
           wmemset
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp: In constructor ‘boost::geometry::detail::relate::mask<Height, Width>::mask(const char*)’:
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:234:15: error: ‘::memset’ has not been declared
             ::memset(it, '*', last - it);
               ^~~~~~
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:234:15: note: suggested alternative: ‘wmemset’
             ::memset(it, '*', last - it);
               ^~~~~~
               wmemset
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp: In constructor ‘boost::geometry::detail::relate::mask<Height, Width>::mask(const char*, std::size_t)’:
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:247:15: error: ‘::memcpy’ has not been declared
             ::memcpy(m_array, s, count);
               ^~~~~~
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:247:15: note: suggested alternative: ‘wmemcpy’
             ::memcpy(m_array, s, count);
               ^~~~~~
               wmemcpy
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:251:15: error: ‘::memset’ has not been declared
             ::memset(m_array + count, '*', static_size - count);
               ^~~~~~
/usr/include/boost/geometry/algorithms/detail/relate/result.hpp:251:15: note: suggested alternative: ‘wmemset’
             ::memset(m_array + count, '*', static_size - count);
               ^~~~~~
               wmemset
make[2]: *** [CMakeFiles/lanelet2_core.dir/src/LineStringGeometry.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/lanelet2_core.dir/all] Error 2
make: *** [all] Error 2
cd /home/ubuntu/coincarsim_getting_started/catkin_ws/build/lanelet2_core; catkin build --get-env lanelet2_core | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
.............................................................................................................................................................................................................................................................
Failed     << lanelet2_core:make                                [ Exited with code 2 ]                                                                                                                                                                       
Failed    <<< lanelet2_core                                     [ 11.5 seconds ]                                                                                                                                                                             
Abandoned <<< lanelet2                                          [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_io                                       [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_maps                                     [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_projection                               [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_traffic_rules                            [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_matching                                 [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_routing                                  [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_python                                   [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_examples                                 [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_interface_ros                            [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet2_validation                               [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< sim_sample_planning_ros_tool                      [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< sim_sample_prediction_ros_tool                    [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< lanelet_rviz_plugin_ros                           [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< simulation_management_ros_tool                    [ Depends on failed job lanelet2_core ]                                                                                                                                                      
Abandoned <<< simulation_initialization_ros_tool                [ Depends on failed job lanelet2_core ]                                                                                                                                                      
________________________________________________________________________________________________________________
anasalabseh commented 1 month ago

The solution is simple, you need to add the cstring library to the files that result in the errors. Add this line:

include

To the beginning of this file: [coincar_framework_path]/catkin_ws/src/lanelet2/lanelet2_core/src/LineStringGeometry.cpp

Build the framework again and the issue will be solved