litecoin-project / litecoin

Litecoin source tree
http://www.litecoin.org
MIT License
4.35k stars 3.04k forks source link

GNU/Linux Debian 11 - 5.10.0-9-arm64 kernel (Raspberry Pi 4 8GB) - Build error #760

Open blackmennewstyle opened 2 years ago

blackmennewstyle commented 2 years ago

I'm trying to build litecoin on a Raspberry Pi 8GB running GNU/Linux Debian 11 - 5.10.0-9-arm64 kernel and i'm getting that error during the build process, any help would be appreciated.

qt/trafficgraphwidget.cpp: In member function \u2018void TrafficGraphWidget::paintPath(QPainterPath&, QQueue<float>&)\u2019:
qt/trafficgraphwidget.cpp:55:9: error: invalid use of incomplete type \u2018class QPainterPath\u2019
   55 |         path.moveTo(x, YMARGIN + h);
      |         ^~~~
In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/aarch64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/trafficgraphwidget.h:8,
                 from qt/trafficgraphwidget.cpp:6:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of \u2018class QPainterPath\u2019
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
qt/trafficgraphwidget.cpp:59:13: error: invalid use of incomplete type \u2018class QPainterPath\u2019
   59 |             path.lineTo(x, y);
      |             ^~~~
In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/aarch64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/trafficgraphwidget.h:8,
                 from qt/trafficgraphwidget.cpp:6:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of \u2018class QPainterPath\u2019
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
qt/trafficgraphwidget.cpp:61:9: error: invalid use of incomplete type \u2018class QPainterPath\u2019
   61 |         path.lineTo(x, YMARGIN + h);
      |         ^~~~
In file included from /usr/include/aarch64-linux-gnu/qt5/QtGui/qbrush.h:49,
                 from /usr/include/aarch64-linux-gnu/qt5/QtGui/qpalette.h:46,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:48,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/trafficgraphwidget.h:8,
                 from qt/trafficgraphwidget.cpp:6:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of \u2018class QPainterPath\u2019
   54 | class QPainterPath;
      |       ^~~~~~~~~~~~
qt/trafficgraphwidget.cpp: In member function \u2018virtual void TrafficGraphWidget::paintEvent(QPaintEvent*)\u2019:
qt/trafficgraphwidget.cpp:108:22: error: aggregate \u2018QPainterPath p\u2019 has incomplete type and cannot be defined
  108 |         QPainterPath p;
      |                      ^
qt/trafficgraphwidget.cpp:115:22: error: aggregate \u2018QPainterPath p\u2019 has incomplete type and cannot be defined
  115 |         QPainterPath p;
      |                      ^
qt/splashscreen.cpp: In constructor \u2018SplashScreen::SplashScreen(interfaces::Node&, Qt::WindowFlags, const NetworkStyle*)\u2019:
qt/splashscreen.cpp:77:44: warning: \u2018int QFontMetrics::width(const QString&, int) const\u2019 is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
   77 |     int titleTextWidth = fm.width(titleText);
      |                                            ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/splashscreen.h:8,
                 from qt/splashscreen.cpp:9:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
  106 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
qt/splashscreen.cpp:84:41: warning: \u2018int QFontMetrics::width(const QString&, int) const\u2019 is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
   84 |     titleTextWidth  = fm.width(titleText);
      |                                         ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/splashscreen.h:8,
                 from qt/splashscreen.cpp:9:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
  106 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
qt/splashscreen.cpp:91:49: warning: \u2018int QFontMetrics::width(const QString&, int) const\u2019 is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
   91 |     int versionTextWidth  = fm.width(versionText);
      |                                                 ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/splashscreen.h:8,
                 from qt/splashscreen.cpp:9:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
  106 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
qt/splashscreen.cpp:113:55: warning: \u2018int QFontMetrics::width(const QString&, int) const\u2019 is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
  113 |         int titleAddTextWidth  = fm.width(titleAddText);
      |                                                       ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
                 from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QWidget:1,
                 from ./qt/splashscreen.h:8,
                 from qt/splashscreen.cpp:9:
/usr/include/aarch64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
  106 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
qt/splashscreen.cpp:126:50: warning: \u2018const QRect QDesktopWidget::screenGeometry(int) const\u2019 is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  126 |     move(QApplication::desktop()->screenGeometry().center() - r.center());
      |                                                  ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QDesktopWidget:1,
                 from qt/splashscreen.cpp:23:
/usr/include/aarch64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
   79 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~
make[2]: *** [Makefile:9373: qt/libbitcoinqt_a-trafficgraphwidget.o] Error 1
make[2]: *** Waiting for unfinished jobs....
qt/rpcconsole.cpp: In constructor \u2018RPCConsole::RPCConsole(interfaces::Node&, const PlatformStyle*, QWidget*)\u2019:
qt/rpcconsole.cpp:457:57: warning: \u2018const QRect QDesktopWidget::availableGeometry(int) const\u2019 is deprecated: Use QGuiApplication::screens() [-Wdeprecated-declarations]
  457 |         move(QApplication::desktop()->availableGeometry().center() - frameGeometry().center());
      |                                                         ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtWidgets/QDesktopWidget:1,
                 from qt/rpcconsole.cpp:33:
/usr/include/aarch64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:88:67: note: declared here
   88 |     QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect availableGeometry(int screen = -1) const;
      |                                                                   ^~~~~~~~~~~~~~~~~
qt/rpcconsole.cpp: In member function \u2018void RPCConsole::setClientModel(ClientModel*)\u2019:
qt/rpcconsole.cpp:621:95: warning: \u2018void QSignalMapper::mapped(int)\u2019 is deprecated: Use QSignalMapper::mappedInt(int) instead [-Wdeprecated-declarations]
  621 |         connect(signalMapper, static_cast<void (QSignalMapper::*)(int)>(&QSignalMapper::mapped), this, &RPCConsole::banSelectedNode);
      |                                                                                               ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtCore/QSignalMapper:1,
                 from qt/rpcconsole.cpp:39:
/usr/include/aarch64-linux-gnu/qt5/QtCore/qsignalmapper.h:71:10: note: declared here
   71 |     void mapped(int);
      |          ^~~~~~
qt/rpcconsole.cpp:621:95: warning: \u2018void QSignalMapper::mapped(int)\u2019 is deprecated: Use QSignalMapper::mappedInt(int) instead [-Wdeprecated-declarations]
  621 |         connect(signalMapper, static_cast<void (QSignalMapper::*)(int)>(&QSignalMapper::mapped), this, &RPCConsole::banSelectedNode);
      |                                                                                               ^
In file included from /usr/include/aarch64-linux-gnu/qt5/QtCore/QSignalMapper:1,
                 from qt/rpcconsole.cpp:39:
/usr/include/aarch64-linux-gnu/qt5/QtCore/qsignalmapper.h:71:10: note: declared here
   71 |     void mapped(int);
      |          ^~~~~~
make[2]: Leaving directory '/home/ceedii/litecoin-0.18.1/src'
make[1]: *** [Makefile:13084: all-recursive] Error 1
make[1]: Leaving directory '/home/ceedii/litecoin-0.18.1/src'
make: *** [Makefile:778: all-recursive] Error 1
blackmennewstyle commented 2 years ago

After some more attempts, i found myself also facing that issue, when trying to build the project using the dependencies:

wget https://github.com/litecoin-project/litecoin/archive/refs/tags/v0.18.1.tar.gz
tar -xvf v0.18.1.tar.gz
cd litecoin-0.18.1/
cd depends/
make download-linux
Fetching boost_1_64_0.tar.bz2 from https://dl.bintray.com/boostorg/release/1.64.0/source/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 403 Forbidden
Fetching boost_1_64_0.tar.bz2 from https://bitcoincore.org/depends-sources
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 76.7M  100 76.7M    0     0  2631k      0  0:00:29  0:00:29 --:--:-- 4189k
/home/ceedii/litecoin-0.18.1/depends/work/download/boost-1_64_0/boost_1_64_0.tar.bz2.temp: OK
Fetching openssl-1.0.1k.tar.gz from https://www.openssl.org/source
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4330k  100 4330k    0     0  5360k      0 --:--:-- --:--:-- --:--:-- 5360k
/home/ceedii/litecoin-0.18.1/depends/work/download/openssl-1.0.1k/openssl-1.0.1k.tar.gz.temp: OK
Fetching release-2.1.8-stable.tar.gz from https://github.com/libevent/libevent/archive/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   139  100   139    0     0    231      0 --:--:-- --:--:-- --:--:--   231
100  684k    0  684k    0     0   291k      0 --:--:--  0:00:02 --:--:--  417k
/home/ceedii/litecoin-0.18.1/depends/work/download/libevent-2.1.8-stable/release-2.1.8-stable.tar.gz.temp: OK
Fetching zeromq-4.3.1.tar.gz from https://github.com/zeromq/libzmq/releases/download/v4.3.1/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   652  100   652    0     0   1502      0 --:--:-- --:--:-- --:--:--  1502
100 1455k  100 1455k    0     0   912k      0  0:00:01  0:00:01 --:--:-- 5052k
/home/ceedii/litecoin-0.18.1/depends/work/download/zeromq-4.3.1/zeromq-4.3.1.tar.gz.temp: OK
Fetching qrencode-3.4.4.tar.bz2 from https://fukuchi.org/works/qrencode/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  360k  100  360k    0     0   212k      0  0:00:01  0:00:01 --:--:--  212k
/home/ceedii/litecoin-0.18.1/depends/work/download/qrencode-3.4.4/qrencode-3.4.4.tar.bz2.temp: OK
Fetching protobuf-2.6.1.tar.bz2 from https://github.com/google/protobuf/releases/download/v2.6.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   157  100   157    0     0    398      0 --:--:-- --:--:-- --:--:--   398
100   659  100   659    0     0    901      0 --:--:-- --:--:-- --:--:--   901
100 1974k  100 1974k    0     0   658k      0  0:00:02  0:00:02 --:--:--  917k
/home/ceedii/litecoin-0.18.1/depends/work/download/protobuf-2.6.1/protobuf-2.6.1.tar.bz2.temp: OK
Fetching zlib-1.2.11.tar.gz from http://www.zlib.net
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  593k  100  593k    0     0   297k      0  0:00:01  0:00:01 --:--:--  296k
/home/ceedii/litecoin-0.18.1/depends/work/download/zlib-1.2.11/zlib-1.2.11.tar.gz.temp: OK
Fetching qtbase-opensource-src-5.9.7.tar.xz from https://download.qt.io/official_releases/qt/5.9/5.9.7/submodules
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Fetching qtbase-opensource-src-5.9.7.tar.xz from https://bitcoincore.org/depends-sources
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
make[1]: *** [funcs.mk:245: /home/ceedii/litecoin-0.18.1/depends/sources/download-stamps/.stamp_fetched-qt-qtbase-opensource-src-5.9.7.tar.xz.hash] Error 22
make: *** [Makefile:190: download-linux] Error 2
z7737546436 commented 2 years ago

Why are you installing on RPi 4 I am from a mining background as I know mining on RPi is not profitable so what are you building on RPi?

blackmennewstyle commented 2 years ago

Why are you installing on RPi 4 I am from a mining background as I know mining on RPi is not profitable so what are you building on RPi?

You must not be a great miner, i'm just trying to build the wallet on my Raspberry Pi lol