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. [Solved] dyld Library not loaded on Mac OSX Maverick 10.9.4
Forum Updated to NodeBB v4.3 + New Features

[Solved] dyld Library not loaded on Mac OSX Maverick 10.9.4

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 3 Posters 3.6k 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.
  • S Offline
    S Offline
    samuelpdrouin
    wrote on last edited by
    #1

    I am new to Qt and C++. I wrote my first Qt code today :

    @#include <QApplication>
    #include <QPushButton>

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    QPushButton bouton("Salut les Zéros, la forme ?");
    bouton.show();
    
    return app.exec(&#41;;
    

    }@

    When I build this code, everything is ok. But when I try to run it I get the following error message :

    dyld: Library not loaded: /work/build/PADDING/lib/QtWidgets.framework/Versions/5/QtWidgets
    Referenced from: /Users/samueldrouin/Fichiers/Programmation/C++/Tutorial/first_gui/build-first_gui-Desktop_Qt_5_3_clang_64bit-Debug/first_gui.app/Contents/MacOS/first_gui
    Reason: image not found
    The program has unexpectedly finished.

    Link to the /lib folder look like they are correct. I tried to reinstall Qt. Xcode is installed. I also tried the terminal command : otool -L on Qtwidget exec but I do not really understand how to use the command.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vikaspachdha
      wrote on last edited by
      #2

      Are you using Qt creator or running qmake and make commands from terminal ?

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

        Looks like my answer disappeared…

        @ Vikas Pachdha, it has nothing to do with Qt Creator nor qmake. It's the installation that failed at some point. Generally due to missing command line tools

        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
        • S Offline
          S Offline
          samuelpdrouin
          wrote on last edited by
          #4

          @Vikas Pachdha I am using Qt Creator.

          @SGaist I reinstalled command line tools and Qt. I have the same problem. Can I check if the Qt install is correct during the installation process or after the installation process as I don't get anyway warning about the installation.

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

            When you say reinstalled Qt did you removed it first ?

            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
            • S Offline
              S Offline
              samuelpdrouin
              wrote on last edited by
              #6

              Yes I removed all component before reinstalling.

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

                Xcode 6 ?

                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
                • S Offline
                  S Offline
                  samuelpdrouin
                  wrote on last edited by
                  #8

                  Xcode 6.0.1 everything is up to date

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

                    Currently Xcode 6 brought several changes that are breaking things here and there. You can find some already answered on the forum and some on the interest mailing list.

                    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
                    • S Offline
                      S Offline
                      samuelpdrouin
                      wrote on last edited by
                      #10

                      I réinstalled Xcode 5.1.1 and Qt and I receive the same error.

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

                        Can you call install_name_tool from the command line ?

                        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
                        • S Offline
                          S Offline
                          samuelpdrouin
                          wrote on last edited by
                          #12

                          I forgot to reinstall the Command Line Tools 5.1.1 along Xcode 5.1.1 and kept the Command Line Tools 6.0.1 . Everything work now. Thank you.

                          Edit : Thread marked [Solved]

                          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