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. [Solved] Statically link Qt + Phonon
QtWS25 Last Chance

[Solved] Statically link Qt + Phonon

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 2 Posters 6.1k 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.
  • M Offline
    M Offline
    Max13
    wrote on last edited by
    #1

    Hi,

    I'm new to Qt, and I did a search, but no results.

    I'm a student and I want to statically link Qt and Phonon with my app, but as classic shared lib on debug.

    I found some docs on the Qt Website, on how to compile Qt in static, but I can't use phonon...
    I want to built static libs on Release, shared on debug. It's only to simplify the deployement for everybody, because some teachers and visitors don't Know Qt and the "dll" system or .so on unix-based systems...

    Is there a simple way to do it on Windows (firstly) please?

    Thank you for your help.

    We all have started by asking questions. Then after some time, we can begin answering them.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Max13
      wrote on last edited by
      #2

      up ?

      We all have started by asking questions. Then after some time, we can begin answering them.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Scylla
        wrote on last edited by
        #3

        If I rember correctly it's not supported Phonon and webkit. Anyway, it's not difficult to deploy the app with the needed lib's in the local path! Don't forget the plugins, if needed. "Deploying an Application on Windows":http://doc.trolltech.com/4.7-snapshot/deployment-windows.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Max13
          wrote on last edited by
          #4

          Hi.
          Thank you, I was already there :)

          I'm trying to compile static libs (the most) on mac... I found the doc on QtCentre, but I always have an error.

          Do you know the complete, simpliest way (or command line) to include the most libs, to compile Qt in static mode please :) ?

          We all have started by asking questions. Then after some time, we can begin answering them.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Scylla
            wrote on last edited by
            #5

            For the mac it's more easy, use the macdeployqt tool to create the app. All needed will integreated into the app. So you don't need to compile the lib static!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Max13
              wrote on last edited by
              #6

              Currently...

              When I use this, I have a crash :/
              I don't know what it is, but if you don't mind, please check and maybe you will know ^^

              http://project.rihan.fr/C++/MangaMania/bin/mac32/

              Thank you for your help.

              We all have started by asking questions. Then after some time, we can begin answering them.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Scylla
                wrote on last edited by
                #7

                Which version of Qt do you use? If I remeber correctly there was a problem with macdeploy. I'm using 4.7.2 and it works for me without problems. Try without -dmg.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Max13
                  wrote on last edited by
                  #8

                  Hum...
                  Using the beta SDK (so 4.7.2, classic).

                  Now you mention it, I have this issue since the 4.7.2 =/

                  I've posted on a french forum, this is what I get now:
                  @cd /Users/max13/Developpement/MangaMania-build-desktop
                  macdeployqt MangaMania.app
                  ERROR: file copy failed from "/Users/max13/QtSDK/Desktop/Qt/472/gcc/lib/QtGui.framework/Resources/qt_menu.nib/classes.nib"
                  ERROR: to "MangaMania.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/classes.nib"
                  ERROR: file copy failed from "/Users/max13/QtSDK/Desktop/Qt/472/gcc/lib/QtGui.framework/Resources/qt_menu.nib/info.nib"
                  ERROR: to "MangaMania.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/info.nib"
                  ERROR: file copy failed from "/Users/max13/QtSDK/Desktop/Qt/472/gcc/lib/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib"
                  ERROR: to "MangaMania.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib"@

                  I checked, the files exist... :(

                  BTW, did you check the dmg? If yes, do you know what it means ?

                  We all have started by asking questions. Then after some time, we can begin answering them.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Scylla
                    wrote on last edited by
                    #9

                    Yes, your dmg crashes here also. But a short test with a test app here, works very well, out of the box. "Here":http://www.file-upload.net/view-3300352/TestLogger.dmg.html my test app.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Scylla
                      wrote on last edited by
                      #10

                      I'm not using the SDK I'm using the libs and QtCreator seperate. Maybe there is somthing wrong with the package?!?!

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Max13
                        wrote on last edited by
                        #11

                        [quote author="Scylla" date="1300631306"]Yes, your dmg crashes here also. But a short test with a test app here, works very well, out of the box. "Here":http://www.file-upload.net/view-3300352/TestLogger.dmg.html my test app.[/quote]
                        The website is looping... Nothing appears ^^
                        You can send it by mail if you want please: axel50397 AT hotmail DOT com

                        [quote author="Scylla" date="1300631425"]I'm not using the SDK I'm using the libs and QtCreator seperate. Maybe there is somthing wrong with the package?!?![/quote]

                        Maybe. I'll check this. BTW, at the same time, a french answered me the same: Uninstall, verify if you didn't let anything, reinstall.

                        Thank you, i'll tell here :)

                        We all have started by asking questions. Then after some time, we can begin answering them.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Max13
                          wrote on last edited by
                          #12

                          Well...

                          It's sad, but I went back to the stable SDK (4.7.0), and everything is fine...

                          Thank you for your help Scylla, even if I prefer the new SDK (better organisation)

                          We all have started by asking questions. Then after some time, we can begin answering them.

                          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