Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Building

Dan Moseley edited this page Mar 13, 2016 · 24 revisions

#Getting Setup

##Install VS 2013 For this project we've been working in VS2013 and haven't tested any other build environments so can't recommend them. There is a free version of Visual Studio, the community edition, available from: https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx just download and install it.

Note $ below refers to the root of the project so $\External and $\DebuggerCore are sibling folders.

##Installing Boost This project makes use of the popular C++ library Boost, which you'll need to download and setup. If you already have boost or want to install it to a different location follow the steps in using other directories.

  1. Download boost from http://www.boost.org/users/download/#live
  2. Unzip to $\External so now you have $\External\boost_1_59_0
  3. From a command prompt run bootstrap.bat
  4. Open a Visual Studio cmd prompt ("Developer Command Prompt for VS2013") run in the directory above
  5. for 32 bit:
    1. Run b2 link=static threading=multi runtime-link=static toolset=msvc-12.0 -j %number_of_processors%
    2. Place the stage\lib folder in external\boost_1_57_0\x86\
  6. for 64 bit:
    1. Run b2 link=static threading=multi runtime-link=static toolset=msvc-12.0 address-model=64 -j %number_of_processors%
    2. Place the stage\lib folder in external\boost_1_57_0\x64\

##Install WebSockets++ This projects makes use of the awesome websocket library WebSocket++. If you already have WebSockets++ or want to install it to a different location follow the steps in using other directories.

  1. Download the source code zip for the 0.5.0 release from github https://github.com/zaphoyd/websocketpp/releases/tag/0.5.0
  2. Unpack the zip into $\external so now you have $\external\websocketpp-0.5.0

##Using other directories If you have any of the external dependencies already on your box you can use them by including their directories by:

  1. Open Visual Studio and the project
  2. Right click on the IEDiagnosticAdapter and choose Properties
  3. In the properties dialog go to C/C++ -> General
  4. On the Additional Include Directories choose edit
  5. Add your directories in the new dialog

#Building Once you're setup building is as easy as opening up the solution in Visual Studio and hitting build. Build will drop the exe in the bin directory (either debug or release). Fortunately in almost all cases you only need to build and test the x86 version, because even if you run on a 64 bit installation of Windows, Internet Explorer runs its tab processes as 32 bit by default. (It is possible to change this -- and the newer Edge browser does.)

If you see and error that says "ERROR: Module could not be found. Ensure Proxy64.dll is in the same folder as IEDiagnosticsAdaptor.exe" Then you need to build 64bit. The 64 bit build will generate Proxy64.dll and place it in the same directory as IEDiagnosticsAdaptor.exe.

If you see "this project note selected to build in this configuration" then go to Build>Configuration Manager and change the selector at the top to x86.

Clone this wiki locally