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



  • Hello,

    At the first, sorry for my bad Englisch.

    I hope, someone can help me with this problem. I try to compile a Coin-Wallet but it cancel with this Error:

    line 3: autoreconf: command not found
    

    I have installed Homebrew and installed autoconf, automake and libtool.

    The console Output:

    cd /Users/*/Desktop/Apps/github/*/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ /Applications/Xcode.app/Contents/Developer/usr/bin/make OPT="-pipe -stdlib=libc++ -fstack-protector-all --param ssp-buffer-size=1 -D_FORTIFY_SOURCE=2 -O2"
    
    ./autogen.sh: line 3: autoreconf: command not found
    

    For testing, i have opened a Terminal and entered this:

    cd /Users/*/Desktop/Apps/github/*/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ /Applications/Xcode.app/Contents/Developer/usr/bin/make OPT="-pipe -stdlib=libc++ -fstack-protector-all --param ssp-buffer-size=1 -D_FORTIFY_SOURCE=2 -O2"
    

    It finished without Errors. Why will this command work at the Terminal, but QT cancel with error?
    I don't understand that..

    Thank you in advance!!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What project is that ?





  • 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


  • Moderators

    @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


  • Lifetime Qt Champion

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



  • 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!!


  • Lifetime Qt Champion

    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.



  • 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 :)



  • 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 !



  • 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.!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.