FBReader icon indicating copy to clipboard operation
FBReader copied to clipboard

fbreader 0.99.4 doesn't build on Debian Wheezy armel

Open ghost opened this issue 11 years ago • 2 comments

I tried to compile fbreader 0.99.4 on Debian Wheezy armel, with dpkg-buildpackage. First of all, to avoid a lot of warnings and even some errors I installed pkg-config, that was not indicated as a requirement. The compile procedure stopped at some point giving these errors:

...
Compiling ZLQtNetworkManager.moc.o ... OK
rm ZLQtNetworkManager.moc.cpp
make[2]: Leaving directory `/home/root/fbreader_source/fbreader/fbreader-0.99.4/zlibrary/ui/src/qt4/network'
make[2]: Entering directory `/home/root/fbreader_source/fbreader/fbreader-0.99.4/zlibrary/ui/src/qt4/tree'
Compiling QtWaitingSpinner.o ...QtWaitingSpinner.cpp: In member function 'void QtWaitingSpinner::setRoundness(qreal)':
QtWaitingSpinner.cpp:89:55: error: no matching function for call to 'min(double, qreal&)'
QtWaitingSpinner.cpp:89:55: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:187:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:233:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
QtWaitingSpinner.cpp: In static member function 'static QColor QtWaitingSpinner::countTrailColor(int, int, int, int, QColor)':
QtWaitingSpinner.cpp:151:55: error: no matching function for call to 'max(double, qreal&)'
QtWaitingSpinner.cpp:151:55: note: candidates are:
/usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
/usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
make[2]: *** [QtWaitingSpinner.o] Error 1
make[2]: Leaving directory `/home/root/fbreader_source/fbreader/fbreader-0.99.4/zlibrary/ui/src/qt4/tree'
make[1]: *** [.objects] Error 1
make[1]: Leaving directory `/home/root/fbreader_source/fbreader/fbreader-0.99.4/zlibrary/ui'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Could it be related to this issue http://wiki.debian.org/ArmEabiFixes#qreal_.28qMin.2C_qMax.2C_Qt.29 ?

ghost avatar May 02 '13 21:05 ghost

and with gcc 4.8.1:

In file included from ZLGtkUtil.cpp:24:0: ZLGtkDialogManager.h: In static member function 'static void ZLGtkDialogManager::createInstance()': ZLGtkDialogManager.h:33:70: error: cannot allocate an object of abstract type 'ZLGtkDialogManager' static void createInstance() { ourInstance = new ZLGtkDialogManager(); } ^ ZLGtkDialogManager.h:30:7: note: because the following virtual functions are pure within 'ZLGtkDialogManager': class ZLGtkDialogManager : public ZLDialogManager { ^

Safari77 avatar Jul 13 '13 10:07 Safari77

I've written a patch for the first issue here (with QtWaitingSpinner.cpp). It is available at https://bugs.gentoo.org/show_bug.cgi?id=515698 because there doesn't seem to be any way to attach patches to GitHub issues and I can't submit it as a pull request because the affected file doesn't seem to be in the repository.

wthrowe avatar Jul 06 '14 01:07 wthrowe