Cannot assemble static app with WebKit and Phonon
Once I solved 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:
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).
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
Have you tried adding -lphonon to your linker ?
- 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. [developer.qt.nokia.com] 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:
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.