Cannot assemble static app with WebKit and Phonon
-
Once I [url=http://developer.qt.nokia.com/forums/viewthread/5038/]solved[/url] problem with simple static application. But it doesn't use Web or multimedia. Now I started new app using WebKit. Suddenly it requires Phonon (but I don't use it in app at all). ld returns waterfall of errors like this:
@ i:/Qt/2010.05s/qtliblib/qt/lib/libWebKitd.a(MediaPlayerPrivatePhonon.o):MediaPlayerPrivatePhonon.cpp:(.text+0xb6): undefined reference to `_imp___ZN6Phonon11MediaObjectC1EP7QObject'@
and so on...
I see libphonond.a and libphonon.a in qt/lib folder. What is wrong? What have I do to assemble application which just openes Web-page and downloads it first? Can I cut out Phonon references for this app?
-
Well, you can still recompile qt without phonon support (it's a parameter on configure). Have you tried adding -lphonon to your linker ?
-
bq. Well, you can still recompile qt without phonon support (it’s a parameter on configure).
reconfigure Qt from beginning again? :o
Why it does not include Phonon automatically if WebKit depends from it??????????????? Where it is written that I have configure Phonon if I need WebKit????????????????????????????????but the Phonon library exists
bq. Have you tried adding -lphonon to your linker ?
I used
@QT += core gui webkit phonon@
in .pro file
-
You will run into problems anyways, as static build of QtWebKit has been removed in Qt 4.7. See the following links for som details:
-
-
Perhaps you can add static build on yourself, it should be possible by changing some files :-)
Afai have seen, you "followed this guide.":http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc then webkit should be available as static lib, as it is changed in the web kit stuff.can you post your pro file here?
-
Nothing helps :-(
After reconfig with Phonon I've got it in static but still cannot assemble app. In addition to previous linkage error messages I get tons of messages like this:
@i:\Qt\2010.05s\qt\lib\libQtCored.a(qcoreapplication.o):I:\Qt\2010.05s\qt\src\corelib/kernel/qcoreapplication.cpp:151: multiple definition of `QCoreApplicationPrivate::checkInstance(char const*)'@
Of course I can use dynamically linked Qt for this app. But then I will have provide more than 100 megabytes in DLLs (QtCore, QtGui, QtNetwork, QtWebKit and may be more). This all for small application allowing users just exchange their data in local network... Somebody else could solve this using Delphy without this complexity and extra megabytes.