V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qq674949301
V2EX  ›  编程

用 tomato-arm 的 toolchain 在 ubuntu 下交叉编译出现 Missing Pthread Library

  •  
  •   qq674949301 · 2015-11-27 08:15:51 +08:00 · 2586 次点击
    这是一个创建于 3077 天前的主题,其中的信息可能已经有所发展或是发生改变。
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... no
    checking whether pthreads work with -pthreads... no
    checking whether pthreads work with -mthreads... no
    checking for the pthreads library -lpthread... no
    checking whether pthreads work with --thread-safe... no
    checking whether pthreads work with -mt... no
    checking for pthread-config... no
    configure: error: Missing Pthread Library
    请各位大侠帮忙看看该如何解决!
    2 条回复    2015-11-27 11:13:30 +08:00
    fxxkgw
        1
    fxxkgw  
       2015-11-27 11:11:44 +08:00
    makefile 里面加上 pthread 库就可以了
    fxxkgw
        2
    fxxkgw  
       2015-11-27 11:13:30 +08:00
    几年没做嵌入式了 我记得以前随便写个.c 文件 只要用了 pthread 系列函数 直接编成 a.out 跑就提示缺少 pthread 库 需要在编的时候链接上 pthread.so 只在 gcc 时候加上-o 参数
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2525 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 12:01 · PVG 20:01 · LAX 05:01 · JFK 08:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.