Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Problems using macdeployqt : malformed object (unknown load command 8)

Problems using macdeployqt : malformed object (unknown load command 8)

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 3.9k 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.
  • I Offline
    I Offline
    inc.
    wrote on 4 May 2012, 11:37 last edited by
    #1

    Hello,

    Im trying to deploy a Qt Application on OSx.
    After compiling the project using QT Creator and afterwards using macdeployqt it throws an error as followed:

    @macbookpro:~ seniorrossi$ macdeployqt /Users/seniorrossi/VPNconfig-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/VPNconfig.app
    ERROR: "install_name_tool: object: /Users/seniorrossi/VPNconfig-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/VPNconfig.app/Contents/MacOS/VPNconfig malformed object (unknown load command 8)
    "
    ERROR: ""
    ERROR: no file at "/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/QtGui"
    ERROR: "install_name_tool: object: /Users/seniorrossi/VPNconfig-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/VPNconfig.app/Contents/MacOS/VPNconfig malformed object (unknown load command 8)
    "
    ERROR: ""
    ERROR: no file at "/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib/QtCore.framework/Versions/4/QtCore"
    WARNING:
    WARNING: "/Users/seniorrossi/FritzVPNconfig-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/VPNconfig.app/Contents/Resources/qt.conf" already exists, will not overwrite.
    WARNING: To make sure the plugins are loaded from the correct location,
    WARNING: please make sure qt.conf contains the following lines:
    WARNING: [Paths]
    WARNING: Plugins = PlugIns @

    I already asked in several areas, but nowhere replies. I hope you can help me as I just got in love with Qt on Win and OSx and I'd like to be able deploying Qt-Apps on OSx.

    My environment: OSx 10.7.3, using Qt 4.8.1 and Xcode 4.2.1

    Thanks a lot!
    Andrew

    1 Reply Last reply
    0
    • I Offline
      I Offline
      inc.
      wrote on 8 May 2012, 06:47 last edited by
      #2

      Nobody a hint?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 4 Jun 2012, 06:57 last edited by
        #3

        this has just hit me now, too. I am looking for a solution, will update if successful.

        (Z(:^

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on 24 Jul 2012, 18:16 last edited by
          #4

          It hit me too. It doesn't work with XCode 3.2.6 build 1761. It does work with build 1760. Something has changed between that two minor versions.

          From some googling around, it seems that is is somehow related to -mmacosx-version-min parameters to the linker or something like that. I don't have a solution yet, if I ever have one, I'll update.

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sierdzio
            Moderators
            wrote on 24 Jul 2012, 18:54 last edited by
            #5

            After some research, it seems that this can be caused by many things. For me, the problem was that the Qt I had was build using a different version of Xcode than the app, and thus "install_name_tool" was having problems (Apple's fault, but we have to live with it). Solution was to recompile Qt using the same Xcode that was later used to build the application. And by "the same" I mean really the same - apparently it has to be done with even the Xcode's minor version number matching exactly (best way - just use the same machine).

            (Z(:^

            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