{"action":"created","issue":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/742","repository_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose","labels_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/742/labels{/name}","comments_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/742/comments","events_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/742/events","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/742","id":342959703,"node_id":"MDU6SXNzdWUzNDI5NTk3MDM=","number":742,"title":"error：/usr/bin/ld: cannot find -lpthreads","user":{"login":"boris-lb","id":39977498,"node_id":"MDQ6VXNlcjM5OTc3NDk4","avatar_url":"https://avatars1.githubusercontent.com/u/39977498?v=4","gravatar_id":"","url":"https://api.github.com/users/boris-lb","html_url":"https://github.com/boris-lb","followers_url":"https://api.github.com/users/boris-lb/followers","following_url":"https://api.github.com/users/boris-lb/following{/other_user}","gists_url":"https://api.github.com/users/boris-lb/gists{/gist_id}","starred_url":"https://api.github.com/users/boris-lb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boris-lb/subscriptions","organizations_url":"https://api.github.com/users/boris-lb/orgs","repos_url":"https://api.github.com/users/boris-lb/repos","events_url":"https://api.github.com/users/boris-lb/events{/privacy}","received_events_url":"https://api.github.com/users/boris-lb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-20T03:22:23Z","updated_at":"2018-07-24T02:53:45Z","closed_at":null,"author_association":"NONE","body":"I am getting this error while building openpose using make all -j8 command in centos7.\r\nCMakeError.log as follows：\r\n\r\nDetermining if the pthread_create exist failed with the following output:\r\nChange Dir: /home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"/usr/bin/gmake\" \"cmTC_b5f50/fast\"\r\ngmake[3]: 进入目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\n/usr/bin/gmake -f CMakeFiles/cmTC_b5f50.dir/build.make CMakeFiles/cmTC_b5f50.dir/build\r\ngmake[4]: 进入目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\nBuilding C object CMakeFiles/cmTC_b5f50.dir/CheckSymbolExists.c.o\r\n/usr/bin/cc     -o CMakeFiles/cmTC_b5f50.dir/CheckSymbolExists.c.o   -c /home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c\r\nLinking C executable cmTC_b5f50\r\n/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b5f50.dir/link.txt --verbose=1\r\n/usr/bin/cc       CMakeFiles/cmTC_b5f50.dir/CheckSymbolExists.c.o  -o cmTC_b5f50 -rdynamic \r\nCMakeFiles/cmTC_b5f50.dir/CheckSymbolExists.c.o：在函数‘main’中：\r\nCheckSymbolExists.c:(.text+0x16)：对‘pthread_create’未定义的引用\r\ncollect2: 错误：ld 返回 1\r\ngmake[4]: *** [cmTC_b5f50] 错误 1\r\ngmake[4]: 离开目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\ngmake[3]: *** [cmTC_b5f50/fast] 错误 2\r\ngmake[3]: 离开目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\n\r\nFile /home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:\r\n/* */\r\n#include <pthread.h>\r\n\r\nint main(int argc, char** argv)\r\n{\r\n  (void)argv;\r\n#ifndef pthread_create\r\n  return ((int*)(&pthread_create))[argc];\r\n#else\r\n  (void)argc;\r\n  return 0;\r\n#endif\r\n}\r\n\r\nDetermining if the function pthread_create exists in the pthreads failed with the following output:\r\nChange Dir: /home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp\r\n\r\nRun Build Command:\"/usr/bin/gmake\" \"cmTC_ca91f/fast\"\r\ngmake[3]: 进入目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\n/usr/bin/gmake -f CMakeFiles/cmTC_ca91f.dir/build.make CMakeFiles/cmTC_ca91f.dir/build\r\ngmake[4]: 进入目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\nBuilding C object CMakeFiles/cmTC_ca91f.dir/CheckFunctionExists.c.o\r\n/usr/bin/cc    -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_ca91f.dir/CheckFunctionExists.c.o   -c /usr/local/share/cmake-3.6/Modules/CheckFunctionExists.c\r\nLinking C executable cmTC_ca91f\r\n/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ca91f.dir/link.txt --verbose=1\r\n/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_ca91f.dir/CheckFunctionExists.c.o  -o cmTC_ca91f -rdynamic -lpthreads \r\n/usr/bin/ld: cannot find -lpthreads\r\ncollect2: 错误：ld 返回 1\r\ngmake[4]: *** [cmTC_ca91f] 错误 1\r\ngmake[4]: 离开目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\ngmake[3]: *** [cmTC_ca91f/fast] 错误 2\r\ngmake[3]: 离开目录“/home/liubo/OpenPose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeTmp”\r\n\r\nI see the seem problem in others, but in my computer, it cannot fixed. How can I do to fix it?"},"comment":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/comments/407263939","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/742#issuecomment-407263939","issue_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/742","id":407263939,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzI2MzkzOQ==","user":{"login":"boris-lb","id":39977498,"node_id":"MDQ6VXNlcjM5OTc3NDk4","avatar_url":"https://avatars1.githubusercontent.com/u/39977498?v=4","gravatar_id":"","url":"https://api.github.com/users/boris-lb","html_url":"https://github.com/boris-lb","followers_url":"https://api.github.com/users/boris-lb/followers","following_url":"https://api.github.com/users/boris-lb/following{/other_user}","gists_url":"https://api.github.com/users/boris-lb/gists{/gist_id}","starred_url":"https://api.github.com/users/boris-lb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boris-lb/subscriptions","organizations_url":"https://api.github.com/users/boris-lb/orgs","repos_url":"https://api.github.com/users/boris-lb/repos","events_url":"https://api.github.com/users/boris-lb/events{/privacy}","received_events_url":"https://api.github.com/users/boris-lb/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T02:53:45Z","updated_at":"2018-07-24T02:53:45Z","author_association":"NONE","body":"@philipxyc I had copy the file as you said, but the problem of “CMakeFiles/cmTC_b5f50.dir/CheckSymbolExists.c.o：在函数‘main’中：\r\nCheckSymbolExists.c:(.text+0x16)：对‘pthread_create’未定义的引用” also exist, I want to know  what's you version of gcc and cmake？ "}}
{"actor":{"display_login":"boris-lb"}}