User Tools

Site Tools


dev:how_to_compile_pn

How to Compile PN

Requirements:

Pre-requisite Installation

  1. Download the boost library (link above)
  2. Extract boost somewhere on your HD. You don't need to build it, since PN will only use the headers (unless you're building PyPN).
  3. Add the boost directory to your Visual C++ include directories (Tools|Options|Projects and Solutions|VC++ Directories)
  4. Note that you can alternatively add manual include references to each project that needs it if you prefer not to do the above step.
  5. Get the SVN version of the WTL:
    svn co https://wtl.svn.sourceforge.net/svnroot/wtl/trunk/wtl wtl
  6. Add the wtl/include directory to your Visual C++ include directories, and also your resource include directories:
    1. Goto Tools|Options|Projects and Solutions|VC++ Directories
    2. For “Show directories for” select “Include Files”
    3. Add the WTL directory to the list
    4. Click ok
    5. Now right-click on the “PN” project in the solution explorer (left side)
    6. Goto Properties > Configuration Properties > Resources > General
    7. Add the WTL path to the “Additional Include Directories” field
  7. Note that you can alternatively add manual include references to each project that needs it if you prefer not to do the above step.
    1. TimMagee If that's what you choose to do you also need to add it to the resource includes for pn

PN Download and Build Steps

  1. Get the PN code from Google Code:
     hg clone https://pnotepad.googlecode.com/hg/ pnotepad
    1. TimMagee Depending on your source control client's setup you may then need to add execute permissions to DLL and EXE files in the bin directory. You'll know that you do if, when you come to run pn.exe (see below), you get a c0000022 exception.
  2. Now go to pnwtl/ and open the “pn.sln” file with Visual Studio.
  3. Press F7 or Build > Build Solution and then run PN.exe.

Please update this if you find any omissions

dev/how_to_compile_pn.txt · Last modified: 2011/03/21 13:50 by Simon Steele