maskakid / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Pam-face-authentication not compiling on fedora core 20 #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Try to compile program on fedora 20 with all deps installed

What is the expected output? What do you see instead?

I would expect it to compile, but insteed it says:

-- Checking GNUCXX version 3/4 to determine  OpenCV /opt/net/ path
CMake Error at cmake/modules/FindOpenCV.cmake:240 (MESSAGE):
  OpenCV required but some headers or libs not found.  Please specify it's
  location with OpenCV_ROOT_DIR env.  variable.
Call Stack (most recent call first):
  CMakeLists.txt:75 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/tmp/pam-face-authentication-0.3/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/pam-face-authentication-0.3/build/CMakeFiles/CMakeError.log".

What version of the product are you using? On what operating system?

I am using latest opencv pam-face-authentication-0.3.tar.gz on fedora core 20.

Original issue reported on code.google.com by 2801...@etude.ca on 5 Mar 2014 at 11:18

GoogleCodeExporter commented 8 years ago
Hi,
This problem is due to the way the FindOpenCV.cmake search the opencv files. 
IMHO this script should rely on the Linux File Hierarchy Standard.
So you have to make sure that all OpenCV*-devel and pam-devel packages are 
installed and add those lines at the end of the FindOpenCV.cmake file before 
this line : 

# display help message
IF(NOT OPENCV_FOUND)

LINES TO ADD FOR FEDORA : 

SET(OPENCV_LIBRARIES   
    /usr/lib64/
    /usr/lib)
SET(OPENCV_INCLUDE_DIR
    /usr/include/opencv
    /usr/include/opencv2)
SET(OPENCV_FOUND ON)

Original comment by Nolaa...@gmail.com on 9 Jul 2014 at 7:04

GoogleCodeExporter commented 8 years ago
You can also clone my github repo 
https://github.com/Nolaan/pam-face-authentication

Original comment by Nolaa...@gmail.com on 9 Jul 2014 at 8:38