Qt Forum

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

    Dll/dylib correct way to copy/install/etc.. ?

    General and Desktop
    2
    6
    3901
    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
      mirswith last edited by

      I have a Qt project that includes an executable project and a dylib/dll project and I am wondering what is the 'correct' way to make this library accessible by the executable during debugging? On the OSX side I am looking for anyway to do is as I have not figured that out yet, on the windows side I am doing a copy with the QMAKE_PRE_LINK variable.

      Any help would be greatly appreciated.

      Thanks.
      -=ben

      1 Reply Last reply Reply Quote 0
      • M
        mirswith last edited by

        On OSX I found this to work:

        mylib.path = Contents/MacOS
        mylib.files = ../mylib/mylib-build-desktop/mylib.1.dylib
        QMAKE_BUNDLE_DATA += mylib

        I'll have to test it but seems this might be the way to do it on windows as well?

        Thanks.

        -=ben

        1 Reply Last reply Reply Quote 0
        • M
          mirswith last edited by

          On a similar note, where on OSX do I find the Qt dylibs to include for distribution?

          Thanks again.

          -=ben

          1 Reply Last reply Reply Quote 0
          • G
            goetz last edited by

            [quote author="mirswith" date="1300994583"]On a similar note, where on OSX do I find the Qt dylibs to include for distribution?

            Thanks again.

            -=ben
            [/quote]

            That depends on the Qt type you use (from the SDK, prebuilt library only, self compiled library).

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

            1 Reply Last reply Reply Quote 0
            • M
              mirswith last edited by

              I am using Qt Creator, one project is TEMPLATE=lib, CONFIG+=dll and the other is TEMPLATE=app, after digging around I found macdeployqt which is working for me. The only problem I am having now is that when debugging its trying to load my dll from Content/MacOS and for distribution it is looking in Content/Frameworks; why is this different? It would sure be nice if I could use the same location for both so I don't have to make changes just to package my app.

              Thanks.

              -=ben

              1 Reply Last reply Reply Quote 0
              • G
                goetz last edited by

                Content/Frameworks is the default path on OS X application bundles. This is the place where an end user expects things.

                Please search the forum, these things were asked a couple of times in the last weeks. "Deployment" is a good keyword to start with.

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post