• 10485阅读
  • 3回复

编译的static版QtWebkit测试Example [复制链接]

上一主题 下一主题
离线ebillow
 

只看楼主 倒序阅读 楼主  发表于: 2010-05-08
编译的static版QtWebkit.lib,phonon.lib,测试Qt的Example fcncy链接错误,我把构造函数改成
view = new QWebView(this);
view->load(QUrl("http://www.google.com/ncr"));
仍然一样错误:
1>Linking...
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??1Path@Phonon@@QAE@XZ (public: __thiscall Phonon::Path::~Path(void)) imported in function "private: __thiscall WebCore::MediaPlayerPrivate::MediaPlayerPrivate(class WebCore::MediaPlayer *)" (??0MediaPlayerPrivate@WebCore@@AAE@PAVMediaPlayer@1@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?createPath@Phonon@@YA?AVPath@1@PAVMediaNode@1@0@Z (class Phonon::Path __cdecl Phonon::createPath(class Phonon::MediaNode *,class Phonon::MediaNode *)) imported in function "private: __thiscall WebCore::MediaPlayerPrivate::MediaPlayerPrivate(class WebCore::MediaPlayer *)" (??0MediaPlayerPrivate@WebCore@@AAE@PAVMediaPlayer@1@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??0AudioOutput@Phonon@@QAE@PAVQObject@@@Z (public: __thiscall Phonon::AudioOutput::AudioOutput(class QObject *)) imported in function "private: __thiscall WebCore::MediaPlayerPrivate::MediaPlayerPrivate(class WebCore::MediaPlayer *)" (??0MediaPlayerPrivate@WebCore@@AAE@PAVMediaPlayer@1@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??0VideoWidget@Phonon@@QAE@PAVQWidget@@@Z (public: __thiscall Phonon::VideoWidget::VideoWidget(class QWidget *)) imported in function "private: __thiscall WebCore::MediaPlayerPrivate::MediaPlayerPrivate(class WebCore::MediaPlayer *)" (??0MediaPlayerPrivate@WebCore@@AAE@PAVMediaPlayer@1@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??0MediaObject@Phonon@@QAE@PAVQObject@@@Z (public: __thiscall Phonon::MediaObject::MediaObject(class QObject *)) imported in function "private: __thiscall WebCore::MediaPlayerPrivate::MediaPlayerPrivate(class WebCore::MediaPlayer *)" (??0MediaPlayerPrivate@WebCore@@AAE@PAVMediaPlayer@1@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??1MediaObject@Phonon@@UAE@XZ (public: virtual __thiscall Phonon::MediaObject::~MediaObject(void)) imported in function "public: virtual void * __thiscall Phonon::MediaObject::`scalar deleting destructor'(unsigned int)" (??_GMediaObject@Phonon@@UAEPAXI@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??1VideoWidget@Phonon@@UAE@XZ (public: virtual __thiscall Phonon::VideoWidget::~VideoWidget(void)) imported in function "public: virtual void * __thiscall Phonon::VideoWidget::`scalar deleting destructor'(unsigned int)" (??_GVideoWidget@Phonon@@UAEPAXI@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??1AudioOutput@Phonon@@UAE@XZ (public: virtual __thiscall Phonon::AudioOutput::~AudioOutput(void)) imported in function "public: virtual void * __thiscall Phonon::AudioOutput::`scalar deleting destructor'(unsigned int)" (??_GAudioOutput@Phonon@@UAEPAXI@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?hasVideo@MediaObject@Phonon@@QBE_NXZ (public: bool __thiscall Phonon::MediaObject::hasVideo(void)const ) imported in function "public: virtual bool __thiscall WebCore::MediaPlayerPrivate::hasVideo(void)const " (?hasVideo@MediaPlayerPrivate@WebCore@@UBE_NXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?setVolume@AudioOutput@Phonon@@QAEXN@Z (public: void __thiscall Phonon::AudioOutput::setVolume(double)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::load(class WebCore::String const &)" (?load@MediaPlayerPrivate@WebCore@@UAEXABVString@2@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??1MediaSource@Phonon@@QAE@XZ (public: __thiscall Phonon::MediaSource::~MediaSource(void)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::load(class WebCore::String const &)" (?load@MediaPlayerPrivate@WebCore@@UAEXABVString@2@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?setCurrentSource@MediaObject@Phonon@@QAEXABVMediaSource@2@@Z (public: void __thiscall Phonon::MediaObject::setCurrentSource(class Phonon::MediaSource const &)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::load(class WebCore::String const &)" (?load@MediaPlayerPrivate@WebCore@@UAEXABVString@2@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ??0MediaSource@Phonon@@QAE@ABVQUrl@@@Z (public: __thiscall Phonon::MediaSource::MediaSource(class QUrl const &)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::load(class WebCore::String const &)" (?load@MediaPlayerPrivate@WebCore@@UAEXABVString@2@@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?play@MediaObject@Phonon@@QAEXXZ (public: void __thiscall Phonon::MediaObject::play(void)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::play(void)" (?play@MediaPlayerPrivate@WebCore@@UAEXXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?pause@MediaObject@Phonon@@QAEXXZ (public: void __thiscall Phonon::MediaObject::pause(void)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::pause(void)" (?pause@MediaPlayerPrivate@WebCore@@UAEXXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?state@MediaObject@Phonon@@QBE?AW4State@2@XZ (public: enum Phonon::State __thiscall Phonon::MediaObject::state(void)const ) imported in function "public: virtual bool __thiscall WebCore::MediaPlayerPrivate::paused(void)const " (?paused@MediaPlayerPrivate@WebCore@@UBE_NXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?seek@MediaObject@Phonon@@QAEX_J@Z (public: void __thiscall Phonon::MediaObject::seek(__int64)) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::seek(float)" (?seek@MediaPlayerPrivate@WebCore@@UAEXM@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?isSeekable@MediaObject@Phonon@@QBE_NXZ (public: bool __thiscall Phonon::MediaObject::isSeekable(void)const ) imported in function "public: virtual void __thiscall WebCore::MediaPlayerPrivate::seek(float)" (?seek@MediaPlayerPrivate@WebCore@@UAEXM@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?totalTime@MediaObject@Phonon@@QBE_JXZ (public: __int64 __thiscall Phonon::MediaObject::totalTime(void)const ) imported in function "public: virtual float __thiscall WebCore::MediaPlayerPrivate::duration(void)const " (?duration@MediaPlayerPrivate@WebCore@@UBEMXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?currentTime@MediaObject@Phonon@@QBE_JXZ (public: __int64 __thiscall Phonon::MediaObject::currentTime(void)const ) imported in function "public: virtual float __thiscall WebCore::MediaPlayerPrivate::currentTime(void)const " (?currentTime@MediaPlayerPrivate@WebCore@@UBEMXZ)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?setMuted@AudioOutput@Phonon@@QAEX_N@Z (public: void __thiscall Phonon::AudioOutput::setMuted(bool)) imported in function "public: void __thiscall WebCore::MediaPlayerPrivate::setMuted(bool)" (?setMuted@MediaPlayerPrivate@WebCore@@QAEX_N@Z)
1>QtWebKitd.lib(MediaPlayerPrivatePhonon.obj) : warning LNK4217: locally defined symbol ?errorType@MediaObject@Phonon@@QBE?AW4ErrorType@2@XZ (public: enum Phonon::ErrorType __thiscall Phonon::MediaObject::errorType(void)const ) imported in function "private: void __thiscall WebCore::MediaPlayerPrivate::updateStates(void)" (?updateStates@MediaPlayerPrivate@WebCore@@AAEXXZ)
1>QtWebKitd.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol __imp__SHGetValueW@24 referenced in function "void __cdecl WebCore::addPluginPathsFromRegistry(struct HKEY__ *,class WTF::HashSet<class WebCore::String,struct WebCore::StringHash,struct WTF::HashTraits<class WebCore::String> > &)" (?addPluginPathsFromRegistry@WebCore@@YAXPAUHKEY__@@AAV?$HashSet@VString@WebCore@@UStringHash@2@U?$HashTraits@VString@WebCore@@@WTF@@@WTF@@@Z)
1>QtWebKitd.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol __imp__PathRemoveFileSpecW@4 referenced in function "class WebCore::String __cdecl WebCore::safariPluginsDirectory(void)" (?safariPluginsDirectory@WebCore@@YA?AVString@1@XZ)
1>QtWebKitd.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol __imp__PathCombineW@12 referenced in function "void __cdecl WebCore::addMacromediaPluginDirectories(class WTF::Vector<class WebCore::String,0> &)" (?addMacromediaPluginDirectories@WebCore@@YAXAAV?$Vector@VString@WebCore@@$0A@@WTF@@@Z)
1>QtWebKitd.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _VerQueryValueW@16 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo@PluginPackage@WebCore@@AAE_NXZ)
1>QtWebKitd.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoW@16 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo@PluginPackage@WebCore@@AAE_NXZ)
1>QtWebKitd.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW@8 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo@PluginPackage@WebCore@@AAE_NXZ)
[ 此帖被ebillow在2010-05-08 14:36重新编辑 ]
离线ebillow

只看该作者 1楼 发表于: 2010-05-08
求大侠指点错误可能出在哪?
离线ebillow

只看该作者 2楼 发表于: 2010-05-08
问题已解决,我的错,链接的lib不够
离线hkyyang

只看该作者 3楼 发表于: 2011-08-31
你用静态的Webkit能编译成功吗?我编译静态库几十次了,各种版本方法试了,没有一次能用静态Webkit的,也出现过此错误,是4.6.2版本minGw,你说链接的lib不够?还需要哪些lib?
快速回复
限100 字节
 
上一个 下一个