build: --target deploy failure on macOS #32267

issue fanquake openend this issue on April 14, 2025
  1. fanquake commented at 4:05 pm on April 14, 2025: member

    macOS 15.4 master @ 51166559808c3528f148b5c0c38cb4481e536dd8 brew installed Qt 6.9.0

     0cmake -B build -DBUILD_GUI=ON
     1cmake --build build --target deploy
     2[  0%] Generating bitcoin-build-info.h
     3[  0%] Built target generate_build_info
     4[  5%] Built target bitcoin_wallet
     5[ 13%] Built target leveldb
     6[ 15%] Built target bitcoin_cli
     7[ 15%] Built target bitcoinqt_autogen_timestamp_deps
     8[ 15%] Built target bitcoinqt_autogen
     9[ 51%] Built target bitcoinqt
    10[ 69%] Built target bitcoin_node
    11[ 69%] Built target bitcoin-qt_autogen_timestamp_deps
    12[ 69%] Built target bitcoin-qt_autogen
    13[ 71%] Built target crc32c
    14[ 73%] Built target minisketch
    15[ 73%] Built target bitcoin_clientversion
    16[ 75%] Built target bitcoin_consensus
    17[ 84%] Built target bitcoin_common
    18[ 86%] Built target univalue
    19[ 86%] Built target secp256k1_precomputed
    20[ 88%] Built target secp256k1
    21[ 92%] Built target bitcoin_crypto
    22[ 98%] Built target bitcoin_util
    23[ 98%] Built target bitcoin_zmq
    24[100%] Built target bitcoin-qt
    25[100%] Generating Bitcoin-Core.zip
    26+ Removing existing dist folder +
    27+ Copying source bundle +
    28+ Deploying frameworks +
    29Processing QtWidgets.framework ...
    30<snip>
    31libglib-2.0.0.dylib
    32/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: dist/Bitcoin-Qt.app/Contents/Frameworks/libglib-2.0.0.dylib
    33/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: dist/Bitcoin-Qt.app/Contents/Frameworks/libglib-2.0.0.dylib
    34/Library/Developer/CommandLineTools/usr/bin/install_name_tool: warning: changes being made to the file will invalidate the code signature in: dist/Bitcoin-Qt.app/Contents/Frameworks/libglib-2.0.0.dylib
    35Processing QtDBus.framework ...
    36Error: No directory at [@rpath](/bitcoin-bitcoin/contributor/rpath/)/QtDBus.framework
    37gmake[3]: *** [CMakeFiles/deploydir.dir/build.make:73: Bitcoin-Core.zip] Error 1
    38gmake[2]: *** [CMakeFiles/Makefile2:663: CMakeFiles/deploydir.dir/all] Error 2
    39gmake[1]: *** [CMakeFiles/Makefile2:702: CMakeFiles/deploy.dir/rule] Error 2
    40gmake: *** [Makefile:225: deploy] Error 2
    
  2. hebasto added the label macOS on Apr 14, 2025
  3. hebasto added the label Build system on Apr 14, 2025
  4. i-am-yuvi commented at 7:52 pm on April 15, 2025: contributor
    Works fine with qt@5! MacOS 15.3.2
  5. maflcko commented at 8:05 pm on April 15, 2025: member

    Works fine with qt@5!

    How could this possibly work fine, given that qt@6 is required?

  6. i-am-yuvi commented at 8:28 pm on April 15, 2025: contributor
    0brew list --versions qt@5
    1qt@5 5.15.13_1
    

    How could this possibly work fine, given that qt@6 is required?

    Is it? I thought that qt@6 is the recommended version.

     0[ 98%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/walletcontroller.cpp.o
     1[ 98%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/walletframe.cpp.o
     2[100%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/walletmodel.cpp.o
     3[100%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/walletmodeltransaction.cpp.o
     4[100%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/walletview.cpp.o
     5[100%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/bitcoinqt_autogen/EWIEGA46WW/qrc_bitcoin.cpp.o
     6[100%] Building CXX object src/qt/CMakeFiles/bitcoinqt.dir/bitcoinqt_autogen/EJRQKI7XPS/qrc_bitcoin_locale.cpp.o
     7[100%] Linking CXX static library ../lib/libbitcoin_node.a
     8[100%] Built target bitcoin_node
     9[100%] Linking CXX static library ../../lib/libbitcoinqt.a
    10[100%] Built target bitcoinqt
    11[100%] Automatic MOC and UIC for target bitcoin-qt
    12[100%] Built target bitcoin-qt_autogen
    13[100%] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/main.cpp.o
    14[100%] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/bitcoin-qt_autogen/mocs_compilation.cpp.o
    15[100%] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/__/init/bitcoin-qt.cpp.o
    16[100%] Linking CXX executable ../../bin/bitcoin-qt
    17[100%] Built target bitcoin-qt
    18[100%] Generating Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
    19-- Installing: /Users/yuvrajchhetri/Desktop/bitcoin/build/Bitcoin-Qt.app/Contents/MacOS/bin/bitcoin-qt
    20-- Installing: /Users/yuvrajchhetri/Desktop/bitcoin/build/Bitcoin-Qt.app/Contents/MacOS/share/man/man1/bitcoin-qt.1
    21[100%] Generating Bitcoin-Core.zip
    22+ Copying source bundle +
    23+ Deploying frameworks +
    24Processing QtWidgets.framework ...
    25+ Adding Qt translations +
    26+ Installing qt.conf +
    27dist/Bitcoin-Qt.app: replacing existing signature
    28+ Done +
    29[100%] Built target deploydir
    30[100%] Built target deploy
    
  7. hebasto commented at 8:15 am on April 16, 2025: member

    @i-am-yuvi

    0brew list --versions qt@5
    1qt@5 5.15.13_1
    

    How could this possibly work fine, given that qt@6 is required?

    Is it? I thought that qt@6 is the recommended version.

    Are you sure you are building the recent master branch?

    On my machine:

     0% git rev-parse HEAD
     1cdc32994feadf3f15df3cfac5baae36b4b011462
     2% brew list | grep qt
     3qt@5
     4% rm -rf build && cmake -B build -DBUILD_GUI=ON
     5-- The CXX compiler identification is AppleClang 16.0.0.16000026
     6-- Detecting CXX compiler ABI info
     7-- Detecting CXX compiler ABI info - done
     8-- Check for working CXX compiler: /usr/bin/c++ - skipped
     9-- Detecting CXX compile features
    10-- Detecting CXX compile features - done
    11-- Setting build type to "RelWithDebInfo" as none was specified
    12-- Performing Test CXX_SUPPORTS__WERROR
    13-- Performing Test CXX_SUPPORTS__WERROR - Success
    14-- Performing Test CXX_SUPPORTS__G3
    15-- Performing Test CXX_SUPPORTS__G3 - Success
    16-- Performing Test LINKER_SUPPORTS__G3
    17-- Performing Test LINKER_SUPPORTS__G3 - Success
    18-- Performing Test CXX_SUPPORTS__FTRAPV
    19-- Performing Test CXX_SUPPORTS__FTRAPV - Success
    20-- Performing Test LINKER_SUPPORTS__FTRAPV
    21-- Performing Test LINKER_SUPPORTS__FTRAPV - Success
    22-- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include (found suitable version "3.43.2", minimum required is "3.7.17")
    23-- Found QRencode: /usr/local/lib/libqrencode.dylib
    24-- Could NOT find Qt6 (missing: Qt6_DIR)
    25CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
    26  Could NOT find Qt (missing: Qt6_DIR) (Required is at least version "6.2")
    27Call Stack (most recent call first):
    28  /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
    29  cmake/module/FindQt.cmake:38 (find_package_handle_standard_args)
    30  CMakeLists.txt:178 (find_package)
    31
    32
    33-- Configuring incomplete, errors occurred!
    
  8. i-am-yuvi commented at 9:13 am on April 16, 2025: contributor

    Are you sure you are building the recent master branch?

    Ah, now I see I was in v29.0 and it worked fine as qt@5 works in v29.0, sorry for the confusion!

    0brew list --versions qt@6
    1qt 6.7.0_1
    

    When running on master(cdc32994feadf3f15df3cfac5baae36b4b011462) branch, I’m getting the same error:

    0...
    1Processing QtDBus.framework ...
    2Error: No directory at [@rpath](/bitcoin-bitcoin/contributor/rpath/)/QtDBus.framework
    3gmake[3]: *** [CMakeFiles/deploydir.dir/build.make:73: Bitcoin-Core.zip] Error 1
    4gmake[2]: *** [CMakeFiles/Makefile2:538: CMakeFiles/deploydir.dir/all] Error 2
    5gmake[1]: *** [CMakeFiles/Makefile2:571: CMakeFiles/deploy.dir/rule] Error 2
    6gmake: *** [Makefile:218: deploy] Error 2keFiles/deploy.dir/rule] Error 2
    7gmake: *** [Makefile:225: deploy] Error 2
    

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-04-16 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me