I am trying to install openbabel-2.4.1 in my centos 7 system. The the cmake command (cmake ..) gives information that wxWidgets and Eigen cannot be found:
-- Using included inchi library.
-- Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
-- Checking available shared pointer...
-- Use std::tr1::shared_ptr in tr1/memory
-- Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0")
-- Could NOT find Eigen2 (missing: EIGEN2_INCLUDE_DIR EIGEN2_VERSION_OK) (Required is at least version "2.0.0")
-- Checking for module 'cairo'
-- No package 'cairo' found
-- Could NOT find Cairo (missing: CAIRO_LIBRARIES CAIRO_INCLUDE_DIRS)
-- Could NOT find Cairo. PNG output will NOT be supported.
-- Attempting to build the GUI
-- wxWidgets not found => GUI will not be built
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sunyp/software/openbabel/openbabel-2.4.1/build
Actually I have installed wxWidgets-3.1.2 and EIGEN3 and add their lib path to the LD_LIBRARY_PATH environment variable, but why they cannot be found by cmake? And how to solve the problem? Thank you in advance.