{"action":"opened","issue":{"url":"https://api.github.com/repos/seetaface/SeetaFaceEngine/issues/190","repository_url":"https://api.github.com/repos/seetaface/SeetaFaceEngine","labels_url":"https://api.github.com/repos/seetaface/SeetaFaceEngine/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/seetaface/SeetaFaceEngine/issues/190/comments","events_url":"https://api.github.com/repos/seetaface/SeetaFaceEngine/issues/190/events","html_url":"https://github.com/seetaface/SeetaFaceEngine/issues/190","id":304627800,"number":190,"title":"Compile Error","user":{"login":"EvergreenHZ","id":24478319,"avatar_url":"https://avatars2.githubusercontent.com/u/24478319?v=4","gravatar_id":"","url":"https://api.github.com/users/EvergreenHZ","html_url":"https://github.com/EvergreenHZ","followers_url":"https://api.github.com/users/EvergreenHZ/followers","following_url":"https://api.github.com/users/EvergreenHZ/following{/other_user}","gists_url":"https://api.github.com/users/EvergreenHZ/gists{/gist_id}","starred_url":"https://api.github.com/users/EvergreenHZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvergreenHZ/subscriptions","organizations_url":"https://api.github.com/users/EvergreenHZ/orgs","repos_url":"https://api.github.com/users/EvergreenHZ/repos","events_url":"https://api.github.com/users/EvergreenHZ/events{/privacy}","received_events_url":"https://api.github.com/users/EvergreenHZ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-13T04:54:00Z","updated_at":"2018-03-13T04:54:00Z","closed_at":null,"author_association":"NONE","body":"  I am working on Ubuntu 16.04 with cmake 3.5.1, opencv3.3.0\r\n> copy the \"face detection lib\" and \"face_detection.h\" to the directory \"build\" for building the test example.\r\nI move the 'libseeta_facedet_lib.so' which was built in FaceDetection/build/ and 'face_detection.h' into FaceAlignment/build/ , and I got some errors:\r\n\r\n`Scanning dependencies of target seeta_fa_lib\r\n[ 16%] Building CXX object CMakeFiles/seeta_fa_lib.dir/src/cfan.cpp.o\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp: In member function ‘void CCFAN::FacialPointLocate(const unsigned char*, int, int, seeta::FaceInfo, float*)’:\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:208:33: error: ‘isnan’ was not declared in this scope\r\n       if (isnan(fea[j * 128 + i]))\r\n                                 ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:208:33: note: suggested alternative:\r\nIn file included from /home/huaizhi/SeetaFaceEngine/FaceAlignment/include/cfan.h:33:0,\r\n                 from /home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:33:\r\n/usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’\r\n     isnan(_Tp __x)\r\n     ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:284:33: error: ‘isnan’ was not declared in this scope\r\n       if (isnan(fea[j * 128 + i]))\r\n                                 ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:284:33: note: suggested alternative:\r\nIn file included from /home/huaizhi/SeetaFaceEngine/FaceAlignment/include/cfan.h:33:0,\r\n                 from /home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:33:\r\n/usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’\r\n     isnan(_Tp __x)\r\n     ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp: In member function ‘void CCFAN::InitModel(const char*)’:\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:111:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fread(mean_shape_, sizeof(float), pts_num_ * 2, fp);\r\n                                                      ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:114:41: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fread(&lan1_size_, sizeof(int), 1, fp);\r\n                                         ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:116:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fread(lan1_structure_, sizeof(int), lan1_size_, fp);\r\n                                                      ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:124:53: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n     fread(lan1_w_[i], sizeof(float), layer_size, fp);\r\n                                                     ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:127:65: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n     fread(lan1_b_[i], sizeof(float), lan1_structure_[i + 1], fp);\r\n                                                                 ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:131:41: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fread(&lan2_size_, sizeof(int), 1, fp);\r\n                                         ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:133:54: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fread(lan2_structure_, sizeof(int), lan2_size_, fp);\r\n                                                      ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:141:53: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n     fread(lan2_w_[i], sizeof(float), layer_size, fp);\r\n                                                     ^\r\n/home/huaizhi/SeetaFaceEngine/FaceAlignment/src/cfan.cpp:144:65: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n     fread(lan2_b_[i], sizeof(float), lan2_structure_[i + 1], fp);\r\n                                                                 ^\r\nCMakeFiles/seeta_fa_lib.dir/build.make:62: recipe for target 'CMakeFiles/seeta_fa_lib.dir/src/cfan.cpp.o' failed\r\nmake[2]: *** [CMakeFiles/seeta_fa_lib.dir/src/cfan.cpp.o] Error 1\r\nCMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/seeta_fa_lib.dir/all' failed\r\nmake[1]: *** [CMakeFiles/seeta_fa_lib.dir/all] Error 2\r\nMakefile:83: recipe for target 'all' failed\r\nmake: *** [all] Error 2`\r\nplease help me!"}}
{"actor":{"display_login":"EvergreenHZ"}}