qte环境编译后,出现问题,求解决方法

weixin_38088019 2019-09-19 05:46:13
具体信息如下所示:[root@localhost musicplayer]# qmake musicplayer.pro[root@localhost musicplayer]# makeg++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../mkspecs/linux-g++ -I. -I../../../include/QtCore -I../../../include/QtGui -I../../../include -I. -I. -o main.o main.cppIn file included from main.cpp:43:mainwindow.h:46:18: error: Phonon: No such file or directorymainwindow.h:47:30: error: Phonon/AudioOutput: No such file or directorymainwindow.h:48:29: error: Phonon/SeekSlider: No such file or directorymainwindow.h:49:30: error: Phonon/MediaObject: No such file or directorymainwindow.h:50:31: error: Phonon/VolumeSlider: No such file or directorymainwindow.h:51:38: error: Phonon/BackendCapabilities: No such file or directoryIn file included from main.cpp:43:mainwindow.h:78: error: âPhononâ has not been declaredmainwindow.h:78: error: expected â,â or â...â before ânewStateâmainwindow.h:80: error: expected â,â or â...â before â::â tokenmainwindow.h:80: error: ISO C++ forbids declaration of âPhononâ with no typemainwindow.h:81: error: âPhononâ has not been declaredmainwindow.h:81: error: expected â,â or â...â before ânewStateâmainwindow.h:92: error: âPhononâ has not been declaredmainwindow.h:92: error: ISO C++ forbids declaration of âSeekSliderâ with no typemainwindow.h:92: error: expected â;â before â*â tokenmainwindow.h:93: error: âPhononâ has not been declaredmainwindow.h:93: error: ISO C++ forbids declaration of âMediaObjectâ with no typemainwindow.h:93: error: expected â;â before â*â tokenmainwindow.h:94: error: âPhononâ has not been declaredmainwindow.h:94: error: ISO C++ forbids declaration of âMediaObjectâ with no typemainwindow.h:94: error: expected â;â before â*â tokenmainwindow.h:95: error: âPhononâ has not been declaredmainwindow.h:95: error: ISO C++ forbids declaration of âAudioOutputâ with no typemainwindow.h:95: error: expected â;â before â*â tokenmainwindow.h:96: error: âPhononâ has not been declaredmainwindow.h:96: error: ISO C++ forbids declaration of âVolumeSliderâ with no typemainwindow.h:96: error: expected â;â before â*â tokenmainwindow.h:97: error: âPhononâ was not declared in this scopemainwindow.h:97: error: template argument 1 is invalidmake: *** [main.o] Error 1[root@localhost musicplayer]# 这是为什么呀?
...全文
60 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

473

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧