编译Qbittorrent
的时候出现:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
cd src/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake -o Makefile /home/sipl/qBittorrent-release-4.1.9/src/src.pro QMAKE_LRELEASE= ) && make -f Makefile make[1]: Entering directory `/home/sipl/qBittorrent-release-4.1.9/src' compiling app/qtsingleapplication/qtsinglecoreapplication.cpp compiling app/qtsingleapplication/qtlocalpeer.cpp compiling app/application.cpp compiling app/cmdoptions.cpp compiling app/filelogger.cpp compiling app/main.cpp compiling base/asyncfilestorage.cpp compiling base/bittorrent/filepriority.cpp compiling base/bittorrent/infohash.cpp compiling base/bittorrent/magneturi.cpp compiling base/bittorrent/peerinfo.cpp compiling base/bittorrent/private/bandwidthscheduler.cpp compiling base/bittorrent/private/filterparserthread.cpp compiling base/bittorrent/private/resumedatasavingmanager.cpp compiling base/bittorrent/private/speedmonitor.cpp compiling base/bittorrent/private/statistics.cpp compiling base/bittorrent/session.cpp compiling base/bittorrent/torrentcreatorthread.cpp base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::setTempPathEnabled(bool)’: base/bittorrent/session.cpp:615:63: error: call of overloaded ‘asConst(QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) ^ base/bittorrent/session.cpp:615:63: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::setAppendExtensionEnabled(bool)’: base/bittorrent/session.cpp:629:63: error: call of overloaded ‘asConst(QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) ^ base/bittorrent/session.cpp:629:63: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘bool BitTorrent::Session::deleteTorrent(const QString&, bool)’: base/bittorrent/session.cpp:1942:65: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const QString &unwantedFile : asConst(unwantedFiles)) { ^ base/bittorrent/session.cpp:1942:65: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::generateResumeData(bool)’: base/bittorrent/session.cpp:2389:59: error: call of overloaded ‘asConst(QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) { ^ base/bittorrent/session.cpp:2389:59: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::saveTorrentsQueue()’: base/bittorrent/session.cpp:2448:45: error: call of overloaded ‘asConst(QMap<int, QString>&)’ is ambiguous for (const QString &hash : asConst(queue)) ^ base/bittorrent/session.cpp:2448:45: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QMap<int, QString>; typename std::add_const<_Tp>::type = const QMap<int, QString>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QMap<int, QString>&; typename std::add_const<_Tp>::type = QMap<int, QString>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::setTempPath(QString)’: base/bittorrent/session.cpp:2484:59: error: call of overloaded ‘asConst(QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) ^ base/bittorrent/session.cpp:2484:59: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘bool BitTorrent::Session::hasPerTorrentRatioLimit() const’: base/bittorrent/session.cpp:3809:59: error: call of overloaded ‘asConst(const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) ^ base/bittorrent/session.cpp:3809:59: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘bool BitTorrent::Session::hasPerTorrentSeedingTimeLimit() const’: base/bittorrent/session.cpp:3817:59: error: call of overloaded ‘asConst(const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) ^ base/bittorrent/session.cpp:3817:59: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::startUpTorrents()’: base/bittorrent/session.cpp:3961:69: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const QString &fastresumeName : asConst(fastresumes)) { ^ base/bittorrent/session.cpp:3961:69: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp:4000:87: error: call of overloaded ‘asConst(QMap<int, BitTorrent::Session::startUpTorrents()::TorrentResumeData>&)’ is ambiguous for (const TorrentResumeData &torrentResumeData : asConst(queuedResumeData)) ^ base/bittorrent/session.cpp:4000:87: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QMap<int, BitTorrent::Session::startUpTorrents()::TorrentResumeData>; typename std::add_const<_Tp>::type = const QMap<int, BitTorrent::Session::startUpTorrents()::TorrentResumeData>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QMap<int, BitTorrent::Session::startUpTorrents()::TorrentResumeData>&; typename std::add_const<_Tp>::type = QMap<int, BitTorrent::Session::startUpTorrents()::TorrentResumeData>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp:4022:61: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const QString &fastresumeName : asConst(fastresumes)) { ^ base/bittorrent/session.cpp:4022:61: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/session.cpp: In member function ‘void BitTorrent::Session::handleStateUpdateAlert(libtorrent::state_update_alert*)’: base/bittorrent/session.cpp:4622:59: error: call of overloaded ‘asConst(QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&)’ is ambiguous for (TorrentHandle *const torrent : asConst(m_torrents)) { ^ base/bittorrent/session.cpp:4622:59: note: candidates are: In file included from base/bittorrent/session.cpp:73:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>; typename std::add_const<_Tp>::type = const QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&; typename std::add_const<_Tp>::type = QHash<BitTorrent::InfoHash, BitTorrent::TorrentHandle*>&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ make[1]: *** [session.o] Error 1 make[1]: *** Waiting for unfinished jobs.... base/bittorrent/torrentcreatorthread.cpp: In member function ‘virtual void BitTorrent::TorrentCreatorThread::run()’: base/bittorrent/torrentcreatorthread.cpp:113:48: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const auto &dir : asConst(dirs)) { ^ base/bittorrent/torrentcreatorthread.cpp:113:48: note: candidates are: In file included from base/bittorrent/torrentcreatorthread.cpp:45:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/torrentcreatorthread.cpp:129:58: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const auto &fileName : asConst(fileNames)) ^ base/bittorrent/torrentcreatorthread.cpp:129:58: note: candidates are: In file included from base/bittorrent/torrentcreatorthread.cpp:45:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/torrentcreatorthread.cpp:144:54: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (QString seed : asConst(m_params.urlSeeds)) { ^ base/bittorrent/torrentcreatorthread.cpp:144:54: note: candidates are: In file included from base/bittorrent/torrentcreatorthread.cpp:45:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ base/bittorrent/torrentcreatorthread.cpp:151:64: error: call of overloaded ‘asConst(QStringList&)’ is ambiguous for (const QString &tracker : asConst(m_params.trackers)) { ^ base/bittorrent/torrentcreatorthread.cpp:151:64: note: candidates are: In file included from base/bittorrent/torrentcreatorthread.cpp:45:0: ./base/global.h:38:45: note: constexpr typename std::add_const<_Tp>::type& asConst(T&) [with T = QStringList; typename std::add_const<_Tp>::type = const QStringList] constexpr typename std::add_const<T>::type &asConst(T &t) noexcept { return t; } ^ ./base/global.h:42:44: note: constexpr typename std::add_const<_Tp>::type asConst(T&&) [with T = QStringList&; typename std::add_const<_Tp>::type = QStringList&] constexpr typename std::add_const<T>::type asConst(T &&t) noexcept { return std::move(t); } ^ make[1]: *** [torrentcreatorthread.o] Error 1 make[1]: Leaving directory `/home/sipl/qBittorrent-release-4.1.9/src' make: *** [sub-src-make_first] Error 2 |
这是gcc
版本的问题,注意使用gcc -v
查看下是不是对应的。
本文最后更新于2021年8月16日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!