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

Error compiling the bindings #14

Closed
diegoferigo opened this issue Oct 24, 2017 · 4 comments
Closed

Error compiling the bindings #14

diegoferigo opened this issue Oct 24, 2017 · 4 comments

Comments

@diegoferigo
Copy link
Member

I got this error, probably related to the latest SWIG changes.

I'm using only YARP_USE_OCTAVE=ON (no Matlab involved, I'll test it soon).

@traversaro @francesco-romano

[ 33%] Building CXX object matlab/CMakeFiles/yarpOctaveMex.dir/autogenerated/yarpMATLAB_wrap.cxx.o
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:2567:32: error: cannot initialize a parameter of type 'int' with an rvalue of type 'const char *'
        return self->configure(policyName.c_str(),
                               ^~~~~~~~~~~~~~~~~~
/iit/local/include/yarp/os/ResourceFinder.h:80:24: note: passing argument to parameter 'argc' here
    bool configure(int argc, char *argv[], bool skipFirstArgument = true);
                       ^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:4980:22: error: no member named 'operator+' in namespace 'yarp::os'
  result = yarp::os::operator +((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
           ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5022:22: error: no member named 'operator+' in namespace 'yarp::os'
  result = yarp::os::operator +((yarp::os::ConstString const &)*arg1,(char const *)arg2);
           ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5064:22: error: no member named 'operator+' in namespace 'yarp::os'
  result = yarp::os::operator +((char const *)arg1,(yarp::os::ConstString const &)*arg2);
           ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5105:22: error: no member named 'operator+' in namespace 'yarp::os'
  result = yarp::os::operator +((yarp::os::ConstString const &)*arg1,arg2);
           ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5144:22: error: no member named 'operator+' in namespace 'yarp::os'
  result = yarp::os::operator +(arg1,(yarp::os::ConstString const &)*arg2);
           ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5265:28: error: no member named 'operator==' in namespace 'yarp::os'
  result = (bool)yarp::os::operator ==((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5307:28: error: no member named 'operator==' in namespace 'yarp::os'
  result = (bool)yarp::os::operator ==((char const *)arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5349:28: error: no member named 'operator==' in namespace 'yarp::os'
  result = (bool)yarp::os::operator ==((yarp::os::ConstString const &)*arg1,(char const *)arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5442:28: error: no member named 'operator!=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator !=((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5484:28: error: no member named 'operator!=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator !=((char const *)arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5526:28: error: no member named 'operator!=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator !=((yarp::os::ConstString const &)*arg1,(char const *)arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5619:28: error: no member named 'operator<' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5661:28: error: no member named 'operator<' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <((char const *)arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5703:28: error: no member named 'operator<' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <((yarp::os::ConstString const &)*arg1,(char const *)arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5796:28: error: no member named 'operator<=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <=((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5838:28: error: no member named 'operator<=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <=((char const *)arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5880:28: error: no member named 'operator<=' in namespace 'yarp::os'
  result = (bool)yarp::os::operator <=((yarp::os::ConstString const &)*arg1,(char const *)arg2);
                 ~~~~~~~~~~^
/iit/sources/yarp-matlab-bindings/matlab/autogenerated/yarpMATLAB_wrap.cxx:5973:28: error: no member named 'operator>' in namespace 'yarp::os'
  result = (bool)yarp::os::operator >((yarp::os::ConstString const &)*arg1,(yarp::os::ConstString const &)*arg2);
                 ~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
matlab/CMakeFiles/yarpOctaveMex.dir/build.make:62: recipe for target 'matlab/CMakeFiles/yarpOctaveMex.dir/autogenerated/yarpMATLAB_wrap.cxx.o' failed
make[2]: *** [matlab/CMakeFiles/yarpOctaveMex.dir/autogenerated/yarpMATLAB_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'matlab/CMakeFiles/yarpOctaveMex.dir/all' failed
make[1]: *** [matlab/CMakeFiles/yarpOctaveMex.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
@traversaro
Copy link
Member

traversaro commented Oct 24, 2017

Unable to reproduce. Are you using the devel branch or the master branch? Are you using the same branch in YARP? Are you generating the bindings or just compiling?

@traversaro
Copy link
Member

By regenerating the bindings, I was able to regenerated and compile the bindings fine even if YARP_WRAP_STL_STRING is set to OFF.

@diegoferigo
Copy link
Member Author

diegoferigo commented Oct 25, 2017

On my setup, with YARP_WRAP_STL_STRING=OFF I get the error above, if instead I set it to ON the compiling of the bindings works fine.

(everything on devel, compiling with octave)

@diegoferigo diegoferigo changed the title Error regenerating the bindings Error compiling the bindings Oct 25, 2017
@traversaro
Copy link
Member

Solved by the commits mentioned in #15 (comment) , see #17 for more info.

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