随笔-20  评论-9  文章-1  trackbacks-0

1.下载zlib, 网址http://www.gzip.org/zlib/
2.下载Crypto++, 网址http://www.eskimo.com/weidai/cryptlib.html
3.将zlib和Crypto++解压后,放到和eMule源代码同一级目录中。
4.编译zlib, 将zlib中nt目录中的Makefile.nt和zlib.dnt拷贝到上一级目录中。nmake /f makefile.nt。
5.编译Crypto++, 将VC工程文件打开, 编译, 修改pubkey.h, 在文件头部加上#include "asn.h"。修改integer.cpp, 将函数改成
#ifdef SSE2_INTRINSICS_AVAILABLE
template <class T>
typename AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)
{
    if (n < 4)
        return new T[n];
    else
        return (T *)_mm_malloc(sizeof(T)*n, 16);
}
6.编译eMule, 在工程文件设置中将链接库改成..\zlib\zlib.lib。

posted on 2005-08-29 18:29 Kenneth Blog 阅读(320) 评论(1)  编辑  收藏 所属分类: 开源项目

评论:
# re: eMule在.NET 2003中的编译 2009-01-21 02:04 | 挪威克朗
在工程文件设置中将链接库改成..\zlib\zlib.lib。
  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: