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. macdeployqt - Missing dependancies when installing.
Forum Update on Monday, May 27th 2025

macdeployqt - Missing dependancies when installing.

Scheduled Pinned Locked Moved Solved Installation and Deployment
macdeployqt
11 Posts 3 Posters 4.2k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    What version of Qt ?
    On what version of macOS ?
    What parameters did you pass to macdeployqt ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gerry.felteau
      wrote on last edited by
      #3

      I am using Qt v5.8 on OS X 10.11.6.

      I simply used :

      macdeployqt mytest.app -dmg

      from the release directory.

      Thank you.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chips and fish
        wrote on last edited by chips and fish
        #4
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #5

          Might be a silly question but do you have several version of Qt installed ? If so, which version of macdeployqt are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          G 1 Reply Last reply
          0
          • SGaistS SGaist

            Might be a silly question but do you have several version of Qt installed ? If so, which version of macdeployqt are you using ?

            G Offline
            G Offline
            gerry.felteau
            wrote on last edited by
            #6

            @SGaist No, I only have v5.8 and the macdeployqt that came with it.

            Thank you.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              Can you share your .pro file ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gerry.felteau
                wrote on last edited by gerry.felteau
                #8

                #-------------------------------------------------

                Project created by QtCreator 2017-01-30T13:13:14

                #-------------------------------------------------

                QT += core gui

                greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                TARGET = ImagoTN1
                TEMPLATE = app

                DEFINES += QT_DEPRECATED_WARNINGS

                DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

                SOURCES += main.cpp
                mainwindow.cpp

                HEADERS += mainwindow.h

                FORMS += mainwindow.ui

                CONFIG+=static

                RESOURCES +=
                tn1res.qrc

                macx: LIBS += -L$$PWD/lib/ -lfreeimage -lippcc -lippch -lippcore -lippcv -lippdc -lippi -lipps -limfilters

                INCLUDEPATH += $$PWD/include
                DEPENDPATH += $$PWD/include

                macx: PRE_TARGETDEPS += $$PWD/lib/libfreeimage.a $$PWD/lib/libippcc.a $$PWD/lib/libippch.a $$PWD/lib/libippcore.a
                $$PWD/lib/libippcv.a $$PWD/lib/libippdc.a $$PWD/lib/libippi.a $$PWD/lib/libipps.a
                $$PWD/lib/libippvm.a $$PWD/lib/libimfilters.a

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Can you show the result of otool -L on your application ?

                  What does the Frameworks folder contain ?

                  Also, what parameters are you passing to macdeployqt ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  C 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Can you show the result of otool -L on your application ?

                    What does the Frameworks folder contain ?

                    Also, what parameters are you passing to macdeployqt ?

                    C Offline
                    C Offline
                    chips and fish
                    wrote on last edited by chips and fish
                    #10

                    i had a similar problem,
                    in my case the deps were succesfully deployed to the qt but the application still could not find them,
                    (they should be in myapp.app/Contents/Frameworks)

                    if your issue is similar, you could try
                    compiling with this flag, which will create an rpath to the frameworks folder

                    QMAKE_LFLAGS += -Wl,-rpath,@executable_path/../Frameworks
                    

                    or to fix current version without recompile you could try editing current rpath

                    install_name_tool -add_rpath "@executable_path/../Frameworks" myapp.app/Contents/MacOS/myapp
                    
                    G 1 Reply Last reply
                    1
                    • C chips and fish

                      i had a similar problem,
                      in my case the deps were succesfully deployed to the qt but the application still could not find them,
                      (they should be in myapp.app/Contents/Frameworks)

                      if your issue is similar, you could try
                      compiling with this flag, which will create an rpath to the frameworks folder

                      QMAKE_LFLAGS += -Wl,-rpath,@executable_path/../Frameworks
                      

                      or to fix current version without recompile you could try editing current rpath

                      install_name_tool -add_rpath "@executable_path/../Frameworks" myapp.app/Contents/MacOS/myapp
                      
                      G Offline
                      G Offline
                      gerry.felteau
                      wrote on last edited by
                      #11

                      @chips-and-fish Thank you so much ! That fixed it.
                      Although I am a bit surprised as the path to Framework is an artifact of macdeployqt; one would think it would automatically add it...

                      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