主题 : Unknown option -lpthread 求助! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 108986
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2014-10-13
最后登录: 2014-12-26
楼主  发表于: 2014-11-14 14:33

 Unknown option -lpthread 求助!

我运行完两条指令后:
source /opt/mini6410/qtopia-free-2.2.0/setQpeEnv
qmake -spec qws/linux-arm-g++ -lpthread  -o Makefile *.pro

出现了这样的错误,

***Unknown option -lpthread
Usage: qmake [mode] [options] [files]

   QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

无法生成Makefile,请问我该从哪个方向入手解决这个问题呢?谢谢各位高手。
级别: 论坛版主
UID: 103400
精华: 0
发帖: 434
金钱: 2235 两
威望: 447 点
贡献值: 0 点
综合积分: 868 分
注册时间: 2014-04-24
最后登录: 2016-10-10
1楼  发表于: 2014-11-14 15:39

 回 楼主(symbolghj) 的帖子

环境缺少了库,配置好环境就行了