How to compile the GUI on opensuse tumbleweed with cmake? #842

issue maflcko opened this issue on October 17, 2024
  1. maflcko commented at 10:26 AM on October 17, 2024: contributor

    Looks like this broke after the cmake migration.

    Steps to reproduce on a fresh podman run -it --rm 'registry.opensuse.org/opensuse/tumbleweed:latest':

    zypper in -y awk qrencode libevent-devel boost-devel sqlite3-devel libqt5-qttools-devel libqt5-qtbase-devel libdb-4_8-devel find bison gcc-c++ libtool make autoconf automake python3 clang llvm lbzip2 patch xz curl wget htop git vim ccache && git clone https://github.com/bitcoin/bitcoin.git --depth=1 ./b-c && cd b-c && cmake -B ./bld -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWERROR=ON -DBUILD_GUI=ON -DWITH_QRENCODE=OFF -DWITH_CCACHE=ON -DWITH_NATPMP=ON

    Output:

    Configure summary
    =================
    Executables:
      bitcoind ............................ ON
      bitcoin-node (multiprocess) ......... OFF
      bitcoin-qt (GUI) .................... ON
      bitcoin-gui (GUI, multiprocess) ..... OFF
      bitcoin-cli ......................... ON
      bitcoin-tx .......................... ON
      bitcoin-util ........................ ON
      bitcoin-wallet ...................... ON
      bitcoin-chainstate (experimental) ... OFF
      libbitcoinkernel (experimental) ..... OFF
    Optional features:
      wallet support ...................... ON
       - descriptor wallets (SQLite) ...... ON
       - legacy wallets (Berkeley DB) ..... OFF
      external signer ..................... ON
      port mapping using UPnP ............. OFF
      ZeroMQ .............................. OFF
      USDT tracing ........................ OFF
      QR code (GUI) ....................... OFF
      DBus (GUI, Linux only) .............. ON
    Tests:
      test_bitcoin ........................ ON
      test_bitcoin-qt ..................... ON
      bench_bitcoin ....................... ON
      fuzz binary ......................... ON
    
    Cross compiling ....................... FALSE
    C++ compiler .......................... GNU 14.2.1, /usr/bin/c++
    CMAKE_BUILD_TYPE ...................... RelWithDebInfo
    Preprocessor defined macros ........... 
    C++ compiler flags .................... -O2 -g -std=c++20 -fPIC -fdebug-prefix-map=/b-c=. -fmacro-prefix-map=/b-c=. -fno-extended-identifiers -fstack-reuse=none -Werror -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wundef -Wno-unused-parameter -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection
    Linker flags .......................... -O2 -g -fstack-reuse=none -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,separate-code -fPIE -pie
    
    NOTE: The summary above may not exactly match the final applied build flags
          if any additional CMAKE_* or environment variables have been modified.
          To see the exact flags applied, build with the --verbose option.
    
    Attempt to harden executables ......... ON
    Treat compiler warnings as errors ..... ON
    Use ccache for compiling .............. ON
    
    
    -- Configuring done (50.1s)
    CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
      Error evaluating generator expression:
    
        $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    
      Target "Qt5::QMinimalIntegrationPlugin" not found.
    
    
    CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
      Error evaluating generator expression:
    
        $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    
      Target "Qt5::QMinimalIntegrationPlugin" not found.
    
    
    CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
      Error evaluating generator expression:
    
        $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    
      Target "Qt5::QMinimalIntegrationPlugin" not found.
    
    
    -- Generating done (0.9s)
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        WITH_NATPMP
    
    
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    
  2. maflcko added the label Bug on Oct 17, 2024
  3. maflcko added the label Linux on Oct 17, 2024
  4. maflcko commented at 5:19 PM on October 23, 2024: contributor

    (This worked fine with autotools)

  5. fanquake added this to the milestone 29.0 on Oct 24, 2024
  6. fanquake commented at 8:39 AM on October 24, 2024: member

    Added to 29.0 milestone as this will either need to be fixed, or documented as no-longer-supported.

  7. fanquake commented at 10:56 AM on October 24, 2024: member

    -DWITH_QRENCODE=OFF

    Is this known to be broken / also didn't work previously?

  8. maflcko commented at 11:11 AM on October 24, 2024: contributor

    I never tried libqrencode with autotools on tumbleweed.

  9. fanquake commented at 12:27 PM on October 24, 2024: member

    Even though the package is available, looks like it didn't work there either.

  10. hebasto commented at 1:13 PM on October 24, 2024: member

    Even though the package is available, looks like it didn't work there either.

    The qrencode-devel package should be installed.

  11. fanquake closed this on Oct 24, 2024

  12. fanquake referenced this in commit 0c79c343a9 on Oct 24, 2024
  13. bitcoin-core locked this on Oct 24, 2025
Labels

Milestone
29.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-27 21:20 UTC

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