Open masterchop opened 6 years ago
pi@raspberrypi:~/YoloV2NCS-1.0 $ make Compiling: src/PythonWrapper.cpp src/PythonWrapper.cpp: In member function ‘boost::python::list YoloDetector::Detect(boost::python::api::object, int, int, int, int, int, int, float, float, int)’: src/PythonWrapper.cpp:38:3: error: expected initializer before ‘bool’ bool isReadBuffer = !PyObject_AsReadBuffer(obj.ptr(), &buffer, &buflen); ^~~~ src/PythonWrapper.cpp:39:7: error: ‘isReadBuffer’ was not declared in this scope if(!isReadBuffer) ^~~~ src/PythonWrapper.cpp:25:29: warning: unused parameter ‘obj’ [-Wunused-parameter] bp::list Detect(bp::object obj, int c, int h, int w, ^~~ Makefile:35: recipe for target 'src/PythonWrapper.o' failed make: *** [src/PythonWrapper.o] Error 1
i am using raspbian with the NCSv1.12
You probably missed a ";" while fixing the issue mentioned in #11
int buflen;
pi@raspberrypi:~/YoloV2NCS-1.0 $ make Compiling: src/PythonWrapper.cpp src/PythonWrapper.cpp: In member function ‘boost::python::list YoloDetector::Detect(boost::python::api::object, int, int, int, int, int, int, float, float, int)’: src/PythonWrapper.cpp:38:3: error: expected initializer before ‘bool’ bool isReadBuffer = !PyObject_AsReadBuffer(obj.ptr(), &buffer, &buflen); ^~~~ src/PythonWrapper.cpp:39:7: error: ‘isReadBuffer’ was not declared in this scope if(!isReadBuffer) ^
~~~ src/PythonWrapper.cpp:25:29: warning: unused parameter ‘obj’ [-Wunused-parameter] bp::list Detect(bp::object obj, int c, int h, int w, ^~~ Makefile:35: recipe for target 'src/PythonWrapper.o' failed make: *** [src/PythonWrapper.o] Error 1i am using raspbian with the NCSv1.12