Changes between Initial Version and Version 1 of BuildingDLL


Ignore:
Timestamp:
Nov 20, 2017 2:49:42 PM (7 years ago)
Author:
riza
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDLL

    v1 v1  
     1= Building DLL using Visual Studio 2015 = 
     2 
     3As specified [http://www.pjsip.org/pjlib/docs/html/group__pj__dll__target.htm here], the library support generation of dynamic link libraries (dll). 
     4 
     5This guide is the updated version, which will describe the needed step to build using Visual Studio 2015. 
     6 
     71. config_site.h modification 
     8{{{ 
     9#define PJ_DLL  1 
     10#ifdef _LIB 
     11#    define PJ_EXPORTING 1 
     12#endif 
     13}}} 
     14 
     152. Source code modification 
     16 
     17   Apply the patch attached. Note that the patch is against 2.7.1, and is considered to be committed and included in 2.8. 
     18 
     193. Projects file modification 
     20{{{ 
     21- Change project default (Configuration Properties > General > Configuration Type) to Dynamic Library (.dll).  
     22- Add the library input (Configuration Properties > Linker > Input) needed by the library. e.g: pjlib needs ws2_32.lib 
     23- Add the library References, e.g: pjlib-util needs a reference from pjlib 
     24}}}