QT:make: Nothing to be done for `first'和error:QtSql:No such file or directory
来源:互联网 发布:网络游戏洗钱 知乎 编辑:程序博客网 时间:2024/06/06 02:03
这是QT编程中常见的两个编译错误.可能你的代码在window下编译能正常通过,可是到到linux下编译就出现这个问题.解决方案如下:
在你编译QT代码之前最好先make clean一下, 因为*.o之类的文件可能影响到编译.
在qt目录下make后出现以下错误:
make: Nothing to be done for `first'
解决:将你当前目录下的,删除你程序主要的 *.cpp 和 *.h文件以外的所有文件。
接着执行:
#qmake -project
#qmake
#make
运行正常。
QtNetwork: No such file or directory 问题的解决
最近学习Qt,在Qt4.3.2版本编译包含如下头文件时
#include <QtNetWork>
程序在nmake时出现
server.h:7:21: error: QtNetwork: No such file or directory
终于找到了解决办法
在当前目录下找到 .pro文件
在其中手工添加一行:
QT += network
具体操作步骤如下
1: qmake -project
2: 手工添加 Qt += network
3: qmake
4: nmake
OK,一切正常(假如代码中没有错误)
#include <QtNetWork>
程序在nmake时出现
server.h:7:21: error: QtNetwork: No such file or directory
终于找到了解决办法
在当前目录下找到 .pro文件
在其中手工添加一行:
QT += network
具体操作步骤如下
1: qmake -project
2: 手工添加 Qt += network
3: qmake
4: nmake
OK,一切正常(假如代码中没有错误)
- QT:make: Nothing to be done for `first'和error:QtSql:No such file or directory
- QT:make: Nothing to be done for `first'和error:QtSql:No such file or directory
- 【Qt开发】 QT:make: Nothing to be done for `first'和error:QtSql:No such file or directory
- 关于QT error:QtSql:No such file or directory
- make: Nothing to be done for 'first'
- error: QtSql: No such file or directory 问题
- make: Nothing to be done for 'all'
- make: Nothing to be done for 'all'
- Make: Nothing to be done for 'all'. Make: Nothing to be done for 'default'.
- make: Nothing to be done for `unix';./libtool: Command not found make: *** [jcapimin.lo] Error 127
- Nova ERROR : libvirtError: Unable to create cgroup for instance: No such file or directory
- Error connecting to database [No such file or directory]
- make: Nothing to be done for `all' 解决方法 ---实验2
- make: Nothing to be done for `all' 解决方法 ---实验2
- make: Nothing to be done for `all'的解决办法
- make: Nothing to be done for `all' 解决方法
- make: Nothing to be done for `all_modules'.问题解决
- makefile 错误 make: Nothing to be done for...
- Running Hadoop On Ubuntu Linux (Single-Node Cluster)
- 颜色对照表
- php define防止恶意访问某些模块
- P,NP,NP-complete,NP-hard
- php过滤xss函数
- QT:make: Nothing to be done for `first'和error:QtSql:No such file or directory
- The C10K problem 知识点整理
- SunOS 操作命令及linux区别整理
- 一步一步复习数据结构和算法基础-斐波那契查找法
- 6.8 对自己的I D概念应该有所了解
- 对wait events 和statistics 的理解小记
- 待下载
- iPhone Hacker Links
- Zoom to Selected Globe Features