ci2cv / face-analysis-sdk

Facial detection, landmark tracking and expression transfer library for Windows, Linux and Mac
face.ci2cv.net
Other
416 stars 209 forks source link

OSX build error #11

Closed mattanimation closed 8 years ago

mattanimation commented 8 years ago

I figured this out but wanted to put it here none the less with solution in case others run into it. Was getting the following errors when building on (OSX 10.11.6):

/Users/username/Development/FaceAnalysisSDK/face-analysis-sdk-stable/src/map-list/main.cpp:71:21: error: 
      use of undeclared identifier 'fork'
    pid_t new_pid = fork();

/Users/username/Development/FaceAnalysisSDK/face-analysis-sdk-stable/src/map-list/main.cpp:86:16: error: 
      use of undeclared identifier 'execvp'
      int rv = execvp(command.c_str(), argv);

by adding #include <unistd.h> to src/map-list/main.cpp and then re-compiling I was able to build successfully.