Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot assemble static app with WebKit and Phonon
Forum Update on Monday, May 27th 2025

Cannot assemble static app with WebKit and Phonon

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 4 Posters 5.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gourmand
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      florent.revelut
      wrote on last edited by
      #2

      Well, you can still recompile qt without phonon support (it's a parameter on configure). Have you tried adding -lphonon to your linker ?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gourmand
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          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:

          • http://doc.qt.nokia.com/4.7/platform-notes.html (see the footnote on WebKit in the table)
          • https://bugs.webkit.org/show_bug.cgi?id=40978
          • http://stackoverflow.com/questions/4330980/is-that-possible-to-build-static-qt-library-with-webkit-enabled-and-how

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gourmand
            wrote on last edited by
            #5

            bq. static build of QtWebKit has been removed in Qt 4.7

            Damn! Who was too smart to do that??? >:-E What if I'll distribute static app on common GPL without "L"?

            Problem with JS library can be worked around just by copying this lib to proper folder.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              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?

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gourmand
                wrote on last edited by
                #7

                Now I rebuild Qt after configure with -phonon option. This takes time... Then I'll try assemble task again. Will report results.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #8

                  I don't think it is a (L)GPL problem, but more some technical issues (maybe plugins and the like) with static versions.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    Gourmand
                    wrote on last edited by
                    #9

                    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.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved