title: How to build PJSUA2 (swig) with Visual Studio 2015
body: <p>I try to compile PJSUA2 for Python. I could manage to compile the source with Visual Studio 2015 Community edition. </p>
  
  <p>My question is, how can I install the Python module now? </p>
  
  <p>The guide suggests to use make and make install. I tried to install also minwg, but it is not working as the project was compiled with VS. </p>
  
  <blockquote>
    <p>I have also tried to compile with minwg, but I never could succeed due to undefined requirements. Also official PJSUA guide recommend to use VS for Windows.</p>
  </blockquote>
  
  <p>Following settings have been applied to build from source:</p>
  
  <ul>
  <li>Swig location has been added to path</li>
  <li>JAVA_home system variable has been added</li>
  <li>Java location has been added to path</li>
  <li>Empty pjlib/include/pj/config_site.h has been created</li>
  <li>Opened source in VS 2015 Community (all suggested VS package and module has been installed)</li>
  <li>Set following project to do not compile:
  
  <ul>
  <li>pjsua_cli_uwp_comp</li>
  <li>pjsua_cli_wp8</li>
  <li>pjsua_cli_wp8_comp</li>
  </ul></li>
  <li>Set swig_java_pjsua2 to build.</li>
  <li>Add following folders to swig_java_pjsua2 VC++ include directories
  
  <ul>
  <li>c:\Program Files\Java\jdk-11.0.2\include</li>
  <li>c:\Program Files\Java\jdk-11.0.2\include\win32</li>
  </ul></li>
  <li>Build solution</li>
  </ul>