首页 文章

std :: thread上的OpenPose链接错误

提问于
浏览
0

所以试图从源代码构建OpenPose,并遇到了链接问题 . 目前的环境是Ubuntu 16.04.4 . OpenCV版本是3.3.1 . GCC版本是5.4.0 .

[87%]已 Build 目标openpose [87%]链接CXX可执行文件1_extract_from_image.bin [87%]链接CXX可执行文件openpose.bin [87%]链接CXX可执行文件3_user_input_processing_and_output.bin [87%]链接CXX可执行文件2_extract_pose_or_heatmat_from_image.bin [87 %]链接CXX可执行文件1_custom_post_processing.bin [87%]链接CXX可执行文件2_user_processing_function.bin [88%]链接CXX可执行文件1_openpose_read_and_display.bin /home/ubuntu/anaconda3/envs/tensorflow_p36/lib/libopencv_objdetect.so.3.3.1:undefined std :: thread :: _ State :: ~_State()@ GLIBCXX_3.4.22 /home/ubuntu/anaconda3/envs/tensorflow_p36/lib/libopencv_objdetect.so.3.3.1的引用:对std :: thread :: _M_start_thread的未定义引用(std :: unique_ptr <std :: thread :: _ State,std :: default_delete <std :: thread :: _ State >>,void()())@ GLIBCXX_3.4.22 / home / ubuntu / anaconda3 / envs / tensorflow_p36 /lib/libopencv_objdetect.so.3.3.1:对std :: thread :: _ State@GLIBCXX_3.4.22 collect2的错误定义的typeinfo:错误:l d返回1退出状态示例/ openpose / CMakeFiles / openpose.bin.dir / build.make:150:目标'examples / openpose / openpose.bin'的配方失败make [2]:** [examples / openpose / openpose .bin]错误1 CMakeFiles / Makefile2:1135:目标'examples / openpose / CMakeFiles / openpose.bin.dir / all'的配方失败make [1]:*** [examples / openpose / CMakeFiles / openpose.bin.dir / all]错误2 make [1]:***等待未完成的工作....

1 回答

  • 0

    我刚刚遇到了同样的问题并安装了最新版本的gcc和g,这解决了这个问题 . 喜欢这里:https://askubuntu.com/a/789417

    我刚刚安装了版本8(因此gcc-8和g -8) . 然后你必须按照那里所述调用update-alternatives .

相关问题