qt 错误记录
来源:互联网 发布:计算型材米重的软件 编辑:程序博客网 时间:2024/06/09 18:03
- 1. No tool chain set from kit “Desktop”.
打开qtcreator时出现上述错误,原因是qtcreator的编译器配置项没有找到可用的编译器,查看是否下载了可用的g++,如果下载了也detected不到,那就手动添加,添加完成后就行了。
- 2. make: arm-none-linux-gnueabi-g++: Command not found
/usr/local/Qt5.6-arm/bin/uic ../../PZJBY/MainWindow.ui -o ui_MainWindow.harm-none-linux-gnueabi-g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../PZJBY -I. -I/usr/local/Qt5.6-arm/include -I/usr/local/Qt5.6-arm/include/QtWidgets -I/usr/local/Qt5.6-arm/include/QtGui -I/usr/local/Qt5.6-arm/include/QtCore -I. -I. -I/home/anzyelay/Desktop/arm/tslib/mybuild/include -I/usr/local/Qt5.6-arm/mkspecs/linux-arm-gnueabi-g++ -o main.o ../../PZJBY/main.cppmake: arm-none-linux-gnueabi-g++: Command not foundmake: *** [main.o] Error 12715:51:58: 进程"/usr/bin/make"退出,退出代码 2 。Error while building/deploying project PZJBY (kit: nanopi)When executing step "Make"
qmake 用到的mkspecs配置文件qmake.conf有问题,如果仅仅是编译器名字不对可以直接修改,不同平台编译时除了要指定相应的qmake,还要设置好QMAKESPEC宏,例如
针对arm-linux平台: export
QMAKESPEC=/usr/lib/qt4/mkspecs/qws/linux-arm-g++
针对x86-linux平台 export
QMAKESPEC=/usr/lib/qt4/mkspecs/qws/linux-g++-32或者如下图直接指定配置文件
- 3.QPainter::setPen: Painter not active
在画图设置画笔时显示如上错误,原因是QPainter对象还未激活,使用begin方法激活就可以了。帮助文档中有说明如下:
The isActive() function indicates whether the painter is active. A painter is activated by the begin() function and the constructor that takes a QPaintDevice argument. The end() function, and the destructor, deactivates it.
要么用begin()方法,要么在构造函数时赋一个绘图设备参数给QPainter才能active它。
0 0
- qt错误修改记录
- qt错误问题记录
- qt 错误记录
- Qt 错误出现记录
- QT 常遇错误记录
- Qt : 记录一个编译错误
- QT 遇到的错误记录
- 安装 ROS Qt Creator Plugin's 错误记录
- 记录一个QT+Opencv+Cmake的错误的解决
- qt 记录
- Qt记录
- Qt记录
- QT错误.
- qt错误
- Qt错误
- 错误记录
- 错误记录
- 错误记录
- 滴滴出行2017秋招笔试编程题(一)——连续最大和、末尾0的个数、进制转换
- jQuery Mobile
- java8函数式编程之二:函数式接口的引用
- 以太网PHY 芯片之 MII/MDIO接口详解
- 数据结构基本结构 数据结构期末复习
- qt 错误记录
- MySQL 的 TRUNCATE 和 DELETE 区别
- 微信小程序开发教程--从零开始
- SSH整合报错:Could not obtain connection to query metadata
- 混淆矩阵
- tcp文件传输(udp发送消息确定是否接收)
- leetcode有关链表
- linux学习(10) 使用XShel连接跳板机步骤
- Quartz入门