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

Problem when catkin_make #255

Open
RaccoonAD opened this issue Oct 25, 2024 · 0 comments
Open

Problem when catkin_make #255

RaccoonAD opened this issue Oct 25, 2024 · 0 comments

Comments

@RaccoonAD
Copy link

When I use catkin_make I receive this error:
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:71:7: error: expected nested-name-specifier before ‘NullType’
using NullType = message_filters::NullType;
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:72:7: error: expected nested-name-specifier before ‘Connection’
using Connection = message_filters::Connection;
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:76:1: error: expected unqualified-id before ‘using’
using PolicyBase = message_filters::PolicyBase<M0, M1, M2, M3, M4, M5, M6, M7, M8>;
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:79:1: error: expected unqualified-id before ‘using’
using Synchronizer = message_filters::Synchronizer;
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:90:13: error: ‘NullType’ was not declared in this scope
struct iTOW
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:90:13: note: suggested alternative:
In file included from /opt/ros/kinetic/include/message_filters/synchronizer.h:53:0,
from /home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:38,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:
/opt/ros/kinetic/include/message_filters/null_types.h:48:8: note: ‘message_filters::NullType’
struct NullType
^
In file included from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:0:
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:90:21: error: template argument 1 is invalid
struct iTOW
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:95:50: error: ‘NullType’ does not name a type
template<typename M0, typename M1, typename M2 = NullType, typename M3 = NullType, typename M4 = NullType,
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:95:74: error: ‘NullType’ does not name a type
template<typename M0, typename M1, typename M2 = NullType, typename M3 = NullType, typename M4 = NullType,
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:95:98: error: ‘NullType’ does not name a type
template<typename M0, typename M1, typename M2 = NullType, typename M3 = NullType, typename M4 = NullType,
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:96:24: error: ‘NullType’ does not name a type
typename M5 = NullType, typename M6 = NullType, typename M7 = NullType, typename M8 = NullType>
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:96:48: error: ‘NullType’ does not name a type
typename M5 = NullType, typename M6 = NullType, typename M7 = NullType, typename M8 = NullType>
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:96:72: error: ‘NullType’ does not name a type
typename M5 = NullType, typename M6 = NullType, typename M7 = NullType, typename M8 = NullType>
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:96:96: error: ‘NullType’ does not name a type
typename M5 = NullType, typename M6 = NullType, typename M7 = NullType, typename M8 = NullType>
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:97:37: error: expected template-name before ‘<’ token
struct ExactTime : public PolicyBase<M0, M1, M2, M3, M4, M5, M6, M7, M8>
^
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:97:37: error: expected ‘{’ before ‘<’ token
/home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:97:37: error: expected unqualified-id before ‘<’ token
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp: In function ‘int main(int, char**)’:
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 4 is invalid
typedef ublox_msg_filters::ExactTime<ublox_msgs::NavHPPOSLLH, ublox_msgs::NavRELPOSNED9, ublox_msgs::NavVELNED> MySyncPolicy;
^
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 5 is invalid
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 6 is invalid
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 7 is invalid
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 8 is invalid
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:22:113: error: template argument 9 is invalid
In file included from /home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:38:0,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:
/opt/ros/kinetic/include/message_filters/synchronizer.h: In instantiation of ‘class message_filters::Synchronizer’:
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:23:64: required from here
/opt/ros/kinetic/include/message_filters/synchronizer.h:68:7: error: base type ‘int’ fails to be a struct or class type
class Synchronizer : public boost::noncopyable, public Policy
^
/opt/ros/kinetic/include/message_filters/synchronizer.h:71:37: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:72:35: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:73:35: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:74:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:75:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:76:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:77:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:78:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:79:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:80:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:81:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:82:49: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:83:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:84:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:85:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:86:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:87:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:88:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:89:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:90:47: error: ‘int’ is not a class, struct, or union type
message_filters/synchronizer.h:91:47: error: ‘int’ is not a class, struct, or union type
^
In file included from /home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:38:0,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:
/opt/ros/kinetic/include/message_filters/synchronizer.h:337:17: error: type ‘int’ is not a base type for type ‘message_filters::Synchronizer’
using Policy::add;
^
/opt/ros/kinetic/include/message_filters/synchronizer.h:340:8: error: ‘int’ is not a class, struct, or union type
void add(const boost::shared_ptr<typename mpl::at_c<Messages, i>::type const>& msg)
^
/opt/ros/kinetic/include/message_filters/synchronizer.h:356:8: error: ‘int’ is not a class, struct, or union type
void cb(const typename mpl::at_c<Events, i>::type& evt)
^
In file included from /home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:38:0,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:
/opt/ros/kinetic/include/message_filters/synchronizer.h: In instantiation of ‘message_filters::Synchronizer::Synchronizer(const Policy&, F0&, F1&, F2&) [with F0 = message_filters::Subscriber<ublox_msgs::NavHPPOSLLH_<std::allocator > >; F1 = message_filters::Subscriber<ublox_msgs::NavRELPOSNED9_<std::allocator > >; F2 = message_filters::Subscriber<ublox_msgs::NavVELNED_<std::allocator > >; Policy = int]’:
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:23:86: required from here
/opt/ros/kinetic/include/message_filters/synchronizer.h:166:18: error: type ‘int’ is not a direct base of ‘message_filters::Synchronizer’
: Policy(policy)
^
In file included from /home/diego/TFG/src/ublox/ublox_msg_filters/include/ublox_msg_filters/exact_time.h:38:0,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:3:
/opt/ros/kinetic/include/message_filters/synchronizer.h: In instantiation of ‘message_filters::Connection message_filters::Synchronizer::registerCallback(const C&) [with C = boost::bi::bind_t<void, void (*)(const boost::shared_ptr<const ublox_msgs::NavHPPOSLLH<std::allocator > >&, const boost::shared_ptr<const ublox_msgs::NavRELPOSNED9_<std::allocator > >&, const boost::shared_ptr<const ublox_msgs::NavVELNED_<std::allocator > >&), boost::bi::list3<boost::arg<1>, boost::arg<2>, boost::arg<3> > >; Policy = int]’:
/home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:24:58: required from here
/opt/ros/kinetic/include/message_filters/synchronizer.h:310:40: error: using invalid field ‘message_filters::Synchronizer::signal

return signal_.addCallback(callback);
^
In file included from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53:0,
from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34,
from /usr/include/boost/lexical_cast.hpp:32,
from /opt/ros/kinetic/include/ros/transport_hints.h:34,
from /opt/ros/kinetic/include/ros/subscribe_options.h:33,
from /opt/ros/kinetic/include/ros/node_handle.h:42,
from /opt/ros/kinetic/include/ros/ros.h:45,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:1:
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp: In instantiation of ‘class boost::detail::lexical_istream_limited_src<char, std::char_traits, false, 21ul>’:
/usr/include/boost/lexical_cast/detail/converter_lexical.hpp:473:36: required from ‘static bool boost::detail::lexical_converter_impl<Target, Source>::try_convert(const Source&, Target&) [with Target = std::__cxx11::basic_string; Source = int]’
/usr/include/boost/lexical_cast/try_lexical_convert.hpp:173:44: required from ‘bool boost::conversion::detail::try_lexical_convert(const Source&, Target&) [with Target = std::__cxx11::basic_string; Source = int]’
/usr/include/boost/lexical_cast.hpp:41:60: required from ‘Target boost::lexical_cast(const Source&) [with Target = std::_cxx11::basic_string; Source = int]’
/opt/ros/kinetic/include/ros/transport_hints.h:115:74: required from here
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:137:15: error: duplicate base type ‘boost::noncopyable
::noncopyable’ invalid
class lexical_istream_limited_src: boost::noncopyable {
^
In file included from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53:0,
from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34,
from /usr/include/boost/lexical_cast.hpp:32,
from /opt/ros/kinetic/include/ros/transport_hints.h:34,
from /opt/ros/kinetic/include/ros/subscribe_options.h:33,
from /opt/ros/kinetic/include/ros/node_handle.h:42,
from /opt/ros/kinetic/include/ros/ros.h:45,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:1:
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp: In instantiation of ‘class boost::detail::lexical_ostream_limited_src<char, std::char_traits >’:
/usr/include/boost/lexical_cast/detail/converter_lexical.hpp:479:36: required from ‘static bool boost::detail::lexical_converter_impl<Target, Source>::try_convert(const Source&, Target&) [with Target = std::__cxx11::basic_string; Source = int]’
/usr/include/boost/lexical_cast/try_lexical_convert.hpp:173:44: required from ‘bool boost::conversion::detail::try_lexical_convert(const Source&, Target&) [with Target = std::__cxx11::basic_string; Source = int]’
/usr/include/boost/lexical_cast.hpp:41:60: required from ‘Target boost::lexical_cast(const Source&) [with Target = std::_cxx11::basic_string; Source = int]’
/opt/ros/kinetic/include/ros/transport_hints.h:115:74: required from here
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:502:15: error: duplicate base type ‘boost::noncopyable
::noncopyable’ invalid
class lexical_ostream_limited_src: boost::noncopyable {
^
In file included from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53:0,
from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34,
from /usr/include/boost/lexical_cast.hpp:32,
from /opt/ros/kinetic/include/ros/transport_hints.h:34,
from /opt/ros/kinetic/include/ros/subscribe_options.h:33,
from /opt/ros/kinetic/include/ros/node_handle.h:42,
from /opt/ros/kinetic/include/ros/ros.h:45,
from /home/diego/TFG/src/ublox/ublox_msg_filters/src/example.cpp:1:
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp: In instantiation of ‘class boost::detail::lexical_istream_limited_src<char, std::char_traits, false, 2ul>’:
/usr/include/boost/lexical_cast/detail/converter_lexical.hpp:473:36: required from ‘static bool boost::detail::lexical_converter_impl<Target, Source>::try_convert(const Source&, Target&) [with Target = int; Source = std::__cxx11::basic_string]’
/usr/include/boost/lexical_cast/try_lexical_convert.hpp:173:44: required from ‘bool boost::conversion::detail::try_lexical_convert(const Source&, Target&) [with Target = int; Source = std::__cxx11::basic_string]’
/usr/include/boost/lexical_cast.hpp:41:60: required from ‘Target boost::lexical_cast(const Source&) [with Target = int; Source = std::_cxx11::basic_string]’
/opt/ros/kinetic/include/ros/transport_hints.h:131:47: required from here
/usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:137:15: error: duplicate base type ‘boost::noncopyable
::noncopyable’ invalid
class lexical_istream_limited_src: boost::noncopyable {
^
ublox/ublox_msg_filters/CMakeFiles/ublox_msg_filters_example.dir/build.make:62: fallo en las instrucciones para el objetivo 'ublox/ublox_msg_filters/CMakeFiles/ublox_msg_filters_example.dir/src/example.cpp.o'
make[2]: *** [ublox/ublox_msg_filters/CMakeFiles/ublox_msg_filters_example.dir/src/example.cpp.o] Error 1
CMakeFiles/Makefile2:14000: fallo en las instrucciones para el objetivo 'ublox/ublox_msg_filters/CMakeFiles/ublox_msg_filters_example.dir/all'
make[1]: *** [ublox/ublox_msg_filters/CMakeFiles/ublox_msg_filters_example.dir/all] Error 2
Makefile:138: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
Invoking "make -j6 -l6" failed

What can I do?

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

1 participant