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

Compiling Error #74

Open
xiaoyuch24 opened this issue Mar 4, 2018 · 1 comment
Open

Compiling Error #74

xiaoyuch24 opened this issue Mar 4, 2018 · 1 comment

Comments

@xiaoyuch24
Copy link

Hi everyone,

When I catkin_make this package, I got the following error:

/home/yuchen/projects/src/or_ompl/src/OMPLConversions.cpp: In member function ‘virtual void or_ompl::OpenRAVEHandler::log(const string&, ompl::msg::LogLevel, const char*, int)’:
/home/yuchen/projects/src/or_ompl/src/OMPLConversions.cpp:76:9: error: ‘log4cxx’ has not been declared
log4cxx::spi::LocationInfo const location_info(
^
/home/yuchen/projects/src/or_ompl/src/OMPLConversions.cpp:76:36: error: expected ‘;’ before ‘const’
log4cxx::spi::LocationInfo const location_info(
^
/home/yuchen/projects/src/or_ompl/src/OMPLConversions.cpp:79:13: error: ‘RaveGetLogger’ is not a member of ‘OpenRAVE’
OpenRAVE::RaveGetLogger(), location_info, text);
^
/home/yuchen/projects/src/or_ompl/src/OMPLConversions.cpp:79:40: error: ‘location_info’ was not declared in this scope
OpenRAVE::RaveGetLogger(), location_info, text);
^
make[2]: *** [or_ompl/CMakeFiles/or_ompl.dir/src/OMPLConversions.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [or_ompl/CMakeFiles/or_ompl.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Did anyone have this error? I am using OpenRave 0.9.0, ubuntu 14.04 and ros-indigo.

Thank you!

@shray
Copy link

shray commented Nov 30, 2018

Hey @xiaoyuchhusky,

I had the same issue and fixed it with the removing the #idef condition from src/OMPLConversions.cpp.

Old:

#ifdef OPENRAVE_LOG4CXX
        log4cxx::spi::LocationInfo const location_info(
            OpenRAVE::RaveGetSourceFilename(filename), "", line);
        OpenRAVE::RavePrintfA_DEBUGLEVEL(
            OpenRAVE::RaveGetLogger(), location_info, text);
#else
        OpenRAVE::RavePrintfA_DEBUGLEVEL("[%s:%d] %s\n",
            OpenRAVE::RaveGetSourceFilename(filename), line,
            text.c_str());
#endif

New:

OpenRAVE::RavePrintfA_DEBUGLEVEL("[%s:%d] %s\n",
    OpenRAVE::RaveGetSourceFilename(filename), line,
text.c_str());

Hope this helps

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

2 participants