Setting up the Eigen library

Windows

  1. Download the latest stable release of Eigen 3
  2. Unpack the downloaded zip or tar.gz file to your This PC\Documents\libraries directory
  3. Right-click the strom project (note: click the project, not the solution) in the Solution Explorer pane of Visual Studio and choose Properties from the popup menu.
  4. Expand VC++ Directories, then click on Include Directories, then click the down-pointing triangle, then click <Edit…> and add This PC\Documents\libraries\eigen3.
  5. The Eigen library comprises only header files. Because nothing is compiled, there is no need to specify a library search path and no need to link any libraries.

Mac

  1. Download the latest stable release of Eigen 3
  2. Unpack the downloaded zip or tar.gz file to your Documents/libraries directory. On my computer, I now have this directory path: /Users/plewis/Documents/libraries/eigen3/Eigen
  3. I will refer to the eigen3 directory as EIGEN_ROOT. Inside EIGEN_ROOT is the directory named Eigen (starting with a capital E)
  4. Add name EIGEN_ROOT, display name EIGEN_ROOT, and path $HOME/Documents/libraries/eigen3 to your Source Trees (Xcode > Preferences… > Locations > Source Trees)
  5. Add $(EIGEN_ROOT) to your Header Search Paths (strom project > Build Settings > Header Search Paths)
  6. The Eigen library comprises only header files. Because nothing is compiled, there is no need to specify a library search path and no need to link any libraries.