Problems with installation of Avogadro: how to define the path to Eigen2 headers

Dear Users and Developers of Avogadro,

I faced a problem when installing Avogadro under Linux:

CMake Error at cmake/modules/FindPackageHandleStandardArgs.cmake:53
(MESSAGE):
Could not find REQUIRED package Eigen2
Call Stack (most recent call first):
cmake/modules/FindEigen2.cmake:26 (find_package_handle_standard_args)
CMakeLists.txt:129 (find_package)

I have built Eigen2 as explained on the web-page, i.e

cd eigen2
mkdir $HOME/build/eigen2
cd $HOME/build/eigen2
cmake $HOME/src/eigen2
make

although I have not installed it. As I understand only the
headers of the Eigen libraries are needed. So one should
specify the path to the headers. But what variable
should I define? Could someone please explain. Many thanks!

Best regards,
Evgeniy


Dr. Evgeniy Gromov
Theoretische Chemie
Physikalisch-Chemisches Institut
Im Neuenheimer Feld 229
D-69120 Heidelberg
Germany

Telefon: +49/(0)6221/545263
Fax: +49/(0)6221/545221
E-mail: evgeniy@pci.uni-heidelberg.de


specify the path to the headers. But what variable
should I define? Could someone please explain. Many thanks!

When running cmake for Avogadro, use:

cmake [other options] -DEIGEN2_INCLUDE_DIR=/usr/local/include/eigen2

Hope that helps,
-Geoff