Skip to content

compile error: 'bpy::numeric' has not been declared #23

@olimoser

Description

@olimoser

I am trying to build PyOpenPose on Ubuntu 16.04

~/work/PyOpenPose/build$ cmake ..
Install prefix is set to: /usr/local
Generating with build type: Release
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 

-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   python-py35
-- 
-- The following REQUIRED packages have been found:

 * Threads
 * CUDA
 * OpenCV (required version >= 3)
 * Boost
 * PythonLibs (required version == 3)

-- The following OPTIONAL packages have not been found:

 * Doxygen

-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/work/PyOpenPose/build

make fails with:

~/work/PyOpenPose/build$ make 
[ 25%] Building CXX object PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o
/home/user/work/PyOpenPose/PyOpenPoseLib/opencv_expose.cpp: In function 'int initialize_array()':
/home/user/work/PyOpenPose/PyOpenPoseLib/opencv_expose.cpp:32:14: error: 'bpy::numeric' has not been declared
         bpy::numeric::array::set_module_and_type("numpy", "ndarray");
              ^
PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/build.make:110: recipe for target 'PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o' failed
make[2]: *** [PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o] Error 1
CMakeFiles/Makefile2:117: recipe for target 'PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/all' failed
make[1]: *** [PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions