Skip to content

compiling error. #1

@MyraBaba

Description

@MyraBaba

I have below Error.

I used https://github.com/TadasBaltrusaitis/OpenFace

any idea ?






[ 81%] Built target dlib
[ 83%] Built target GazeAnalyser
[ 97%] Built target LandmarkDetector
Scanning dependencies of target FaceLive
[ 98%] Building CXX object exe/FaceLandmarkVid/CMakeFiles/FaceLive.dir/FaceLive.cpp.o
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:134:64: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
        sprintf(message+strlen(message),"Content-Length: %d\n",strlen(mesaj_));
                                                         ~~    ^~~~~~~~~~~~~~
                                                         %zu
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:143:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
    if (sockfd < 0) error("ERROR opening socket");
                          ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:147:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
    if (server == NULL) error("ERROR, no such host");
                              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:157:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
        error("ERROR connecting");
              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:166:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            error("ERROR writing message to socket");
                  ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:179:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
            error("ERROR reading response from socket");
                  ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:186:15: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
        error("ERROR storing complete response from socket");
              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:213:21: error: no member named 'Draw' in namespace 'LandmarkDetector'
                LandmarkDetector::Draw(captured_image, face_model);
                ~~~~~~~~~~~~~~~~~~^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:226:55: error: no member named 'GetCorrectedPoseWorld' in namespace 'LandmarkDetector'
                cv::Vec6d pose_estimate_to_draw = LandmarkDetector::GetCorrectedPoseWorld(face_model, fx, fy, cx, cy);
                                                  ~~~~~~~~~~~~~~~~~~^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:248:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/grantaccess", "Is real");
                                           ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:248:36: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/grantaccess", "Is real");
                                                        ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:248:81: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/grantaccess", "Is real");
                                                                                                     ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:257:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/denyaccess", "Is not real");
                                           ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:257:36: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/denyaccess", "Is not real");
                                                        ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:257:80: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
                        send_message(8080, "10.5.5.39", "http://10.5.5.39/notification/denyaccess", "Is not real");
                                                                                                    ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:270:21: error: no member named 'DrawBox' in namespace 'LandmarkDetector'
                LandmarkDetector::DrawBox(captured_image, pose_estimate_to_draw, cv::Scalar((1 - vis_certainty)*255.0, 0, vis_certainty * 255), thickness, fx, fy, cx, cy);
                ~~~~~~~~~~~~~~~~~~^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:272:22: error: no member named 'track_gaze' in 'LandmarkDetector::FaceModelParameters'
                if (det_parameters.track_gaze && detection_success && face_model.eye_model)
                    ~~~~~~~~~~~~~~ ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:274:4: error: use of undeclared identifier 'FaceAnalysis'; did you mean 'GazeAnalysis'?
                        FaceAnalysis::DrawGaze(captured_image, face_model, gazeDirection0, gazeDirection1, fx, fy, cx, cy);
                        ^~~~~~~~~~~~
                        GazeAnalysis
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/../../lib/local/GazeAnalyser/include/GazeEstimation.h:42:11: note: 'GazeAnalysis' declared here
namespace GazeAnalysis
          ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:274:18: error: no member named 'DrawGaze' in namespace 'GazeAnalysis'
                        FaceAnalysis::DrawGaze(captured_image, face_model, gazeDirection0, gazeDirection1, fx, fy, cx, cy);
                        ~~~~~~~~~~~~~~^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:325:8: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
        error("ERROR opening socket SERVER");
              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:331:70: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int')
        if (bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) 
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:332:14: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
              error("ERROR on binding SERVER");
                    ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:337:10: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
          error("ERROR on accept SERVER");
                ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:346:8: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
        error("ERROR opening CLIENT socket");
              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:359:8: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
        error("ERROR connecting CLIENT");
              ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:368:17: error: no member named 'track_gaze' in 'LandmarkDetector::FaceModelParameters'
        det_parameters.track_gaze = true;
        ~~~~~~~~~~~~~~ ^
/Users/alpullu/Projects/SaFpenFace/exe/FaceLandmarkVid/FaceLive.cpp:450:23: error: no member named 'track_gaze' in 'LandmarkDetector::FaceModelParameters'
                        if (det_parameters.track_gaze && detection_success && clnf_model.eye_model)
                            ~~~~~~~~~~~~~~ ^

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