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

Build errors #12

Closed
jslee02 opened this issue Feb 12, 2016 · 1 comment
Closed

Build errors #12

jslee02 opened this issue Feb 12, 2016 · 1 comment
Labels

Comments

@jslee02
Copy link
Member

jslee02 commented Feb 12, 2016

Here are the errors I got in aikido build. It seems ompl and boost doesn't go well. I have ompl 0.13.0 and boost 1.54.0 installed.

/home/js/dev/pr/aikido/master/aikido/src/util/CatkinResourceRetriever.cpp:3:25: fatal error: ros/package.h: No such file or directory
 #include <ros/package.h>
                         ^
compilation terminated.
make[2]: *** [CMakeFiles/aikido.dir/src/util/CatkinResourceRetriever.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/include/boost/smart_ptr/make_shared.hpp:15:0,
                 from /usr/include/boost/make_shared.hpp:15,
                 from /home/js/dev/pr/aikido/master/aikido/src/ompl/plan.cpp:3:
/usr/include/boost/smart_ptr/make_shared_object.hpp: In instantiation of 'typename boost::detail::sp_if_not_array<T>::type boost::make_shared(Arg1&&, Args&& ...) [with T = ompl::geometric::SimpleSetup; Arg1 = const boost::shared_ptr<ompl::base::SpaceInformation>&; Args = {}; typename boost::detail::sp_if_not_array<T>::type = boost::shared_ptr<ompl::geometric::SimpleSetup>]':
/home/js/dev/pr/aikido/master/aikido/src/ompl/plan.cpp:77:59:   required from here
/usr/include/boost/smart_ptr/make_shared_object.hpp:218:5: error: no matching function for call to 'ompl::geometric::SimpleSetup::SimpleSetup(const boost::shared_ptr<ompl::base::SpaceInformation>&)'
     ::new( pv ) T( boost::detail::sp_forward<Arg1>( arg1 ), boost::detail::sp_forward<Args>( args )... );
     ^
/usr/include/boost/smart_ptr/make_shared_object.hpp:218:5: note: candidates are:
In file included from /home/js/dev/pr/aikido/master/aikido/src/ompl/plan.cpp:9:0:
/usr/include/ompl/geometric/SimpleSetup.h:70:13: note: ompl::geometric::SimpleSetup::SimpleSetup(const StateSpacePtr&)
             SimpleSetup(const base::StateSpacePtr &space);
             ^
/usr/include/ompl/geometric/SimpleSetup.h:70:13: note:   no known conversion for argument 1 from 'const boost::shared_ptr<ompl::base::SpaceInformation>' to 'const StateSpacePtr& {aka const boost::shared_ptr<ompl::base::StateSpace>&}'
/usr/include/ompl/geometric/SimpleSetup.h:64:15: note: ompl::geometric::SimpleSetup::SimpleSetup(const ompl::geometric::SimpleSetup&)
         class SimpleSetup
               ^
/usr/include/ompl/geometric/SimpleSetup.h:64:15: note:   no known conversion for argument 1 from 'const boost::shared_ptr<ompl::base::SpaceInformation>' to 'const ompl::geometric::SimpleSetup&'
make[2]: *** [CMakeFiles/aikido.dir/src/ompl/plan.cpp.o] Error 1
make[1]: *** [CMakeFiles/aikido.dir/all] Error 2
make: *** [all] Error 2
14:19:27: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project aikido (kit: Desktop)
When executing step "Make"
@mkoval
Copy link
Member

mkoval commented Feb 22, 2016

I fixed the package.h issue in #14. This header was no longer required - it was left over from a previous implementation of the class - so I simply deleted the #include.

The other error message is because of an OMPL version incompatibility and, thankfully, has nothing to do with Boost. The SimpleSetup(const base::SpaceInformationPtr &) constructor was added in this OMPL commit, which was first released the OMPL 1.0.0 release (October 26, 2014).

I still do need to get Travis builds up, although I don't think it would have caught either of these bugs. 😓

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

No branches or pull requests

2 participants