• 4808阅读
  • 0回复

靜態編譯 phonon 問題 [复制链接]

上一主题 下一主题
离线murmuring2
 
只看楼主 倒序阅读 楼主  发表于: 2010-09-01
— 本帖被 XChinux 从 General Qt Programming 移动到本区(2011-01-02) —
我想要在程式中播放音效,如果使用動態編譯完全沒問題 ;
但使用靜態編譯僅僅在宣告上就會出現問題 :

./release\mainwindow.o:mainwindow.cpp::-1: error: undefined reference to `_imp___ZN6Phonon11VideoPlayerC1ENS_8CategoryEP7QWidget'

本人以下都有做到 :
1. .pro 加上 QT += phonon
2.   #include <phonon> 引入
3. Phonon::VideoPlayer *specialSound 也沒出現問題

但在new物件時就會出現上述問題 specialSound = new Phonon::VideoPlayer(Phonon::VideoCategory,this) ;
請問一下各位是什麼問題??
快速回复
限100 字节
 
上一个 下一个