VS2005下编译oSip2,eXosip2成DLL的步骤

第一步,下载:
到 http://www.gnu.org/software/osip/下载最新的osip库并解压.
到 http://savannah.gnu.org/projects/exosip/下载最新的eXsoip库并解压.

第二步,编译osip3.0.1:
1.用VS2005打开libosip2-3.0.1/platform/vsnet/osip.sln
2.对osip2和osipparser2项目生成Release DLL
3.其生成的LIB/DLL位于:libosip2-3.0.1/platform/vsnet/Release DLL/下
 
第三步,编译eXosip3.0.1:
1.用VS2005打开libeXosip2-3.0.1/platform/vsnet/eXosip.sln
2.将libosip2-3.0.1/include/osip2目录COPY到libeXosip2-3.0.1/include/下
3.将libosip2-3.0.1/include/osipparser2目录COPY到libeXosip2-3.0.1/include/下
4.在libeXosip2-3.0.1目录下新建lib目录
5.将「第二步」中生成的libosip2-3.0.1/platform/vsnet/Release DLL/osip2.lib文件COPY到libeXosip2-3.0.1/lib目录下
6.将「第二步」中生成的libosip2-3.0.1/platform/vsnet/Release DLL/osipparser2.lib文件COPY到libeXosip2-3.0.1/lib目录下
7,把Dnsapi.lib Iphlpapi.lib Ws2_32.lib osip2.lib osipparser2.lib加到, 工程名-->右击-->Referencese-->Configration Properties-->Linker-->Input-->Additional Dependencies里面.
8.把../../lib加到工程名-->右击-->Referencese-->Configration Properties-->Linker-->General-->Additional Library Directories里.
9.把工程名-->右击-->Referencese-->Configration Properties-->Linker-->Output File里的扩展名改成.dll 或者工程名-->右击-->Referencese-->Configration Properties-->General-->Configration Types改为"Dynamic Library (.dll)"
10.如果没有安装过openSSL,那么将 工程名-->右击-->Referencese-->Configration Properties-->C/C++-->Preprocessor-->Preprocessor Definitions里面 SRV_RECORD;_CRT_SECURE_NO_DEPRECATE;HAVE_OPENSSL_SSL_H;EXOSIP_EXPORTS;_DEBUG;ENABLE_TRACE;WIN32;_WINDOWS;_USRDLL;OSIP_MT;_MT
的HAVE_OPENSSL_SSL_H;宏去掉。
11.编译,OK
 
以上是在xp下的工作!
 

你可能感兴趣的:(windows,ssl,dll,library,dependencies,Types)