Post
Topic
Board Announcements (Altcoins)
Re: [Download New Wallets] Clean Water Coin | $2,000 Donated to Charity: Water
by
free_istheway
on 26/06/2014, 23:17:20 UTC
I also tried compiling the qt client from the latest github.
I've compiled several other *coin qt clients without any problems on my system, but cleanwatercoin-qt failed everything I've tried.
with qmake/make:
make says:
:0:2: error: no macro name given in #define directive
:0:1: error: macro names must be identifiers
make: *** [build/bitcoin.o] Error 1


...


Anyway, I'm glad other issues seem to be all fixed up... I'm mining away, waiting for the 0.00000100's or better...
Thanks!


Thank you for informing me about this... It's me to blame and a stupid space character (actually 2).
I will have it fixed in the new version, but you can fix it easily if you want to build it right now.
Open your cleanwatercoin-qt.pro file

You will find this:
Code:
greaterThan(QT_MAJOR_VERSION, 4) {
    QT += widgets
DEFINES += QT_DISABLE_DEPRECATED_BEFORE = 0
}

You see the spaces after the QT_DISABLE_DEPRECATED_BEFORE?
My stupid text editor thought it would be better if it had it with spaces, so it shows up better Oo

You should change it to:

Code:
greaterThan(QT_MAJOR_VERSION, 4) {
    QT += widgets
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
}
(remove the spaces)

That was the problem and I'm very sorry I was the cause of all your troubles...

Thanks for your quick response..
That helped!
The compile made it much further..
But alas, it got to build/bitcoin.o, and started complaining about:

build/bitcoin.o: In function `ThreadSafeHandleURI(std::string const&)':
bitcoin.cpp:(.text+0xabc): undefined reference to `QString::fromAscii(char const*, int)'
bitcoin.cpp:(.text+0xbd9): undefined reference to `QString::free(QString::Data*)'
build/bitcoin.o: In function `ThreadSafeMessageBox(std::string const&, std::string const&, int)':
bitcoin.cpp:(.text+0xc51): undefined reference to `QString::fromAscii(char const*, int)'
bitcoin.cpp:(.text+0xc68): undefined reference to `QString::fromAscii(char const*, int)'
build/bitcoin.o: In function `InitMessage(std::string const&)':
bitcoin.cpp:(.text+0xe3b): undefined reference to `QString::fromAscii(char const*, int)'
bitcoin.cpp:(.text+0xe95): undefined reference to `QString::free(QString::Data*)'
build/bitcoin.o: In function `Translate(char const*)':

.... many more complaints from bitcoingui.cpp, transactiontablemodel.cpp, and addresstablemodel.cpp
and it ended with:

addresstablemodel.cpp:(.text._ZN16AddressTablePriv19refreshAddressTableEv[_ZN16AddressTablePriv19refreshAddressTableEv]+0x3ab): undefined reference to `QString::free(QString::Data*)'
build/addresstablemodel.o: In function `QList::erase(QList::iterator, QList::iterator)':
addresstablemodel.cpp:(.text._ZN5QListI17AddressTableEntryE5eraseENS1_8iteratorES2_[_ZN5QListI17AddressTableEntryE5eraseENS1_8iteratorES2_]+0x4b): undefined reference to `QString::free(QString::Data*)'
build/addresstablemodel.o:addresstablemodel.cpp:(.text._ZN5QListI17AddressTableEntryE5eraseENS1_8iteratorES2_[_ZN5QListI17AddressTableEntryE5eraseENS1_8iteratorES2_]+0x7d): more undefined references to `QString::free(QString::Data*)' follow
build/addresstablemodel.o: In function `AddressTablePriv::updateEntry(QString const&, QString const&, bool, int)':
addresstablemodel.cpp:(.text._ZN16AddressTablePriv11updateEntryERK7QStringS2_bi[_ZN16AddressTablePriv11updateEntryERK7QStringS2_bi]+0xc9): undefined reference to `QString::operator<(QString const&) const'
addresstablemodel.cpp:(.text._ZN16AddressTablePriv11updateEntryERK7QStringS2_bi[_ZN16AddressTablePriv11updateEntryERK7QStringS2_bi]+0x171): undefined reference to `QString::operator<(QString const&) const'
collect2: error: ld returned 1 exit status
make: *** [cleanwatercoin-qt] Error 1


I can send the whole log if that would help.

Thanks