xombra / pam-face-authentication

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

Cmake can't find OpenCV #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd /tmp && wget 
http://pam-face-authentication.googlecode.com/files/pam-face-   
authentication-0.3.tar.gz

2. tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-*

3. mkdir build && cd build

4. cmake -D CMAKE_INSTALL_PREFIX=/usr ..

5. make

6. sudo checkinstall --pkgname=pam-authentication-face-auth 

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

After doing cmake -D CMAKE_INSTALL_PREFIX=/usr ..
i get this output

-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for XOpenDisplay in 
/usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in 
/usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.3") 
-- Checking GNUCXX version 3/4 to determine  OpenCV /opt/net/ path
CMake Error at cmake/modules/FindOpenCV.cmake:239 (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!

What version of the product are you using? On what operating system?
I'm using Linux Mint 14(nadia) and PAM version is 0.3 downloaded from your souce

Please provide any additional information below.

i have installed OpenCV 2.4.4 from the repository 

but it looks like it can't find it 

Original issue reported on code.google.com by kopic.to...@gmail.com on 10 Mar 2013 at 12:36

GoogleCodeExporter commented 8 years ago
Ok.I deleted FindOpenCV.cmake from Cmake/Modules and now make won't work :(

there's a lot of output on this one,but the last few are errors :S

webcamImagePaint.cpp:(.text+0x2d41): undefined reference to `cvReleaseImage'
webcamImagePaint.cpp:(.text+0x2d4f): undefined reference to `cvReleaseMat'
collect2: error: ld returned 1 exit status
make[2]: *** [qt-facetrainer] Error 1
make[1]: *** [CMakeFiles/qt-facetrainer.dir/all] Error 2
make: *** [all] Error 2

Original comment by kopic.to...@gmail.com on 10 Mar 2013 at 1:00

GoogleCodeExporter commented 8 years ago
This looks like a duplicate of issue #75

Original comment by sbbg...@gmail.com on 13 Mar 2013 at 1:52

GoogleCodeExporter commented 8 years ago
Issue 98 has been merged into this issue.

Original comment by armadefu...@gmail.com on 31 Mar 2013 at 5:42