Post
Topic
Board Announcements (Altcoins)
Re: [ANN] EventToken [EVENT] solution based Crypto Currency | NO ICO | 5th December!
by
Kisokos
on 19/12/2014, 15:37:44 UTC
Hmm, anyone tried to compile the qt from source on linux? I'm getting an error complaining about private method being called - source was cloned straight from github.

please compile with QT 5 not 4

I get some error too trying it to compile it with ubuntu.
Tried it on two different systems (qt5) and always get stuck on the traidingdialog

any ideas?

Code:
In file included from /usr/include/qt5/QtCore/qjsonobject.h:45:0,
                 from /usr/include/qt5/QtCore/QJsonObject:1,
                 from src/qt/tradingdialog.h:10,
                 from src/qt/tradingdialog.cpp:1:
/usr/include/qt5/QtCore/qjsonvalue.h: In member function ‘void tradingDialog::ParseAndPopulateMarketHistoryTable(QString)’:
/usr/include/qt5/QtCore/qjsonvalue.h:119:12: error: ‘QJsonValue::QJsonValue(const void*)’ is private
     inline QJsonValue(const void *) {}
            ^
src/qt/tradingdialog.cpp:528:97: error: within this context
             ui->MarketHistoryTable->item(itteration,1)->setBackgroundColor((obj["OrderType"] == "BUY") ? (QColor (150, 191, 70,255)) : ( QColor (201, 119, 153,255)));
                                                                                                 ^
make: *** [build/tradingdialog.o] Error 1

"/usr/include/qt5/QtCore/qjsonvalue.h:119:12: error: ‘QJsonValue::QJsonValue(const void*)’ is private"

your compiler is badly configured. That error is in your local compiler not in the source.

Read up on JSON

https://qt-project.org/doc/qt-5-snapshot/json.html

otherwise just remove the in wallet trade code and it will compile fine.


OK, so it's complaining about a the private constructor of that QJsonValue object - one of those functions takes a QJsonValue, that you want to create on the fly, which is restricted by the private constructor, to prevent type mismatch.
Normally you would have to be creating it with a specific factory method, like QStringLiteral("bla")

Now if you can configure this out in the compiler level somehow, please let me know the config options & I'll give it a go.