{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2387","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2387/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2387/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2387/events","html_url":"https://github.com/qbittorrent/qBittorrent/issues/2387","id":53957523,"number":2387,"title":"Compilation error for v3.1.11 (on debian)","user":{"login":"ramislebob","id":10461614,"avatar_url":"https://avatars.githubusercontent.com/u/10461614?v=3","gravatar_id":"","url":"https://api.github.com/users/ramislebob","html_url":"https://github.com/ramislebob","followers_url":"https://api.github.com/users/ramislebob/followers","following_url":"https://api.github.com/users/ramislebob/following{/other_user}","gists_url":"https://api.github.com/users/ramislebob/gists{/gist_id}","starred_url":"https://api.github.com/users/ramislebob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramislebob/subscriptions","organizations_url":"https://api.github.com/users/ramislebob/orgs","repos_url":"https://api.github.com/users/ramislebob/repos","events_url":"https://api.github.com/users/ramislebob/events{/privacy}","received_events_url":"https://api.github.com/users/ramislebob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-10T12:59:33Z","updated_at":"2015-01-11T16:47:45Z","closed_at":"2015-01-10T13:25:04Z","body":"Hi guys, \r\nas I have issues with my old version, I tried to compile the latest release and I'm getting a compilation error.\r\nAnybody got this?\r\n\r\nbob@micro:~/Downloads/qbittorrent-3.1.11$ make\r\ncd src/ && make -f Makefile \r\nmake[1]: Entering directory `/home/bossboss/Downloads/qbittorrent-3.1.11/src'\r\ng++ -c -pipe -Wformat -Wformat-security -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DQT_NO_DEBUG_OUTPUT -DVERSION=\\\"v3.1.11\\\" -DVERSION_MAJOR=3 -DVERSION_MINOR=1 -DVERSION_BUGFIX=11 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -I/usr/local/include -I/usr/local/include/libtorrent -I/usr/include -Iqtnotify -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Iwebui/qjson -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I. -I. -o qbtsession.o qtlibtorrent/qbtsession.cpp\r\nIn file included from ./filesystemwatcher.h:25:0,\r\n                 from qtlibtorrent/qbtsession.cpp:40:\r\n./misc.h: In function ‘QString misc::toQString(const libtorrent::sha1_hash&)’:\r\n./misc.h:74:67: error: ‘to_hex’ was not declared in this scope\r\n./misc.h:74:67: note: suggested alternative:\r\nIn file included from /usr/local/include/libtorrent/sha1_hash.hpp:45:0,\r\n                 from /usr/local/include/libtorrent/peer_id.hpp:37,\r\n                 from /usr/local/include/libtorrent/torrent_info.hpp:53,\r\n                 from ./misc.h:35,\r\n                 from ./filesystemwatcher.h:25,\r\n                 from qtlibtorrent/qbtsession.cpp:40:\r\n/usr/local/include/libtorrent/escape_string.hpp:85:22: note:   ‘libtorrent::to_hex’\r\nIn file included from qtlibtorrent/qbtsession.cpp:42:0:\r\nqtlibtorrent/qbtsession.h: At global scope:\r\nqtlibtorrent/qbtsession.h:284:3: error: ‘upnp’ in namespace ‘libtorrent’ does not name a type\r\nqtlibtorrent/qbtsession.h:285:3: error: ‘natpmp’ in namespace ‘libtorrent’ does not name a type\r\nqtlibtorrent/qbtsession.cpp: In constructor ‘QBtSession::QBtSession()’:\r\nqtlibtorrent/qbtsession.cpp:118:5: error: class ‘QBtSession’ does not have any field named ‘m_upnp’\r\nqtlibtorrent/qbtsession.cpp:118:16: error: class ‘QBtSession’ does not have any field named ‘m_natpmp’\r\nqtlibtorrent/qbtsession.cpp: In member function ‘QTorrentHandle QBtSession::addMagnetUri(QString, bool, bool, const QString&)’:\r\nqtlibtorrent/qbtsession.cpp:1030:71: warning: ‘libtorrent::torrent_handle libtorrent::add_magnet_uri(libtorrent::session&, const string&, libtorrent::add_torrent_params)’ is deprecated (declared at /usr/local/include/libtorrent/magnet_uri.hpp:67) [-Wdeprecated-declarations]\r\nqtlibtorrent/qbtsession.cpp: In member function ‘QTorrentHandle QBtSession::addTorrent(QString, bool, QString, bool, bool)’:\r\nqtlibtorrent/qbtsession.cpp:1184:24: error: no match for ‘operator=’ in ‘p.libtorrent::add_torrent_params::resume_data = & buf’\r\nqtlibtorrent/qbtsession.cpp:1184:24: note: candidate is:\r\nIn file included from /usr/include/c++/4.7/vector:70:0,\r\n                 from /usr/local/include/libtorrent/torrent_info.hpp:37,\r\n                 from ./misc.h:35,\r\n                 from ./filesystemwatcher.h:25,\r\n                 from qtlibtorrent/qbtsession.cpp:40:\r\n/usr/include/c++/4.7/bits/vector.tcc:161:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = char; _Alloc = std::allocator<char>]\r\n/usr/include/c++/4.7/bits/vector.tcc:161:5: note:   no known conversion for argument 1 from ‘std::vector<char>*’ to ‘const std::vector<char>&’\r\nqtlibtorrent/qbtsession.cpp: In member function ‘void QBtSession::enableUPnP(bool)’:\r\nqtlibtorrent/qbtsession.cpp:1556:10: error: ‘m_upnp’ was not declared in this scope\r\nqtlibtorrent/qbtsession.cpp:1559:7: error: ‘m_natpmp’ was not declared in this scope\r\nqtlibtorrent/qbtsession.cpp:1564:7: error: ‘m_upnp’ was not declared in this scope\r\nqtlibtorrent/qbtsession.cpp:1565:7: error: ‘m_natpmp’ was not declared in this scope\r\nqtlibtorrent/qbtsession.cpp:1568:9: error: ‘m_upnp’ was not declared in this scope\r\nqtlibtorrent/qbtsession.cpp:1573:7: error: ‘m_natpmp’ was not declared in this scope\r\nmake[1]: *** [qbtsession.o] Error 1\r\nmake[1]: Leaving directory `/home/bossboss/Downloads/qbittorrent-3.1.11/src'\r\nmake: *** [sub-src-make_default] Error 2\r\nbob@micro:~/Downloads/qbittorrent-3.1.11$ \r\n\r\nI'm running debian 7 wheezy.\r\nQT version is:\r\nPackage: libqt4-dev                      \r\nState: installed\r\nAutomatically installed: no\r\nVersion: 4:4.8.2+dfsg-11\r\n"},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/69500936","html_url":"https://github.com/qbittorrent/qBittorrent/issues/2387#issuecomment-69500936","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/2387","id":69500936,"user":{"login":"ramislebob","id":10461614,"avatar_url":"https://avatars.githubusercontent.com/u/10461614?v=3","gravatar_id":"","url":"https://api.github.com/users/ramislebob","html_url":"https://github.com/ramislebob","followers_url":"https://api.github.com/users/ramislebob/followers","following_url":"https://api.github.com/users/ramislebob/following{/other_user}","gists_url":"https://api.github.com/users/ramislebob/gists{/gist_id}","starred_url":"https://api.github.com/users/ramislebob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramislebob/subscriptions","organizations_url":"https://api.github.com/users/ramislebob/orgs","repos_url":"https://api.github.com/users/ramislebob/repos","events_url":"https://api.github.com/users/ramislebob/events{/privacy}","received_events_url":"https://api.github.com/users/ramislebob/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T16:47:45Z","updated_at":"2015-01-11T16:47:45Z","body":"ok cheers, I took this one."}}