• 6933阅读
  • 2回复

LINUX下使用qmake 生成 QT的范例程序 的makefile, 出问题(急!!!!) [复制链接]

上一主题 下一主题
离线weiming
 
只看楼主 倒序阅读 楼主  发表于: 2008-11-07
— 本帖被 XChinux 从 Qt for Windows 移动到本区(2010-02-07) —
我安装QT在 /etc/profile 环境变量:
export PATH=$PATH:/opt/qt-4.4.3/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt-4.4.3/lib
export QTDIR=/opt/qt-4.4.3
export QMAKESPEC=$QTDIR/mkspecs/linux-g++

为生成makefile,使用以下命令
[root@thalix_dev1 screenshot]# qmake -o Makefile screenshot.pro
Cannot find directory: ../common
Cannot find directory: ../common
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
......
终端不断打印
QFile::open: No file name specified

如何解决呢 ?
离线fychit

只看该作者 1楼 发表于: 2008-11-12
帮顶
嵌入式Linux系统开发QQ群:72659572
欢迎加入讨论!
离线XChinux

只看该作者 2楼 发表于: 2008-11-12
先看看你的qmake的版本是多少,是不是Qt4的qmake,可能是Qt3的,因为你的 PATH变量设置的$QTDIR/bin是追加到PATH上的。另一个是QMAKESPEC,设置为linux-g++就可以了。
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个