Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] Statically link Qt + Phonon

    Installation and Deployment
    2
    12
    5435
    Loading More Posts
    • 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
      Max13 last edited by

      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 Reply Quote 0
      • M
        Max13 last edited by

        up ?

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

        1 Reply Last reply Reply Quote 0
        • S
          Scylla last edited by

          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 Reply Quote 0
          • M
            Max13 last edited by

            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 Reply Quote 0
            • S
              Scylla last edited by

              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 Reply Quote 0
              • M
                Max13 last edited by

                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 Reply Quote 0
                • S
                  Scylla last edited by

                  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 Reply Quote 0
                  • M
                    Max13 last edited by

                    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 Reply Quote 0
                    • S
                      Scylla last edited by

                      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 Reply Quote 0
                      • S
                        Scylla last edited by

                        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 Reply Quote 0
                        • M
                          Max13 last edited by

                          [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 Reply Quote 0
                          • M
                            Max13 last edited by

                            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 Reply Quote 0
                            • First post
                              Last post