Arch下通过yaourt安装qterm

这两天手痒,又更新了一下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/

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/27338.html