感谢支持
我们一直在努力

Arch下通过yaourt安装qterm-unstable出错的解决

这两天手痒,又更新了一下Arch中aur上面的程序,结果发现qterm编译不过去了,出现以下的错误提示:
[ 71%] Building CXX object src/CMakeFiles/qterm.dir/qtermiplocation.o
[ 72%] Building CXX object src/CMakeFiles/qterm.dir/qtermparam.o
[ 73%] Building CXX object src/CMakeFiles/qterm.dir/qtermscreen.o
[ 74%] Building CXX object src/CMakeFiles/qterm.dir/qtermsocket.o
[ 75%] Building CXX object src/CMakeFiles/qterm.dir/qtermsound.o
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:10:30: 错误:Phonon/MediaObject:没有那个文件或目录
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp: In member function ‘virtual void QTerm::PhononSound::play()’:
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:26: 错误:‘Phonon’未声明
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:26: 错误:‘player’在此作用域中尚未声明
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:26: 错误:‘Phonon’未声明
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:26: 错误:‘Phonon’未声明
/tmp/yaourt-tmp-root/aur-qterm-unstable/qterm-unstable/src/qterm-0.5.10/src/qtermsound.cpp:26: 错误:‘Phonon’未声明
make[2]: *** [src/CMakeFiles/qterm.dir/qtermsound.o] 错误 1
make[1]: *** [src/CMakeFiles/qterm.dir/all] 错误 2
make: *** [all] 错误 2
==> 错误: 创建失败。
    正在放弃…
Error: Makepkg was unable to build qterm-unstable package.


Error: unable to update qterm-unstable


再次证明学习Linux,google是何其的重要啊。解决办法如下:
编译时将默认的-DQT_PHONON_INCLUDE_DIR=/usr/include/Phonon/  换成 -DQT_PHONON_INCLUDE_DIR=/usr/include/KDE/

赞(0) 打赏
转载请注明出处:服务器评测 » Arch下通过yaourt安装qterm-unstable出错的解决
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏