Jump to: navigation, search

Windows build instructions VS

This page contains step-by-step instructions for building libpinproc on Windows using Visual Studio. These instructions have been verified to work in Windows 7 with Visual Studio 2008. They should work on other Windows version and on any Visual Studio version supported by cmake.

In the cmake commands below you can substitute your version of Visual Studio in place of "Visual Studio 9 2008" for the -G option, if you type cmake with no options from the command line, then it will list out all the possible options you can use with the -G option. For example, to make project and solution files for Visual Studio 2010 use -G "Visual Studio 10" and for Visual Studio 2012 use -G "Visual Studio 11".


  • You'll need Visual Studio installed with native C++ language options.
  • Download and install cmake and add <your-cmake-directory>\bin to your path. Latest version tested: 2.8


  • Download (and extract) libpinproc into a directory of your choice. Note - make sure you select the desired branch to download (either master or dev).
    • Download either by clicking 'Download Sources' or by installing a git client and checking out the repository.
  • Download and extract the ftd2xx USB driver for Windows. Latest version tested: 2.08.14, newer version *should* work fine too.
    • put the extracted ftdi folder into the libpinproc folder you made above (e.g. D:\liblinproc-dev\ftdi )
  • Download and extract yaml-cpp into the libpinproc directory you made above (e.g. D:\libpinproc-dev\yaml-cpp ). Latest version tested: 0.3.0
    • Note: the new version 0.5.0 does not work yet for us, since they changed the API.

Build yaml-cpp

  • From the command line, 'cd' into your yaml-cpp directory and run the following command:
   cmake -G "Visual Studio 9 2008" -DBUILD_SHARED_LIBS:BOOL=OFF
  • Note - The command expects cmake to be in your path.
  • Now run Visual Studio and open the YAML_CPP.sln file created by cmake. Build the solution in Debug and Release.
    • You'll only need to do this once.

Build libpinproc

  • From the command line, 'cd' into your libpinproc-dev directory and run the following commands:
   cmake -G "Visual Studio 9 2008" -DEXTRA_INC=".\ftdi;.\yaml-cpp\include" -DEXTRA_LINK=".\ftdi\i386;.\yaml-cpp\Release;.\yaml-cpp\Debug"
  • Note - If you want to build a shared library instead of a static one, add "-DLIB_TYPE=SHARED" before the -DEXTRA_INC... on the cmake line.
  • Now run Visual Studio and open the PINPROC.sln file created by cmake. You can build both Debug and Release solutions.


  • The PINPROC.sln includes a C/C++ project called pinproctest which is an example program to use libpinproc to talk to a PROC board. It can handle reading some machine configurations from yaml files, and does a basic game loop.