Table of Contents

How to Compile PN

Requirements:

Pre-requisite Installation

  1. Download and install the newest Windows SDK headers, to support vista-related code (link above)
  2. Make sure to register the SDK with Visual Studio
  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.
    1. TimMagee If you intend to build pypn or tests, then you'll need the boost libraries python and test respectively. I just downloaded and used bjam as per the build instructions in the boost HTML documentation. Everything built first time in under 2 hours. I then needed to add the boost library directory to my lib search directory list. The boost doco mentions that it's possible to use prebuilt lib files but I couldn't see where it suggests a download source.
  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.
  1. Get the SVN version of the WTL:
    svn co https://wtl.svn.sourceforge.net/svnroot/wtl/trunk/wtl wtl
    
  2. Add the wtl/include directory to your Visual C++ include directories (Tools|Options|Projects and Solutions|VC++ Directories)
  3. 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:
     svn checkout http://pnotepad.googlecode.com/svn/trunk/pnwtl pnwtl 
    
    1. TimMagee Depending on your SVN 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. Download the latest version of Scintilla (link above)
  3. Extract the file and copy the contents to pnwtl/include/scintilla
  4. Also download this file which patches Scintilla: http://pnotepad.org/files/altregex_ns.zip
  5. Extract altregex_ns.zip and copy its contents over the Scintilla files from above (in pnwtl/include/scintilla).
  6. Now go to pnwtl/ and open the “pn.sln” file with Visual Studio.
  7. Press F7 or Build > Build Solution and then run PN.exe.

Please update this if you find any omissions