在Archlinux下编译安装amule-dlp

来源:互联网 发布:域名被墙去哪里检测 编辑:程序博客网 时间:2024/06/13 06:24

项目地址

https://github.com/persmule/amule-dlp

https://github.com/persmule/amule-dlp.antiLeech

主要问题是代码有个小问题需要patch,还有就是wxgtk版本的问题。自己不熟,所以折腾了半天,也没有其他说得具体的。

下载

$ git clone https://github.com/persmule/amule-dlp

$ cd amule-dlp

$ ./autogen.sh

$ mkdir build

$ cd build

主要是加了wx-config,也可以直接用后续的方法。我没写软件,不知道怎么处理,google到的。

$ ../configure --enable-optimize --with-denoise-level=3 --enable-upnp --enable-geoip --enable-nls --enable-amule-daemon --enable-amulecmd --disable-webserver --enable-alcc --enable-alc --enable-cas --enable-wxcas --enable-mmap --with-wx-config=/usr/bin/wx-config-2.8

需要打一个补丁,根据make出错提示修改的。

$ patch ./src/ObservableQueue.h

334c334< NotifyObservers( EventType( EventType::STARTING ), o );---> this->NotifyObservers( EventType( EventType::STARTING ), o );341c341< NotifyObservers( EventType( EventType::STOPPING ), o );---> this->NotifyObservers( EventType( EventType::STOPPING ), o );

$ make

# make install

$ cd ..

$ git clone https://github.com/persmule/amule-dlp.antiLeech

$ cd amule-dlp.antiLeech

$ ./autogen.sh

更改wx-config版本;这个是尝试出来的办法。

# rm /usr/bin/wx-config

# mv /usr/bin/wx-config-2.8 /usr/bin/wx-config

编译到自己的路径

$ ./configure --prefix=~/.aMule/

$ make

$ make install

# mv /usr/bin/wx-config /usr/bin/wx-config-2.8

# ln -s /usr/lib/wx/config/gtk2-unicode-3.0 /usr/bin/wx-config

$ wx-config --version

编译后的antiLeech.so文件,我的是安装到~/.aMule/share/amule路径下了,移到 ~/.aMule 下。如果 configure 没有更改路径,应当用root安装,就不用移动了。

ok,可以启动 amule 了,在设置中查看dlp,重新装载 antiLeech,有成功提示就ok了。

好吧,多年没用dlp,终于用上了。

0 0