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

weixin_38088019 weixin_38088019 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
具体信息如下所示:[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]# 这是为什么呀?
...全文
评论
收藏 已收藏
分享
返回顶部