openpose compilation tells undefined reference to cv::VideoCapture::VideoCapture(cv::String const&)

前端 未结 2 1316
遇见更好的自我
遇见更好的自我 2020-12-21 22:09

I have comipled caffe with GPU disabled,then

cp caffe/build/Makefile openpose/Makefile.conf

run

 make all -j 6
相关标签:
2条回答
  • 2020-12-21 22:43

    With CMake installer (recommended one):

    This error should never occur with the CMake installer, so I would recommend you to use the recommended installer.

    With Makefile installer (deprecated one):

    I have compiled caffe with GPU disabled: You cannot disable GPU for OpenPose (nor the Caffe that OpenPose will use). I am sorry but the CPU code is not finished at all (and not expected to be finished at the moment given the very slow speed). You will have to use CUDA + cuDNN.

    In order to fix the OpenCV not found problem, you need to enable in both Makefile.conf files (the one from OpenPose and Caffe), the use OpenCV 3 flag.

    0 讨论(0)
  • 2020-12-21 22:53

    Caffe recognized opencv actually,those reference are method that were discarded in opencv3.2 ,but are available in opencv 3.1.0 or earlier version.i had the same problem while installing 3.2 and eventualy downgrading to 3.1.0 solved the issue for me,here is a nice guide to install opencv 3.1.0 and according to

    this discussion,it seems that the standard is to support opencv that are available in Ubuntu sources and i think you can't install opencv3.2 through apt-get by now,only need to build from source

    0 讨论(0)
提交回复
热议问题