Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT compiling Issue #27

Open
odzser opened this issue Aug 19, 2020 · 0 comments
Open

QT compiling Issue #27

odzser opened this issue Aug 19, 2020 · 0 comments
Assignees

Comments

@odzser
Copy link

odzser commented Aug 19, 2020

Hi,
I am trying to compile the coin on Raspberry 4 with qt build. But I am getting this error while compiling using make command.

/usr/local/openssl/include -Ibuild -Ibuild src/qt/networkpage.h -o build/moc_networkpage.cpp
/usr/lib/arm-linux-gnueabihf/qt4/bin/moc -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -DUSE_UPNP=1 -DSTATICLIB -DMINIUPNP_STATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/openssl/include -Ibuild -Ibuild src/qt/stakereportdialoge.h -o build/moc_stakereportdialoge.cpp
/usr/lib/arm-linux-gnueabihf/qt4/bin/rcc -name bitcoin src/qt/bitcoin.qrc -o release/qrc_bitcoin.cpp
g++ -c -pipe -fstack-protector-all --param ssp-buffer-size=1 -O2 -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter -Wstack-protector -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -DUSE_UPNP=1 -DSTATICLIB -DMINIUPNP_STATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/openssl/include -Ibuild -Ibuild -o build/intro.o src/qt/intro.cpp
g++ -c -pipe -fstack-protector-all --param ssp-buffer-size=1 -O2 -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter -Wstack-protector -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -DUSE_UPNP=1 -DSTATICLIB -DMINIUPNP_STATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/openssl/include -Ibuild -Ibuild -o build/overviewpage.o src/qt/overviewpage.cpp
In file included from src/qt/shoppingpage.h:5,
from src/qt/shoppingpage.cpp:1:
src/main.h: In member function ‘void CBlock::print() const’:
src/main.h:943:16: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 10 has type ‘std::vector::size_type’ {aka ‘unsigned int’} [-Wformat=]
printf("CBlock(hash=%s, PoW=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%" PRI64u ", vchBlockSig=%s)\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.h:950:13:
vtx.size(),
~~~~~~~~~~
In file included from src/qt/stakereportdialoge.cpp:15:
src/main.h: In member function ‘void CBlock::print() const’:
src/main.h:943:16: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 10 has type ‘std::vector::size_type’ {aka ‘unsigned int’} [-Wformat=]
printf("CBlock(hash=%s, PoW=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%" PRI64u ", vchBlockSig=%s)\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.h:950:13:
vtx.size(),
~~~~~~~~~~
In file included from src/qt/shoppingpage.cpp:2:
build/ui_shoppingpage.h: In member function ‘void Ui_ShoppingPage::setupUi(QWidget*)’:
build/ui_shoppingpage.h:896:55: error: ‘PlaceholderText’ is not a member of ‘QPalette’
palette1.setBrush(QPalette::Active, QPalette::PlaceholderText, brush6);
^~~~~~~~~~~~~~~
build/ui_shoppingpage.h:915:57: error: ‘PlaceholderText’ is not a member of ‘QPalette’
palette1.setBrush(QPalette::Inactive, QPalette::PlaceholderText, brush7);
^~~~~~~~~~~~~~~
build/ui_shoppingpage.h:936:57: error: ‘PlaceholderText’ is not a member of ‘QPalette’
palette1.setBrush(QPalette::Disabled, QPalette::PlaceholderText, brush9);
^~~~~~~~~~~~~~~
In file included from src/qt/overviewpage.h:6,
from src/qt/overviewpage.cpp:1:
src/main.h: In member function ‘void CBlock::print() const’:
src/main.h:943:16: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 10 has type ‘std::vector::size_type’ {aka ‘unsigned int’} [-Wformat=]
printf("CBlock(hash=%s, PoW=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%" PRI64u ", vchBlockSig=%s)\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.h:950:13:
vtx.size(),
~~~~~~~~~~
g++ -c -pipe -fstack-protector-all --param ssp-buffer-size=1 -O2 -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter -Wstack-protector -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -DUSE_UPNP=1 -DSTATICLIB -DMINIUPNP_STATICLIB -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -I/usr/local/BerkeleyDB.4.8/include -I/usr/local/openssl/include -Ibuild -Ibuild -o build/rpcconsole.o src/qt/rpcconsole.cpp
make[1]: *** [Makefile.Release:2849: build/shoppingpage.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/qt/overviewpage.cpp: In member function ‘void OverviewPage::updateStatistics()’:
src/qt/overviewpage.cpp:549:24: warning: unused variable ‘lastUpdate’ [-Wunused-variable]
static int64_t lastUpdate = 0;
^~~~~~~~~~
src/qt/overviewpage.cpp:582:23: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long long unsigned int’} and ‘in ’ [-Wsign-compare]
if(nNetworkWeight > stakemaxPrevious)
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
src/qt/overviewpage.cpp:587:28: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long long unsigned int’} and ‘in ’ [-Wsign-compare]
else if(nNetworkWeight < stakemaxPrevious)
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt4/QtGui/qbrush.h:47,
from /usr/include/qt4/QtGui/qpalette.h:47,
from /usr/include/qt4/QtGui/qwidget.h:50,
from /usr/include/qt4/QtGui/QWidget:1,
from src/qt/overviewpage.h:4,
from src/qt/overviewpage.cpp:1:
/usr/include/qt4/QtCore/qvector.h: In instantiation of ‘void QVector::realloc(int, int) [with T = QString]’:
/usr/include/qt4/QtCore/qvector.h:337:3: required from ‘void QVector::detach_helper() [with T = QString]’
/usr/include/qt4/QtCore/qvector.h:123:84: required from ‘QVector::QVector(const QVector&) [with T = QString]’
src/qt/qcustomplot.h:1102:54: required from here
/usr/include/qt4/QtCore/qvector.h:503:25: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘QVector::Data’ {aka ‘struct QVectorTypedData’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
::memcpy(x.p, p, sizeOfTypedData() + (qMin(aalloc, d->alloc) - 1) * sizeof(T));
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt4/QtGui/qbrush.h:47,
from /usr/include/qt4/QtGui/qpalette.h:47,
from /usr/include/qt4/QtGui/qwidget.h:50,
from /usr/include/qt4/QtGui/QWidget:1,
from src/qt/overviewpage.h:4,
from src/qt/overviewpage.cpp:1:
/usr/include/qt4/QtCore/qvector.h:94:8: note: ‘QVector::Data’ {aka ‘struct QVectorTypedData’} declared here
struct QVectorTypedData : private QVectorData
^~~~~~~~~~~~~~~~
src/qt/overviewpage.cpp: At global scope:
src/qt/overviewpage.cpp:549:24: warning: ‘lastUpdate’ defined but not used [-Wunused-variable]
static int64_t lastUpdate = 0;
^~~~~~~~~~
make[1]: Leaving directory '/home/pi/wallets/netcoin/netcoin-3.0.0'
make: *** [Makefile:34: release] Error 2


I followed this instruction: https://github.com/netcoinfoundation/netcoin/blob/master/doc/readme-qt.rst
qmake
make

Can anybody please help?

@regtable regtable self-assigned this Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants