QT多线程中undefined reference to 'pthread_create'错误的解决
来源:互联网 发布:php bindvalue 编辑:程序博客网 时间:2024/05/18 03:37
build文件内容
#!/bin/bash
source /home/qtopia/arm-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
qmake -spec /home/qtopia/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -o Makefile *.pro
make clean
make
在执行./build后生成的makefile中找到
LINK = arm-linux-g++ 在这一行后面加上 -lpthread
然后执行make
每次都要这么改很麻烦
于是在生成的makefile里找到了这么一句。
Makefile: hello.pro /home/qtopia/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++/qmake.conf ../qtopia-2.2.0-FriendlyARM/qtopia/src/projects.pri \
OK,在/home/qtopia/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++/qmake.conf
里找到这句
QMAKE_LINK = arm-linux-g++
在该行后面加上-pthread即可。
- QT多线程中undefined reference to 'pthread_create'错误的解决
- 解决QT多线程中undefined reference to 'pthread_create'的错误
- QT2.2.0中多线程中遇到undefined reference to `pthread_create'问题的解决
- undefined reference to `pthread_create'的错误。
- 解决undefined reference to `pthread_create'的问题
- 解决undefined reference to `pthread_create'的方法
- undefined reference to 'pthread_create' 错误
- undefined reference to `pthread_create'解决
- qt下添加pthread 解决undefined reference to `pthread_create'
- Qt中关于undefined reference to `vtable for 错误解决
- linux多线程 undefined reference to 'pthread_create'
- 多线程 undefined reference to 'pthread_create' 解决办法
- undefined reference to `pthread_create'错误通过makefie的解决方法
- gcc 编译出现undefined reference to‘pthread_create’的错误
- 类似undefined reference to 'pthread_create'问题的解决
- 线程库编译问题: undefined reference to 'pthread_create'的解决
- 多线程编程中遇到的问题——undefined reference to 'pthread_create'
- 连接错误undefined reference to `pthread_create'
- autotools使用
- 初步认识knockoutjs
- Installing Indy for Delphi XE
- decodeURIComponent URI malformed 错误
- c++动态联编与静态联编
- QT多线程中undefined reference to 'pthread_create'错误的解决
- 并查集
- java获取区间随机数
- 我的OpenCV学习笔记(15):利用反向投影直方图查找特定的内容
- 通过Flash上传文件提示出错:onHTTPError
- Mock RequestContextListener
- C++编译错误 error C2143 error C2146
- UINavigationController
- 如何编译并打开WinCE Bluetooth Stack的LOG