Failing to compile (qt library) #11850

issue jadox opened this issue on December 8, 2017
  1. jadox commented at 9:44 AM on December 8, 2017: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    <!--- What behavior did you expect? -->

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    `make[1]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' Making install in . make[2]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' make[3]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src' /bin/mkdir -p '/usr/local/bin' /usr/bin/install -c bitcoind bitcoin-cli '/usr/local/bin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' make[2]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' Making install in qt make[2]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' make install-recursive make[3]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Making install in . make[4]: Entering directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' CXX libbitcoinqt_a-bitcoin.o In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qwindowdefs.h:37:0, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:37, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1, from bitcoingui.h:12, from bitcoin.cpp:9: /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."

    error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\

    ^

    Makefile:1232: recipe for target 'libbitcoinqt_a-bitcoin.o' failed make[4]: *** [libbitcoinqt_a-bitcoin.o] Error 1 make[4]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:2578: recipe for target 'install-recursive' failed make[3]: *** [install-recursive] Error 1 make[3]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:2735: recipe for target 'install' failed make[2]: *** [install] Error 2 make[2]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src/qt' Makefile:860: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/media/lolek/Bitcoin-Node/bitcoin/src' Makefile:509: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1 ` This error is thrown when trying to compile the Bitcoin Core. Any ideas what's wrong?

    Thanks

    Ubuntu 16.04

  2. jonasschnelli commented at 7:04 PM on December 8, 2017: contributor

    If you want to compile Qt yourself, try to compile with the depends system:

    cd depends
    make
    cd ..
    ./configure --prefix=`pwd`/depends/<YOUR_HOST_PLATFORM>
    

    If you want the simple approach, install the Qt libraries via apt (see https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md).

  3. Sjors commented at 1:45 PM on March 16, 2018: member

    @jadox are you still having this issue?

  4. MarcoFalke closed this on Mar 17, 2018

  5. MarcoFalke added the label Build system on Mar 17, 2018
  6. MarcoFalke added the label Questions and Help on Mar 17, 2018
  7. DrahtBot locked this on Sep 8, 2021

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: 2026-04-26 06:15 UTC

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