roboticslab-uc3m / installation-guides

Centralized administration of dependency installation guides.
https://robots.uc3m.es/installation-guides/
70 stars 35 forks source link

[openrave] Compilation of python bindings error with bionic #65

Closed RaulFdzbis closed 3 years ago

RaulFdzbis commented 5 years ago

Installing Openrave [master] in Ubuntu 18.04 bionic gives this error:

[ 53%] Building CXX object python/bindings/CMakeFiles/convexdecompositionpy.dir/convexdecompositionpy.cpp.o
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1809:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:18,
                 from /usr/include/python2.7/numpy/arrayobject.h:4,
                 from /home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:20:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1809:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:18,
                 from /usr/include/python2.7/numpy/arrayobject.h:4,
                 from /home/raul/repos/openrave/python/bindings/pyann.cpp:20:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
In file included from /home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:29:0:
/home/raul/repos/openrave/python/bindings/bindings.h:357:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const float* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:370:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const float* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:389:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const double* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:402:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const double* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:421:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint8_t* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:440:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint8_t* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:453:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const int* pvalues, size_t N)
        ^~~~~~~
        cuserid
In file included from /home/raul/repos/openrave/python/bindings/pyann.cpp:29:0:
/home/raul/repos/openrave/python/bindings/bindings.h:357:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const float* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:466:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint32_t* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:370:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const float* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:490:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const std::vector<T>& v)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:389:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const double* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:402:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const double* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:421:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint8_t* pvalues, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:499:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const std::vector<T>& v, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:440:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint8_t* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:512:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const boost::array<T,N>& v)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:453:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const int* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:466:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArrayN(const uint32_t* pvalues, size_t N)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:490:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const std::vector<T>& v)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:499:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const std::vector<T>& v, std::vector<npy_intp>& dims)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/bindings.h:512:8: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
 inline numeric::array toPyArray(const boost::array<T,N>& v)
        ^~~~~~~
        cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp: In function ‘boost::python::api::object search(ANNkd_tree&, boost::python::api::object, int, double, bool)’:
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:50: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                  ^~~~~~~
                                                  cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:57: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                         ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:57: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:64: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:96: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                ^~~~~~~
                                                                                                cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:103: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                       ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:103: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:110: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                              ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:135:131: error: expected ‘)’ before ‘;’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                                                   ^
/home/raul/repos/openrave/python/bindings/pyann.cpp: In function ‘boost::python::api::object search_array(ANNkd_tree&, boost::python::api::object, int, double, bool)’:
/home/raul/repos/openrave/python/bindings/pyann.cpp:143:42: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()));
                                          ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:143:93: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()));
                                                                                             ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:50: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                  ^~~~~~~
                                                  cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:57: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                         ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:57: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:64: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:96: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                ^~~~~~~
                                                                                                cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:103: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                       ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:103: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:110: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                              ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:173:131: error: expected ‘)’ before ‘;’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)));
                                                                                                                                   ^
/home/raul/repos/openrave/python/bindings/pyann.cpp: In function ‘boost::python::api::object k_fixed_radius_search(ANNkd_tree&, boost::python::api::object, double, int, double)’:
/home/raul/repos/openrave/python/bindings/pyann.cpp:185:42: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),kball);
                                          ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:185:93: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),kball);
                                                                                             ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:192:42: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),kball);
                                          ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:192:93: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),kball);
                                                                                             ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:50: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                  ^~~~~~~
                                                  cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:57: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                         ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:57: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:64: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                                ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:96: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                                                                ^~~~~~~
                                                                                                cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:103: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                                                                       ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:103: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:110: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                                                                              ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:213:137: error: expected ‘)’ before ‘;’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),kball);
                                                                                                                                         ^
/home/raul/repos/openrave/python/bindings/pyann.cpp: In function ‘boost::python::api::object k_fixed_radius_search_array(ANNkd_tree&, boost::python::api::object, double, int, double)’:
/home/raul/repos/openrave/python/bindings/pyann.cpp:221:42: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),numeric::array(boost::python::list()));
                                          ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:221:93: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),numeric::array(boost::python::list()));
                                                                                             ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:221:131: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),numeric::array(boost::python::list()));
                                                                                                                                   ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:42: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),static_cast<numeric::array>(handle<>(pykball)));
                                          ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:93: error: ‘numeric’ has not been declared
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),static_cast<numeric::array>(handle<>(pykball)));
                                                                                             ^~~~~~~
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:143: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                               ^~~~~~~
                                                                                                                                               cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:150: error: expected ‘>’ before ‘::’ token
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                                      ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:150: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:237:157: error: missing template arguments before ‘>’ token
         return boost::python::make_tuple(numeric::array(boost::python::list()).astype("i4"),numeric::array(boost::python::list()),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                                             ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:50: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                  ^~~~~~~
                                                  cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:57: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                         ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:57: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:64: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:96: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                ^~~~~~~
                                                                                                cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:103: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                       ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:103: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:110: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                              ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:143: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                               ^~~~~~~
                                                                                                                                               cuserid
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:150: error: expected ‘>’ before ‘::’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                                      ^~
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:150: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:157: error: missing template arguments before ‘>’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                                             ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:178: error: expected ‘)’ before ‘;’ token
     return boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyidx)), static_cast<numeric::array>(handle<>(pydists)),static_cast<numeric::array>(handle<>(pykball)));
                                                                                                                                                                                  ^
/home/raul/repos/openrave/python/bindings/pyann.cpp:266:178: error: expected ‘)’ before ‘;’ token
/home/raul/repos/openrave/python/bindings/pyann.cpp: In function ‘void init_module_pyANN_int()’:
/home/raul/repos/openrave/python/bindings/pyann.cpp:292:5: error: ‘numeric’ has not been declared
     numeric::array::set_module_and_type("numpy", "ndarray");
     ^~~~~~~
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp: In function ‘boost::python::api::object computeConvexDecomposition(const boost::multi_array<float, 2>&, const boost::multi_array<int, 2>&, NxF32, NxU32, NxU32, NxF32, NxF32, NxF32, bool, bool)’:
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:60: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                            ^~~~~~~
                                                            cuserid
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:67: error: expected ‘>’ before ‘::’ token
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                                   ^~
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:67: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:74: error: missing template arguments before ‘>’ token
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                                          ^
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:111: error: ‘numeric’ does not name a type; did you mean ‘cuserid’?
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                                                                               ^~~~~~~
                                                                                                               cuserid
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:118: error: expected ‘>’ before ‘::’ token
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                                                                                      ^~
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:118: error: expected ‘(’ before ‘::’ token
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:104:125: error: missing template arguments before ‘>’ token
         hulls.append(boost::python::make_tuple(static_cast<numeric::array>(handle<>(pyvertices)), static_cast<numeric::array>(handle<>(pyindices))));
                                                                                                                             ^
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp: In function ‘void init_module_convexdecompositionpy()’:
/home/raul/repos/openrave/python/bindings/convexdecompositionpy.cpp:115:5: error: ‘numeric’ has not been declared
     numeric::array::set_module_and_type("numpy", "ndarray");
     ^~~~~~~
python/bindings/CMakeFiles/pyANN_int.dir/build.make:62: recipe for target 'python/bindings/CMakeFiles/pyANN_int.dir/pyann.cpp.o' failed
make[2]: *** [python/bindings/CMakeFiles/pyANN_int.dir/pyann.cpp.o] Error 1
CMakeFiles/Makefile2:1191: recipe for target 'python/bindings/CMakeFiles/pyANN_int.dir/all' failed
make[1]: *** [python/bindings/CMakeFiles/pyANN_int.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
python/bindings/CMakeFiles/convexdecompositionpy.dir/build.make:62: recipe for target 'python/bindings/CMakeFiles/convexdecompositionpy.dir/convexdecompositionpy.cpp.o' failed
make[2]: *** [python/bindings/CMakeFiles/convexdecompositionpy.dir/convexdecompositionpy.cpp.o] Error 1
CMakeFiles/Makefile2:1229: recipe for target 'python/bindings/CMakeFiles/convexdecompositionpy.dir/all' failed
make[1]: *** [python/bindings/CMakeFiles/convexdecompositionpy.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Possible related issues: https://github.com/rdiankov/openrave/issues/542 and https://github.com/rdiankov/openrave/issues/551

RaulFdzbis commented 5 years ago
$ pip list | grep numpy
numpy                              1.15.4   
RaulFdzbis commented 5 years ago
$ sudo -H pip install --upgrade numpy
$ pip list | grep numpy
numpy                              1.16.1   
David-Estevez commented 5 years ago

What is your Python Boost version?

RaulFdzbis commented 5 years ago

Here you go:

~$ dpkg -s libboost-dev | grep 'Version'
Version: 1.65.1.0ubuntu1
David-Estevez commented 5 years ago

Well, then it's definitely https://github.com/rdiankov/openrave/issues/551 :

Building with Boost.Python version 1.65.1 or greater is broken, as the boost::python::numeric namespace has been removed in favor of boost::python::numpy

Options:

RaulFdzbis commented 5 years ago

Yeah it looks like it is. I always tend to choose the cry option, but i will keep you up if there is some news hahahaha.

Thank you @David-Estevez !!

jgvictores commented 5 years ago

Added priority: high as Bionic is growing in users, and it's not easy to simply uninstall boost for downgrade (many packages depend on it).

luckychay commented 5 years ago

I met the same issue and I chose to cry for my fate.

PeterBowman commented 5 years ago

OpenRAVE has been recently upgraded (from 0.15.0 to 0.24.1). As usual: some issues might be fixed now, some bugs may arise. For now, I identified a missing rapidjson dependency (Travis build on Xenial). Reminds me of https://github.com/rdiankov/openrave/commit/7ad8ca4fe95ad1feb30e2a16bf9f19fc028b4f70.

PeterBowman commented 5 years ago

OpenRAVE has been recently upgraded (from 0.15.0 to 0.24.1). As usual: some issues might be fixed now, some bugs may arise.

The rapidjson regression is tracked at https://github.com/rdiankov/openrave/issues/707. Installing rapidjson-dev is not a complete fix since the rapidjson/pointer.h header file cannot be found afterwards: ref. Besides, a C++11 issue spoils gcc Travis jobs: ref.

cielavenir commented 5 years ago

That travis says gcc 5.4.

gcc 6 (or later) defaults to C++14 and does not have emplace_back issue. Otherwise -DCMAKE_CXX_FLAGS=-std=gnu++11 needs to be passed as described in https://github.com/cielavenir/mujin_recruiting/blob/master/cookbooks/mujin/recipes/default.rb#L132 (that default.rb describes openrave installation in devops way)

cielavenir commented 5 years ago

For boost, you could work on https://github.com/rdiankov/openrave/pull/625 (note that I have not tested that one)

cielavenir commented 5 years ago

I was able to establish the procedure to compile openrave on bionic (and buster) https://github.com/cielavenir/mujin_recruiting/blob/master/cookbooks/buster/recipes/default.rb

PeterBowman commented 5 years ago

Thanks! I managed to compile it on bionic, too, following https://github.com/crigroup/openrave-installation. It does seem to work on latest OpenRAVE master (although the scripts hosted in there still point at v0.9) at the cost of forcing me to download and compile an older Boost release (if I'm correct, your code uses apt, which is nicer).

cielavenir commented 5 years ago

@PeterBowman instead of using older boost, my installation procedure uses openrave specific branch supporting latest boost.

PeterBowman commented 5 years ago

Installing rapidjson-dev is not a complete fix since the rapidjson/pointer.h header file cannot be found afterwards: ref.

Probably fixed in Bionic since rapidjson v1.1.0 already includes the offending pointer.h header (ref at https://github.com/Tencent/rapidjson).

Besides, a C++11 issue spoils gcc Travis jobs: ref.

gcc 6 (or later) defaults to C++14 and does not have emplace_back issue.

See https://docs.travis-ci.com/user/languages/c/#gcc-on-linux for a guide on upgrading gcc in Travis. However, I'm hesitant about meddling with the build environment, probably more prone to change the CLI CMake options as mentioned in:

Otherwise -DCMAKE_CXX_FLAGS=-std=gnu++11 needs to be passed (...)

See https://stackoverflow.com/a/44357387.

RaulFdzbis commented 4 years ago

Yeah! Being able to install it following https://github.com/crigroup/openrave-installation as stated by @PeterBowman. I did not try @cielavenir solution but looks good too.

Thank you guys!

RaulFdzbis commented 4 years ago

If you agree, will keep this issue open until there is a solid solution or at least is updated in the installation guides :D

RaulFdzbis commented 4 years ago

Update: After this

Yeah! Being able to install it following https://github.com/crigroup/openrave-installation ...

Getting this error while trying to run openrave:

2019-11-13 17:43:16,838 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /home/raul/repos/forceSensor/lib//libForceSensor.so: /home/raul/repos/forceSensor/lib//libForceSensor.so: undefined symbol: _ZNK8OpenRAVE13InterfaceBase20GetReadableInterfaceERKSs
2019-11-13 17:43:16,839 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /home/raul/repos/forceSensor/lib//libForceSensor.so: /home/raul/repos/forceSensor/lib//libForceSensor.so: undefined symbol: _ZNK8OpenRAVE13InterfaceBase20GetReadableInterfaceERKSs
2019-11-13 17:43:16,839 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /home/raul/repos/forceSensor/lib//libForceSensor.so: /home/raul/repos/forceSensor/lib//libForceSensor.so: undefined symbol: _ZNK8OpenRAVE13InterfaceBase20GetReadableInterfaceERKSs
2019-11-13 17:43:16,839 openrave [WARN] [plugindatabase.h:941 RaveDatabase::PluginPtr OpenRAVE::RaveDatabase::_LoadPlugin] failed to load: /home/raul/repos/forceSensor/lib//libForceSensor.so
2019-11-13 17:43:17,546 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-13 17:43:17,547 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-13 17:43:17,547 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-13 17:43:17,548 openrave [WARN] [plugindatabase.h:941 RaveDatabase::PluginPtr OpenRAVE::RaveDatabase::_LoadPlugin] failed to load: /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so
2019-11-13 17:43:18,778 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libqtosgrave.so: /usr/local/lib/openrave0.9-plugins/libqtosgrave.so: undefined symbol: _ZN3osg5Group11removeChildEPNS_4NodeE
Segmentation fault (core dumped)

Any idea?

PeterBowman commented 4 years ago

Did you perform a fresh OpenRAVE installation? If not, perhaps some older symlinks are still pointing at the previous version. Check ls -l /usr/local/lib/libopenrave0.*.

jgvictores commented 4 years ago

I'd also recompile and reinstall the plugins:

RaulFdzbis commented 4 years ago

Did clean install of three of the packages (openrave, openraveyarp-plugins and forcesensors), solved problem with forceSensor library but still receiving segmentation fault:

2019-11-14 12:22:13,966 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-14 12:22:13,967 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-14 12:22:13,968 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so: libACE-6.0.3.so: cannot open shared object file: No such file or directory
2019-11-14 12:22:13,968 openrave [WARN] [plugindatabase.h:941 RaveDatabase::PluginPtr OpenRAVE::RaveDatabase::_LoadPlugin] failed to load: /usr/local/lib/openrave0.9-plugins/libOpenraveYarpControlboard.so
2019-11-14 12:22:14,183 openrave [WARN] [plugindatabase.h:1014 RaveDatabase::_SysLoadLibrary] /usr/local/lib/openrave0.9-plugins/libqtosgrave.so: /usr/local/lib/openrave0.9-plugins/libqtosgrave.so: undefined symbol: _ZN3osg5Group11removeChildEPNS_4NodeE
Segmentation fault (core dumped)

Looks like the problem comes with /usr/local/lib/openrave0.9-plugins/ not being correctly installed?

jgvictores commented 4 years ago

Yes, please be sure to really completely wipe out old stuff and try again:

sudo rm -rf /usr/local/lib/openrave0.9-plugins
sudo rm -rf /home/raul/repos/openrave-yarp-plugins/build
cd /home/raul/repos/openrave-yarp-plugins
mkdir build; cd build; cmake ..
make
sudo make install
RaulFdzbis commented 4 years ago

Yes, please be sure to really completely wipe out old stuff and try again:

sudo rm -rf /usr/local/lib/openrave0.9-plugins
sudo rm -rf /home/raul/repos/openrave-yarp-plugins/build
cd /home/raul/repos/openrave-yarp-plugins
mkdir build; cd build; cmake ..
make
sudo make install

That solved the segmentation fault problem :D, however after that a new problem arised when running openraveYarpPaintSquares.py D:

Rave has been initialized
2019-11-14 13:43:21,903 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name fcl_, interface collisionchecker
2019-11-14 13:43:21,903 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name ode, interface collisionchecker
2019-11-14 13:43:21,903 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name bullet, interface collisionchecker
2019-11-14 13:43:21,903 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name pqp, interface collisionchecker
2019-11-14 13:43:21,909 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name qtcoin, interface viewer
2019-11-14 13:43:21,910 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name ivmodelloader, interface module

DATA_READ - Fatal error!
  Unacceptable input file type.
2019-11-14 13:43:21,911 openrave [WARN] [xmlreaders-core.cpp:992 LinkXMLReader::endElement] failed to find /usr/local/share/teo-openrave-models/contexts/openrave/teo/models/RootWaist_links.wrl
2019-11-14 13:43:21,911 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name ivmodelloader, interface module

DATA_READ - Fatal error!
  Unacceptable input file type.
2019-11-14 13:43:21,914 openrave [WARN] [xmlreaders-core.cpp:1001 LinkXMLReader::endElement] failed to find /usr/local/share/teo-openrave-models/contexts/openrave/teo/models/RootWaist_links.wrl
2019-11-14 13:43:21,915 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name ivmodelloader, interface module
... 

(output cut to avoid flooding the issue, same error for each part of the model)

Running openrave brings the following output:

~$ openrave
2019-11-14 16:21:43,864 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name fcl_, interface collisionchecker
2019-11-14 16:21:43,864 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name ode, interface collisionchecker
2019-11-14 16:21:43,864 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name bullet, interface collisionchecker
2019-11-14 16:21:43,864 openrave [WARN] [plugindatabase.h:645 InterfaceBasePtr OpenRAVE::RaveDatabase::Create] Failed to create name pqp, interface collisionchecker
2019-11-14 16:21:43,864 openrave [WARN] [openrave.cpp:322 MainOpenRAVEThread] failed to find an OpenRAVE viewer.

Thanks to @jgvictores we have come to the conclusion that the load of the .wrl models can depend on the viewer used by Openrave, so the error may come from not having installed the viewer in Openrave. I will try to change https://github.com/crigroup/openrave-installation configuration to force the installation of the qtcoin viewer and see if this can fix the problem.

RaulFdzbis commented 4 years ago

Just doing a fast reinstall (without even changing the configuration) solved the problem. Appart of that, I also had to delete some residual installation i had of openscenegraph, following this issue.

So as a conclusion due to version changes try to do a fresh and clean install of openrave when trying this solution. Now is working :+1:

RaulFdzbis commented 4 years ago

For boost, you could work on rdiankov/openrave#625 (note that I have not tested that one)

Confirmed https://github.com/cielavenir/openrave/tree/boost-1.6x-forcompile as of https://github.com/cielavenir/openrave/tree/db596f12a61badf71cc97a73162cf78c5b9dd165 (similar to https://github.com/morxa/openrave/tree/boost-1.6x for https://github.com/rdiankov/openrave/pull/625 ?) is compiling and working (openrave v0.9.0) on Bionic with the distro's Boost 1.65.

jgvictores commented 4 years ago

Offtopic (xenial): Regarding master at time of writing, which identifies itself as v0.25.0, on a Xenial machine, I had to install https://github.com/Tencent/rapidjson from source (current master) because distro version missing rapidjson/pointer.h AND added some set(CMAKE_CXX_STANDARD 11) at root for environment.h.

jgvictores commented 4 years ago

Conversation already linked from other side, but specific comment (for future reference) on even newer Ubuntu versions: https://github.com/rdiankov/openrave/issues/756#issuecomment-604591630

lianghongzhuo commented 4 years ago

I'm trying to Migrate from boost::numeric toboost:numpy for Boost too. As this pull request's code is outdated. https://github.com/rdiankov/openrave/pull/625 In the current master branch https://github.com/rdiankov/openrave/commit/811cf2367a0ce8b6c92be26579ca161ab4bac0a8 I finished most cases by replace numeric::array to numpy::ndarray But I stuck at here https://github.com/rdiankov/openrave/blob/master/python/bindings/include/openravepy/boostpython/boostpython_bindings.h#L23-L25 any suggestion on how to change these lines?

PeterBowman commented 4 years ago

Installing rapidjson-dev is not a complete fix since the rapidjson/pointer.h header file cannot be found afterwards: ref.

Regarding master at time of writing, which identifies itself as v0.25.0, on a Xenial machine, I had to install https://github.com/Tencent/rapidjson from source (current master) because distro version missing rapidjson/pointer.h

Documented at https://github.com/roboticslab-uc3m/installation-guides/commit/1e61468273a298dec65a2d095024e07cc40bbd29.

jgvictores commented 3 years ago

Closed via https://github.com/roboticslab-uc3m/installation-guides/commit/a0a8b15256513105aeba095c598555ce3f2de3ac as well as https://github.com/roboticslab-uc3m/installation-guides/issues/81