uzh-rpg / fault_tolerant_control

Vision-based quadrotor fault-tolerant flight controller.
GNU General Public License v3.0
151 stars 31 forks source link

Compile problem on ze_common #5

Open nswang1994 opened 3 years ago

nswang1994 commented 3 years ago

Here is the error:

/home/nswang1994/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:73:21: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator 122 | static_assert(is_same<typename _Alloc::value_type, value_type>::value, | ^~~~~ /usr/include/c++/9/bits/stl_map.h: In instantiation of ‘class std::map<long int, Eigen::Matrix<double, 7, 1>, std::less, Eigen::aligned_allocator<Eigen::Matrix<double, 7, 1> > >’: /home/nswang1994/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/buffer-inl.hpp:204:53: required from ‘class ze::Buffer<double, 7>’ /home/nswang1994/catkin_ws/src/fault_tolerant_control/vio_estimator/common/ze_common/include/ze/common/csv_trajectory.hpp:91:21: required from here /usr/include/c++/9/bits/stl_map.h:122:71: error: static assertion failed: std::map must have the same value_type as its allocator make[2]: [CMakeFiles/ze_common.dir/build.make:76: CMakeFiles/ze_common.dir/src/csv_trajectory.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:2041: CMakeFiles/ze_common.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

ksumit12 commented 2 years ago

@nswang1994 did you find any solution to this issue?

architjaiswal commented 2 years ago

@ksumit12 I am also stuck at this error. Is there any solution to this build fail issue? @zhangzichao @nswang1994 @davsca @tcies

tajisoft commented 1 year ago

Same issue. gcc7 solved this issue.