chili-epfl / attention-tracker

136 stars 96 forks source link

Couldn't CMake the project straight away. #5

Closed mohataher closed 8 years ago

mohataher commented 8 years ago

Following your installation guide, I got this error

$attention-tracker/build$ cmake -DDLIB_PATH=../../dlib-18.16/ ..
-- Searching for BLAS and LAPACK
-- Found OpenBLAS library
-- Found LAPACK library
CMake Error at CMakeLists.txt:38 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!
See also "/home/moha/dev/attention_tracker_dir/attention-tracker/CMakeFiles/CMakeOutput.log".
See also "/home/moha/dev/attention_tracker_dir/attention-tracker/CMakeFiles/CMakeError.log".

It wasn't mentioned that OpenCV has to be installed. Should I just install it myself? In this case, I will probably pull a request to change the README.md to reflect that. Please let me know.

severin-lemaignan commented 8 years ago

Thanks for testing out! and well, yes, OpenCV is needed :-) sudo apt-get install libopencv-dev should do. PR for the README if welcome!

mohataher commented 8 years ago

I just made a new PR.

severin-lemaignan commented 8 years ago

Alright. Closing this issue.