Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
krzynek_one
on 03/11/2018, 07:20:07 UTC
After removal first seven lines from QtBitcoinTrader_Desktop.pro compilation runs fine to the moment where error happens and compilation fails:

Code:
exchange/exchange_bittrex.cpp: In member function ‘virtual void Exchange_Bittrex::dataReceivedAuth(QByteArray, int)’:
exchange/exchange_bittrex.cpp:224:55: error: ‘class QDateTime’ has no member named ‘toSecsSinceEpoch’; did you mean ‘toMSecsSinceEpoch’?
                     newItem.date = date.toLocalTime().toSecsSinceEpoch();
                                                       ^~~~~~~~~~~~~~~~
exchange/exchange_bittrex.cpp:444:66: error: ‘class QDateTime’ has no member named ‘toSecsSinceEpoch’; did you mean ‘toMSecsSinceEpoch’?
                         currentOrder.date   = date.toLocalTime().toSecsSinceEpoch();
                                                                  ^~~~~~~~~~~~~~~~
Makefile:3362: recipe for target '.obj/exchange_bittrex.o' failed
make: *** [.obj/exchange_bittrex.o] Error 1

So next, I installed qt5 package with gdebi  from https://packages.debian.org/sid/armhf/qt5-default/download (my proc architecture is armhf not arm64):

Code:
pi@raspberrypi:~/Downloads $ sudo gdebi qt5-default_5.11.2+dfsg-4_armhf.deb
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done

Qt 5 development defaults package
 Qt is a cross-platform C++ application framework. Qt's primary feature
 is its rich set of widgets that provide standard GUI functionality.
 .
 This package sets Qt 5 to be the default Qt version to be used when
 using development binaries like qmake. It provides a default
 configuration for qtchooser, but does not prevent alternative Qt
 installations from being used.
 .
 This package should not be used for building Debian packages. Take a
 look at https://qt-kde-team.pages.debian.net/packagingqtbasedstuff.html for
 more information.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package qt5-default:armhf.
(Reading database ... 133501 files and directories currently installed.)
Preparing to unpack qt5-default_5.11.2+dfsg-4_armhf.deb ...
Unpacking qt5-default:armhf (5.11.2+dfsg-4) ...
Setting up qt5-default:armhf (5.11.2+dfsg-4) ...



but it seams that old qt5 version is used so still error about wrong qt version when compiling qt trader happens.

Maybe that is not the proper package? I don't see any ../qt5/bin/... files there. Please take a look at what files are in the package:

https://vpx.pl/i/2018/11/03/package.png

Can you help me with setting default qt5 installation to newer version?