Blepo Download

Downloading the library

Blepo versions available for download:

History of versions

Setting up your system

Once you have downloaded the code and unzipped it, you will need to do the following to set up your system. Hopefully one day we will have an installer that will take care of these steps automatically.

  1. The DLLs in the external/bin directory must be in your path. This can be accomplished on WindowsXP by selecting Start Menu -> Control Panel -> System -> Advanced -> Environment Variables -> Path -> Edit. In the edit box, append the full path to that directory, preceded by a semicolon with no extra spaces, for example, ";c:/blepo/external/bin" (without the quotes). (If you already have Visual C++ running, then close and restart it in order to load the new path.)
  2. The NASM assembler, which is used to compile the assembly code, must be in your executable path. The name of this file is nasm.exe and it resides in the external/bin directory. For some inexplicable reason the previous step does not solve this problem, so you have to copy the nasm.exe file to an existing directory on your path, such as C:/Windows/System32.
  3. You will need to add the gsl (GNU scientific library) path to your include directory. After this step, any project you create should work automatically.  Alternatively, you can skip this step and add the include path individually to each project you create.

In addition, if you wish to capture images from a camera (e.g., USB webcam, Data Translation DT3120, or IEEE 1394), you will need to install the driver. For IEEE1394, you need to set it to use the CMU driver by following the instructions in Capture/CaptureIEEE1394.h. If you have any trouble, see the help in blepo/external/doc/IEEE1394. After installing the driver, you may test your camera using Blepo code or the CMU test application in blepo/external/bin/1394CameraDemo.exe

Getting started with VS6.0

Once you have performed these steps, you should be able to open Demo/Demo.dsw or Test/Test.dsw in Visual C++ 6.0, compile the code, and run. These two workspaces will be a good starting point for learning how to build an executable using the library.

To create a new project to use Blepo,

  1. Create a project with File -> New -> Project
  2. Make the project use the Blepo library.
  3. Include the Blepo header file (#include "blepo.h"). For the compiler to find this file, you will need to do one of the following:

Notes:

Converting to Visual Studio 2005/2008

Once you have followed the steps in 'Setting up your system' above,
  1. Download and install VS2008 SP1, if you have not already.
  2. Make sure you have the Windows SDK installed on your system. It would be in C:\Program Files\Microsoft SDKs\Windows\v6.1, and it comes with some installations of Visual Studio. If you do not have it, download Microsoft Windows SDK, selecting the appropriate operating system, and install.
  3. Open Demo.dsp in VS2008. It will go through a conversion and create a Demo solution. In the Solution explorer on the left you will see the Demo project as a part of 'Solution Demo'.
  4. Right click Solution Demo and add Blepo.dsp to it. Once again it will convert and add it. Now right click the Demo project and set Project Dependencies-> Demo dependent on Blepo (select the check box for Blepo).
  5. Go to Tools->Options->Projects and Solution->VC++ Directories->Include files and set "C:\Program Files\Microsoft SDKs\Windows\v6.1\Include" right at the top (above the Blepo include directory).
  6. Important: Right click the Blepo project in your solution explorer:
  7. Select 'All Configurations' in the dropdown box at the top
  8. Blepo->Properties->Configuration properties-> C++ -> General -> Additional include directories -> add ./ and nothing else...
  9. In Tools --> Options --> VC++ Directories --> Include Files, please add the following paths from your corresponding blepo directory, below the Microsoft SDK library path:
    blepo\external\Microsoft\DirectX\DXSDK\Include
    blepo\external\Microsoft\DirectX\DXSDK\Common
    blepo\external\Microsoft\DirectX\DXSDK\BaseClasses
  10. Right click Blepo project->Properties->Configuration Properties->C/C++-> Preprocessor->
    In preprocessor definitions, change _WIN32_WINNT=0x400 to _WIN32_WINNT=0x500
  11. Go to Demo project->Properties->Configuration properties->Linker->Input->Ignore specific library -> add LIBCMT.lib (You may not need to do this, but some people have reported that it is necessary).
  12. Now go to Build -> Rebuild solution
  13. Ctrl+F5 to run the Demo.
  14. See the instructions above under 'Getting started with VS6.0' for creating a new project. The instructions should largely translate to VS2005/2008.
    Note: When using Visual Studio 2005/2008, you will receive compilation errors related to character strings. To fix this problem, click on your project, then Properties->Configuration Properties->General->Character set(under Project Defaults), set to "Use Multibyte Character set"

Enjoy!