CMU-Perceptual-Computing-Lab / caffe_rtpose

Realtime C++ code for multi-person pose estimation
Other
356 stars 207 forks source link

rtpose.cpp compilation error #28

Closed a4tunado closed 7 years ago

a4tunado commented 7 years ago

Encountered compilation error while building rtpose.cpp. Any help is highly appreciated.

examples/rtpose/rtpose.cpp: In function ‘void* processFrame(void*)’: examples/rtpose/rtpose.cpp:1185:42: error: no match for ‘operator[]’ (operand types are ‘boost::shared_ptr<float []>’ and ‘int’) frame_batch[n].joints[ij] = joints[ij];

gcc (Ubuntu 4.9.4-2ubuntu1~12.04) 4.9.4 boost 1_49_0

a4tunado commented 7 years ago

gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 works fine though looks like Ubuntu 12 is not supported

gineshidalgo99 commented 7 years ago

It looks like an old version of boost? Which does not have that operator implemented. This array shared pointer was included not too long ago.

a4tunado commented 7 years ago

Thanks!

Probably boost version should be updated in Dependencies.cmake than.

gineshidalgo99 commented 7 years ago

Good point. Thank you for pointing it out!