chili-epfl / attention-tracker

136 stars 96 forks source link

Make issue #1

Closed pythonanonuser closed 8 years ago

pythonanonuser commented 8 years ago

Hi,

I was just testing out this library for a project on Mac OSX 10.9. When trying to make the examples after running cmake I was getting the following error associated with the file head_pose_estimation.hpp:

error: no type named 'shape_predictor' in namespace 'dlib' dlib::shape_predictor pose_model;

I have the shape predictor file for dlib to detect the landmarks. Just a bit confused as how to proceed. Any advice?

Thanks!

severin-lemaignan commented 8 years ago

Thanks for trying out! This error comes from a small API change between dlib-18.16 and dlib-18.17.

Since dlib does not provide any easy way to get its version number, I did not fix the issue in a proper way yet.

In the meantime, just add:

#include <dlib/image_processing.h>

near the top of head_pose_estimation.hpp, and this should solve you issue. To fix it, you need

severin-lemaignan commented 8 years ago

Note that dlib has another issue related to position independent code: to successfully link (anything) to dlib, you also need to modify dlib's CMakeLists (found in $DLIB_ROOT/dlib/CMakelists.txt) and add add_definitions(-fPIC) near the top (around line 20).

severin-lemaignan commented 8 years ago

@12rohanb Does it work for you now? can I close the issue?

pythonanonuser commented 8 years ago

Sorry for the delay. I was having some trouble compiling earlier, but everything's working great now. Thanks for the advice.

severin-lemaignan commented 8 years ago

Fine, closing the issue.