Probaj s ovim patchom
http://paste.opensuse.org/view/raw/16683909
Pam-face-authentication
Moderator/ica: Moderatori/ce
Re: Pam-face-authentication
Listen, I gotta fight the lion. That's what that guy Scott's all about. I know. I've studied him already.
-
Tomislav001
- Postovi: 858
- Pridružen/a: 21 lip 2012, 20:36
Re: Pam-face-authentication
Evo riješeno
cd /tmp && wget http://pam-face-authentication.googleco ... 0.3.tar.gz
tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-*
cp /usr/share/OpenCV/OpenCVConfig.cmake ./cmake/modules/FindOpenCV.cmake
nano /cmake/modules/FindOpenCV.cmake
--SET(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
++SET(OpenCV_INCLUDE_DIRS "/usr/include/opencv;/usr/include")
--SET(OpenCV_LIB_DIR "${OpenCV_INSTALL_PATH}/lib")
++SET(OpenCV_LIB_DIR "/usr/lib")
nano ./CMakeLists.txt
--INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
++INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
--TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OPENCV_LIBRARIES})
--TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OPENCV_LIBRARIES})
++TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OpenCV_LIBS})
++TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OpenCV_LIBS})
mkdir build && cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr ..
make
sudo checkinstall --pkgname=pam-authentication-face-auth
cd /tmp && wget http://pam-face-authentication.googleco ... 0.3.tar.gz
tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-*
cp /usr/share/OpenCV/OpenCVConfig.cmake ./cmake/modules/FindOpenCV.cmake
nano /cmake/modules/FindOpenCV.cmake
--SET(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
++SET(OpenCV_INCLUDE_DIRS "/usr/include/opencv;/usr/include")
--SET(OpenCV_LIB_DIR "${OpenCV_INSTALL_PATH}/lib")
++SET(OpenCV_LIB_DIR "/usr/lib")
nano ./CMakeLists.txt
--INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
++INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
--TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OPENCV_LIBRARIES})
--TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OPENCV_LIBRARIES})
++TARGET_LINK_LIBRARIES( pam_face_authentication ${PAM_LIBRARIES} ${OpenCV_LIBS})
++TARGET_LINK_LIBRARIES( qt-facetrainer ${QT_LIBRARIES} ${OpenCV_LIBS})
mkdir build && cd build
cmake -D CMAKE_INSTALL_PREFIX=/usr ..
make
sudo checkinstall --pkgname=pam-authentication-face-auth