https://bugs.kde.org/show_bug.cgi?id=419003
Bug ID: 419003
Summary: unable to compile ktorrent (master :5b57d8cb02 )
failed : ‘TrackersStatusInfo’ is not a member of ‘bt’
Product: ktorrent
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: joris.guis...@gmail.com
Reporter: etienn...@yahoo.fr
Target Milestone: ---
SUMMARY
STEPS TO REPRODUCE
1. git clone
2. compilation
3.
OBSERVED RESULT
compilation failed
EXPECTED RESULT
SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2
ADDITIONAL INFORMATION
/home/me/ktorrent/ktorrent/view/viewmodel.cpp: In member function ‘virtual
QVariant kt::ViewModel::data(const QModelIndex&, int) const’:
/home/me/ktorrent/ktorrent/view/viewmodel.cpp:562:21: error:
‘TrackersStatusInfo’ is not a member of ‘bt’
562 | bt::TrackersStatusInfo tsi =
item->tc->getTrackersList()->getTrackersStatusInfo();
| ^~
/home/me/ktorrent/ktorrent/view/viewmodel.cpp:564:22: error: ‘tsi’ was not
declared in this scope
564 | if ((tsi.errors + tsi.warnings) == tsi.trackers_count)
| ^~~
/home/me/ktorrent/ktorrent/view/viewmodel.cpp: In member function ‘virtual void
kt::ViewModel::sort(int, Qt::SortOrder)’:
/home/me/ktorrent/ktorrent/view/viewmodel.cpp:809:83: warning: ‘void
qStableSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with
RandomAccessIterator = QTypedArrayData::iterator;
LessThan = kt::ViewModelItemCmp]’ is deprecated: Use std::stable_sort
[-Wdeprecated-declarations]
809 | qStableSort(torrents.begin(), torrents.end(),
ViewModelItemCmp(col, order));
|
^
In file included from /usr/include/qt5/QtCore/qlist.h:43,
from /usr/include/qt5/QtCore/qvariant.h:45,
from /usr/include/qt5/QtCore/qabstractitemmodel.h:43,
from /usr/include/qt5/QtCore/QAbstractTableModel:1,
from /home/me/ktorrent/ktorrent/view/viewmodel.h:25,
from /home/me/ktorrent/ktorrent/view/viewmodel.cpp:22:
/usr/include/qt5/QtCore/qalgorithms.h:206:53: note: declared here
206 | QT_DEPRECATED_X("Use std::stable_sort") inline void
qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan
lessThan)
| ^~~
/home/me/ktorrent/ktorrent/view/viewmodel.cpp:809:83: warning: ‘void
qStableSort(RandomAccessIterator, RandomAccessIterator, LessThan) [with
RandomAccessIterator = QTypedArrayData::iterator;
LessThan = kt::ViewModelItemCmp]’ is deprecated: Use std::stable_sort
[-Wdeprecated-declarations]
809 | qStableSort(torrents.begin(), torrents.end(),
ViewModelItemCmp(col, order));
|
^
In file included from /usr/include/qt5/QtCore/qlist.h:43,
from /usr/include/qt5/QtCore/qvariant.h:45,
from /usr/include/qt5/QtCore/qabstractitemmodel.h:43,
from /usr/include/qt5/QtCore/QAbstractTableModel:1,
from /home/me/ktorrent/ktorrent/view/viewmodel.h:25,
from /home/me/ktorrent/ktorrent/view/viewmodel.cpp:22:
/usr/include/qt5/QtCore/qalgorithms.h:206:53: note: declared here
206 | QT_DEPRECATED_X("Use std::stable_sort") inline void
qStableSort(RandomAccessIterator start, RandomAccessIterator end, LessThan
lessThan)
| ^~~
make[2]: *** [ktorrent/CMakeFiles/ktorrent_app.dir/build.make:627:
ktorrent/CMakeFiles/ktorrent_app.dir/view/viewmodel.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1895:
ktorrent/CMakeFiles/ktorrent_app.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
--
You are receiving this mail because:
You are watching all bug changes.