zonyitoo / doubanfm-qt

A DoubanFM client
Other
511 stars 99 forks source link

关于Qt5的小问题 #53

Closed RanchoCooper closed 8 years ago

RanchoCooper commented 8 years ago

OS: Ubuntu14.04

make的时候出错了...不知道为什么

后面一部分如下:

main.cpp: In function ‘int main(int, char**)’:
main.cpp:44:7: error: ‘class QApplication’ has no member named ‘setApplicationDisplayName’
     a.setApplicationDisplayName("QDoubanFM");
       ^
make: *** [release_tmp/obj/main.o] 错误 1
zonyitoo commented 8 years ago

你在用Qt4编译。

RanchoCooper commented 8 years ago

机子上qt4和qt5都有,那该咋切换呢

$ qmake -v
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu
zonyitoo commented 8 years ago

Google吧。我在OS X上没有遇到你的这个问题。

zeroch commented 8 years ago

@RanchoCooper 找到qt5的位置 比如说 ~/Qt/5.4/gcc4.8/qmake 最简单的就是直接用这个full path来跑, 或者你设置一个alias也可以呀.

zonyitoo commented 8 years ago

已一个月没有回应,先Close.

RanchoCooper commented 8 years ago

@Arch now, with out Chinese input... Maybe due to Ubuntu preinstalled qt4&5 without my own preference Later try agin in Arch :)