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. line 3: autoreconf: command not found on Mac High Sierra
Forum Updated to NodeBB v4.3 + New Features

line 3: autoreconf: command not found on Mac High Sierra

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 3.7k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    What project is that ?

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

    S 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      What project is that ?

      S Offline
      S Offline
      Stephan22
      wrote on last edited by
      #3

      @SGaist

      Thank you :-)

      Project: https://github.com/thebitradio/Bitradio

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stephan22
        wrote on last edited by
        #4

        Hello,

        Problems solved. I has add /usr/local/bin to the SearchPath.

        Now I have the problem of missing librarys...
        I need always to copy Librarys (QTWidgets and so on) to the app and make:
        install_tool_name -change x y z

        Is it possible, that QT copy the frameworks automatically?

        Thanks

        A 1 Reply Last reply
        0
        • S Stephan22

          Hello,

          Problems solved. I has add /usr/local/bin to the SearchPath.

          Now I have the problem of missing librarys...
          I need always to copy Librarys (QTWidgets and so on) to the app and make:
          install_tool_name -change x y z

          Is it possible, that QT copy the frameworks automatically?

          Thanks

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #5

          @Stephan22 Sounds like you don't have QTDIR set in your environment. The build should set the rpath for you so on your own system you shouldn't have to use otool. If you want to distribute you will need to use the qtmacdeploy program or copy the files.

          Another option other than rpath is to set LD_LIBRARY_PATH before you launch your app.

          I.e. LD_LIBRARY_PATH="/path/to/qt/lib" ./yourapp

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

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

            It's DYLD_LIBRARY_PATH on macOS.
            If you are using frameworks, it's DYLD_FRAMEWORK_PATH

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

              Thank you for your response!

              Have I understand it correctly, that I need only:
              macdeployqt APPNAME

              Thats should be all for deploying the app? The frameworks then are in the file?

              Thanks!!

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

                That's the goal of the tool yes. More details about it here.

                Depending on how your dependencies were built/installed, you may have to do some things by hand nonetheless because not everything can be easily handled.

                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
                1
                • S Offline
                  S Offline
                  Stephan22
                  wrote on last edited by Stephan22
                  #9

                  Hello,

                  Thank you again. I have now tried to use the command.

                  /users/x/Qt/5.11.1/clang_64/bin/macdeployqt Test.app
                  

                  This has copied the binaries into the app. The files are located at the right place.

                  The app breaks with:

                  Library not loaded: @rpath/QtWidgets.framework/Versions/5/QtWidgets
                  

                  Why is the search path wrong again? It has to be @executeable_path/../Frameworks/.......

                  What can I do?

                  Thank you :)

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Stephan22
                    wrote on last edited by
                    #10

                    Hello again,

                    Here some steps that happens:

                    1.) Create the Qt.app file:

                    	/usr/local/opt/miniupnpc/lib/libminiupnpc.17.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1452.23.0)
                    	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 50.0.0)
                    	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1561.40.112)
                    	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 822.31.0)
                    	/usr/local/opt/openssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
                    	/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
                    	/usr/local/opt/berkeley-db@4/lib/libdb_cxx-4.8.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/usr/local/opt/gmp/lib/libgmp.10.dylib (compatibility version 14.0.0, current version 14.2.0)
                    	/usr/local/opt/boost@1.57/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/usr/local/opt/boost@1.57/lib/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/usr/local/opt/boost@1.57/lib/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/usr/local/opt/boost@1.57/lib/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.11.0, current version 5.11.1)
                    	@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.11.0, current version 5.11.1)
                    	@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.11.0, current version 5.11.1)
                    	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
                    	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
                    	@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.11.0, current version 5.11.1)
                    	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
                    	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
                    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
                    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
                    	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1452.23.0)
                    	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
                    

                    2.) Run the macdeployqt-Tool:

                    	@executable_path/../Frameworks/libminiupnpc.17.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1452.23.0)
                    	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 50.0.0)
                    	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1561.40.112)
                    	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 822.31.0)
                    	@executable_path/../Frameworks/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
                    	@executable_path/../Frameworks/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
                    	@executable_path/../Frameworks/libdb_cxx-4.8.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@executable_path/../Frameworks/libgmp.10.dylib (compatibility version 14.0.0, current version 14.2.0)
                    	@executable_path/../Frameworks/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@executable_path/../Frameworks/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@executable_path/../Frameworks/libboost_program_options-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@executable_path/../Frameworks/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
                    	@rpath/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.11.0, current version 5.11.1)
                    	@rpath/QtGui.framework/Versions/5/QtGui (compatibility version 5.11.0, current version 5.11.1)
                    	@rpath/QtCore.framework/Versions/5/QtCore (compatibility version 5.11.0, current version 5.11.1)
                    	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
                    	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
                    	@rpath/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.11.0, current version 5.11.1)
                    	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
                    	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
                    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
                    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
                    	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1452.23.0)
                    	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
                    

                    Soms /usr/lib - Frameworks and all QT-Framework Links are not changed.. But they are in the Binary file..

                    What can I do?

                    Thanks !

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Stephan22
                      wrote on last edited by
                      #11

                      Hello again and again.

                      Sorry for the second response. Finally I have found an Solution:

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

                      Then

                      macdeployqt app -dmg
                      

                      And all is working :-)

                      Thank for all your helps.!

                      1 Reply Last reply
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved