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

issue maflcko openend 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:

     0Configure summary
     1=================
     2Executables:
     3  bitcoind ............................ ON
     4  bitcoin-node (multiprocess) ......... OFF
     5  bitcoin-qt (GUI) .................... ON
     6  bitcoin-gui (GUI, multiprocess) ..... OFF
     7  bitcoin-cli ......................... ON
     8  bitcoin-tx .......................... ON
     9  bitcoin-util ........................ ON
    10  bitcoin-wallet ...................... ON
    11  bitcoin-chainstate (experimental) ... OFF
    12  libbitcoinkernel (experimental) ..... OFF
    13Optional features:
    14  wallet support ...................... ON
    15   - descriptor wallets (SQLite) ...... ON
    16   - legacy wallets (Berkeley DB) ..... OFF
    17  external signer ..................... ON
    18  port mapping using UPnP ............. OFF
    19  ZeroMQ .............................. OFF
    20  USDT tracing ........................ OFF
    21  QR code (GUI) ....................... OFF
    22  DBus (GUI, Linux only) .............. ON
    23Tests:
    24  test_bitcoin ........................ ON
    25  test_bitcoin-qt ..................... ON
    26  bench_bitcoin ....................... ON
    27  fuzz binary ......................... ON
    28
    29Cross compiling ....................... FALSE
    30C++ compiler .......................... GNU 14.2.1, /usr/bin/c++
    31CMAKE_BUILD_TYPE ...................... RelWithDebInfo
    32Preprocessor defined macros ........... 
    33C++ 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
    34Linker 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
    35
    36NOTE: The summary above may not exactly match the final applied build flags
    37      if any additional CMAKE_* or environment variables have been modified.
    38      To see the exact flags applied, build with the --verbose option.
    39
    40Attempt to harden executables ......... ON
    41Treat compiler warnings as errors ..... ON
    42Use ccache for compiling .............. ON
    43
    44
    45-- Configuring done (50.1s)
    46CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
    47  Error evaluating generator expression:
    48
    49    $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    50
    51  Target "Qt5::QMinimalIntegrationPlugin" not found.
    52
    53
    54CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
    55  Error evaluating generator expression:
    56
    57    $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    58
    59  Target "Qt5::QMinimalIntegrationPlugin" not found.
    60
    61
    62CMake Error at src/qt/test/CMakeLists.txt:36 (add_custom_command):
    63  Error evaluating generator expression:
    64
    65    $<TARGET_PROPERTY:Qt5::QMinimalIntegrationPlugin,LOCATION_$<UPPER_CASE:$<CONFIG>>>
    66
    67  Target "Qt5::QMinimalIntegrationPlugin" not found.
    68
    69
    70-- Generating done (0.9s)
    71CMake Warning:
    72  Manually-specified variables were not used by the project:
    73
    74    WITH_NATPMP
    75
    76
    77CMake 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


maflcko fanquake hebasto

Labels
Bug Linux

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: 2024-12-11 06:20 UTC

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