BitgesellOfficial / bitgesell

Bitgesell (BGL) is a digital currency with built-in scarcity
https://www.bitgesell.ca
MIT License
23 stars 37 forks source link

Some bugs that are preventing a successful build #34

Open tkembo opened 3 years ago

tkembo commented 3 years ago

When you try to build a GUI wallet on macOS according to the instructions (the CLI app works fine), it fails and the following is a snippet of the warnings and errors that are printed when building a GUI wallet:

    qt/BGL.cpp:241:53: warning: 'QFlags' is deprecated: Use default constructor instead [-Wdeprecated-declarations]
        SplashScreen *splash = new SplashScreen(m_node, nullptr, networkStyle);
                                                        ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qflags.h:123:5: note: 'QFlags' has been explicitly marked deprecated here
        QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
        ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
    #  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                    ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
    #    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                          ^
    1 warning generated.
      CXX      qt/libBGLqt_a-BGLaddressvalidator.o
      CXX      qt/libBGLqt_a-BGLgui.o
    qt/BGLgui.cpp:1267:29: warning: 'pixmap' is deprecated: Use the other overload which returns QPixmap by-value [-Wdeprecated-declarations]
            if (labelProxyIcon->pixmap() == nullptr) {
                                ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtWidgets.framework/Headers/qlabel.h:77:5: note: 'pixmap' has been explicitly marked deprecated here
        QT_DEPRECATED_VERSION_X(5, 15, "Use the other overload which returns QPixmap by-value")
        ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:382:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X'
    #define QT_DEPRECATED_VERSION_X(major, minor, text) QT_DEPRECATED_VERSION_X_##major(minor, text)
                                                        ^
    <scratch space>:25:1: note: expanded from here
    QT_DEPRECATED_VERSION_X_5
    ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:381:53: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5'
    #define QT_DEPRECATED_VERSION_X_5(minor, text)      QT_DEPRECATED_VERSION_X_5_##minor(text)
                                                        ^
    note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
    # define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                                ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
    #  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                    ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
    #    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                          ^
    1 warning generated.
      CXX      qt/libBGLqt_a-clientmodel.o
      CXX      qt/libBGLqt_a-guiutil.o
    qt/guiutil.cpp:81:22: warning: unused variable 'dummydata' [-Wunused-const-variable]
    static const uint8_t dummydata[] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58,0x86,0xb6,0x7d,0x06,0x52,0x99,0x92,0x59,0x15,0xae,0xb1,0x72,0xc0,0x66,0x47};
                         ^
    1 warning generated.
      CXX      qt/libBGLqt_a-intro.o
      CXX      qt/libBGLqt_a-modaloverlay.o
      CXX      qt/libBGLqt_a-notificator.o
      CXX      qt/libBGLqt_a-optionsdialog.o
      CXX      qt/libBGLqt_a-optionsmodel.o
    qt/optionsmodel.cpp:221:59: warning: 'split' is deprecated: Use Qt::SplitBehavior variant instead [-Wdeprecated-declarations]
        QStringList ip_port = settings.value(name).toString().split(":", QString::SkipEmptyParts);
                                                              ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qstring.h:608:23: note: 'split' has been explicitly marked deprecated here
        Q_REQUIRED_RESULT QT_DEPRECATED_VERSION_X_5_15("Use Qt::SplitBehavior variant instead")
                          ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:374:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_15'
    # define QT_DEPRECATED_VERSION_X_5_15(text) QT_DEPRECATED_X(text)
                                                ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
    #  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                    ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
    #    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                          ^
    1 warning generated.
      CXX      qt/libBGLqt_a-peertablemodel.o
      CXX      qt/libBGLqt_a-rpcconsole.o
      CXX      qt/libBGLqt_a-splashscreen.o
    qt/splashscreen.cpp:43:9: warning: unused variable 'paddingTop' [-Wunused-variable]
        int paddingTop              = 490;
            ^
    qt/splashscreen.cpp:45:9: warning: unused variable 'titleCopyrightVSpace' [-Wunused-variable]
        int titleCopyrightVSpace    = 22;
            ^
    qt/splashscreen.cpp:42:9: warning: unused variable 'paddingRight' [-Wunused-variable]
        int paddingRight            = 14;
            ^
    qt/splashscreen.cpp:44:9: warning: unused variable 'titleVersionVSpace' [-Wunused-variable]
        int titleVersionVSpace      = 17;
            ^
    4 warnings generated.
      CXX      qt/libBGLqt_a-trafficgraphwidget.o
    qt/trafficgraphwidget.cpp:55:13: error: member access into incomplete type 'QPainterPath'
            path.moveTo(x, YMARGIN + h);
                ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
    class QPainterPath;
          ^
    qt/trafficgraphwidget.cpp:59:17: error: member access into incomplete type 'QPainterPath'
                path.lineTo(x, y);
                    ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
    class QPainterPath;
          ^
    qt/trafficgraphwidget.cpp:61:13: error: member access into incomplete type 'QPainterPath'
            path.lineTo(x, YMARGIN + h);
                ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
    class QPainterPath;
          ^
    qt/trafficgraphwidget.cpp:109:22: error: variable has incomplete type 'QPainterPath'
            QPainterPath p;
                         ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
    class QPainterPath;
          ^
    qt/trafficgraphwidget.cpp:116:22: error: variable has incomplete type 'QPainterPath'
            QPainterPath p;
                         ^
    /usr/local/Cellar/qt@5/5.15.2/lib/QtGui.framework/Headers/qmatrix.h:54:7: note: forward declaration of 'QPainterPath'
    class QPainterPath;
          ^
    5 errors generated.
wu-emma commented 3 years ago

Hi, could you please use https://github.com/bitgesellofficial/bitgesell to create issues and activity. Thanks for the participation!