Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Bundling Qt frameworks with application with a .bundle extension ?
Forum Updated to NodeBB v4.3 + New Features

Bundling Qt frameworks with application with a .bundle extension ?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.4k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Cg_Artist
    wrote on last edited by
    #1

    I have been trying to follow the instructions for application deployment:
    "Deploying an Application on Mac OS X":http://developer.qt.nokia.com/doc/qt-4.8/deployment-mac.html#building-qt-as-frameworks
    However my application requires that I use the .bundle format. As a result when I try:
    Example:
    @ mkdir myApp.bundle/Contents/Frameworks
    cp -R /path/to/Qt/lib/QtCore.framework
    myApp.bundle/Contents/Frameworks
    cp -R /path/to/Qt/lib/QtGui.framework
    myApp.bundle/Contents/Frameworks@
    I get an error saying "myApp.bundle: Not a directory". Am I missing something. Is there a way to bundle the Qt frameworks with my application with a .bundle extension?

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

      plain mkdir only creates the last directory in the path (Frameworks in your case), just add the -p switch to create all missing parent dirs:

      @
      mkdir -p myApp.bundle/Contents/Frameworks
      @

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cg_Artist
        wrote on last edited by
        #3

        Hmm... I actually already tried that as well. However I still get the same error. Any other suggestions?

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

          Does myApp.bundle exist? If yes, is it a file or a directory?

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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Cg_Artist
            wrote on last edited by
            #5

            Yes myApp.bundle does exist. However, I am beginning to think that it is a file. For example when I run: @otool -L myApp.bundle/Contents/@
            I get an error. However when I run:
            @otool -L myApp.bundle@
            I get a list of the libraries my application is linked to. Also, I know this will sound totally novice, but by default my application has a white "Lego" type icon the represents it. I also did a search on my machine for similar type files and there seems to be two kinds of .bundle files. Some of them have the "Lego" icons like mine and there are others that share the ".bundle" extension with a different icon (A white page) and those I can add directories to. So my thinking is that my .bundle is not a directory but rather a file. I hope this helps better explain what I have. Also if what I have is a file what are the steps to making a .bundle that is a directory.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Cg_Artist
              wrote on last edited by
              #6

              I found a solution. I was able to point to the correct libraries in the make file before building the .bundle.

              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