[修改版] 會自動Block迅雷嘅qBittorrent (2)

1001 回覆
116 Like 11 Dislike
2018-07-04 00:50:46
0.13.6...............lib太舊
自己compile1.1.8啦
雖然唔知arm要compile幾耐
2018-07-04 20:53:54
compile緊libtorrent好撚慢
2018-07-04 22:02:14
2018-07-04 22:09:06
errrrr
刪左你apt/yum裝番黎果堆libtorrent先再重新compile過
or有冇一部x86 linux/mac機做cross platform compile
https://blog.libtorrent.org/2017/02/building-libtorrent-for-c-h-i-p/
2018-07-04 22:17:11
我做之前已經 apt purge libtorrent* 過
同埋我個 libtorrent 係成功 compile 到
上面條 link 係 compile qBittorrent 嗰陣出事
定係你想我照你個方法去 compile qBittorrent?
2018-07-04 22:24:25
睇錯野tim
以為你compile libtorrent error

試下 ./configure 再make?
2018-07-04 22:40:24
本身已經有做
./configure --prefix=/usr --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf



啱啱試下 make clean 再 make 啲 error 唔同咗
https://pastebin.com/Fhvu3yk9
2018-07-05 00:11:28
用x86 VM試吓build x86版
除咗 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf 之外其他參數相同
得到相同嘅結果
同埋試過 compile 官方原版 qBittorrent
結果都係一樣
2018-07-05 00:19:54
boost版本問題? 你用緊咩版?........
2018-07-05 00:24:06
RPi 1.62
VM 1.58
2018-07-05 01:17:56
vm試下compile埋boost 1.67 再compile libtorrent
因為libtorrent對boost版本都有要求
其實都係語法上既問題
2018-07-05 23:06:01
唔得
boost同libtorrent都成功compile
到qBittorrent都係同一個error

我唔係太肯定用 b2 compile 完之後嘅步驟
我係喺 ./configure 嗰陣 --with-boost-libdir 用 b2 畀我嗰條 path

libtorrent :
./configure --disable-debug --prefix=/usr --with-boost-libdir=/home/*username*/Desktop/compile/boost/stage/lib

qBittorrent :
./configure --prefix=/usr --disable-gui --with-boost-libdir=/home/*username*/Desktop/compile/boost/stage/lib

有冇做錯?
(先唔好理點解喺 Desktop 搞)
2018-07-05 23:29:21
得libtorrent要boost

libtorrent試下咁?
./configure --disable-debug --enable-encryption --with-boost-libdir=/home/*username*/Desktop/compile/boost/stage/lib --with-libgeoip=system CXXFLAGS=-std=c++11

qBittorrent咁樣就得 你都係make && make install
/configure --disable-gui
2018-07-06 00:22:31
我之前都有落 --with-libgeoip=system
configure會話unrecognized
search吓發現libtorrent一早已經閹走咗libgeoip
話"一個lib走去認埋ip地區冇用,呢啲應該client做"
所以而家新版落唔使加呢句了
2018-07-06 00:24:57
btw, 仍然唔得, error照舊
2018-07-06 00:45:54
你用咩distro compile?
我一陣試下
2018-07-06 00:47:20
ohhhhh......好似係1.1.x開始就冇左呢樣野
2018-07-06 01:02:25
VM係Mint 18.1 64bit
RPi係Rasbian Stretch Desktop
已apt update and upgrade
2018-07-06 04:03:19
linux mint 18 clean install
gcc: 7.2.0
boost 1.67:
./bootstrap.sh --with-libraries=system,chrono,random
./b2 -j$(nproc)
sudo ./b2 -j$(nproc)

libtorrent 1.1.8:
autotool.sh
./configure --disable-debug --enable-encryption CXXFLAGS=-std=c++11
make -j$(nproc)
sudo make install
(我反而用唔到--with-boost=blahhhhhh
detect唔到version

qbittorrent:
linking qbittorrent-nox
make[1]: Leaving directory '/home/c0re/qBittorrent-Enhanced-Edition/src'

咩error都冇 唔知你個env咩事
2018-07-06 04:04:44
我最多得句好正常既warning
base/bittorrent/peerinfo.cpp:206:41: warning: ‘std::__cxx11::string libtorrent::identify_client(const peer_id&)’ is deprecated [-Wdeprecated-declarations]
     return QString::fromStdString(libt::identify_client(m_nativeInfo.pid));
                                         ^~~~~~~~~~~~~~~
2018-07-06 09:02:59
今晚試吓
但係點解b2要有同冇sudo各行一次 ?
2018-07-06 17:14:11
屌 打錯野
sudo ./b2 install先岩
2018-07-06 20:48:51
今次由git clone開始由頭嚟過
結果更加多error
https://pastebin.com/09NTad5e
2018-07-06 22:08:34
點解會連原本果D都fail埋
git clone完libtorrent 有冇 git checkout RC_1_1
睇番issue....
error: ‘from_hex’ is not a member of ‘libtorrent’ 好似係因為新版libtorrent問題....
試下
rm -rf /usr/local/include/libtorrent
再用RC_1_1重新黎過
2018-07-06 22:49:47
而家我又試喺 RPi 搞
唔 git clone 直接用 libtorrent-rasterbar-1.1.8.tar.gz
發覺佢認唔到我 compile 嘅 chrono lib
用返本身裝咗嗰套 boost 就無事
qBittorrent 成功 compile
即係咁辛苦 compile boost 到頭嚟冇用過
4核全開嚟 compile 部機好辣手


同埋你之前話 qBittorrent 唔使 boost
但係唔知點解 configure 都會 check 埋有冇 boost
最後都係要 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf 先過到
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether OS is FreeBSD... no
checking whether OS is macOS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the stacktrace feature... yes
checking whether to enable the GUI... no
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking for Qt5 qmake >= 5.5.1... /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake
checking whether QtDBus should be enabled... no
checking for boostlib >= 1.35 (103500)... yes
configure: Boost CPPFLAGS: "-I/usr/include"
                Boost LDFLAGS: "-L/usr/lib"
checking whether the Boost::System library is available... yes
configure: error: Could not find a version of the library!
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞