为什么make输出的编译命令会跟qt3相关,本人已经安装了qt4
- $qmake -v
- $Qmake version: 1.07a (Qt 3.3.8b)
- $Qmake is free software from Trolltech ASA.
怎么qmake的版本变成了qt3了,进入/usr/bin目录下
root@ubuntu:/home/yyy# cd /usr/bin
root@ubuntu:/usr/bin# ls -l qmake
lrwxrwxrwx 1 root root 23 2009-10-09 09:35 qmake -> /etc/alternatives/qmake
查看qmake的信息,它是一个链接指向的是/etc/alternatives/qmake
root@ubuntu:/usr/bin# ls -l /etc/alternatives/qmake
lrwxrwxrwx 1 root root 18 2009-12-08 12:46 /etc/alternatives/qmake -> /usr/bin/qmake-qt3
终于找到的根源,原来qmake被设置成了qmake-qt3
强行修改
root@ubuntu:/usr/bin# rm /etc/alternatives/qmake
root@ubuntu:/usr/bin# ln -s /usr/bin/qmake-qt4 /etc/alternatives/qmake
root@ubuntu:/usr/bin# qmake -v
QMake version 2.01a
Using Qt version 4.5.0 in /usr/lib
阅读(1418) | 评论(0) | 转发(0) |