gp1313 / aam-opencv

Automatically exported from code.google.com/p/aam-opencv
0 stars 0 forks source link

Compiling Error #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi buddies,
I am using opencv 2.4.6, when i do the command make, i get this error bellow:
Could anybody help-me?

[ 68%] Building CXX object 
CMakeFiles/qt-aamtrainer.dir/include/moc_aamTrainer.cxx.o
[ 73%] Building CXX object CMakeFiles/qt-aamtrainer.dir/include/moc_canvas.cxx.o
[ 78%] Building CXX object 
CMakeFiles/qt-aamtrainer.dir/include/moc_landmarkpoint.cxx.o
Linking CXX executable qt-aamtrainer
CMakeFiles/qt-aamtrainer.dir/src/main.cpp.o: In function 
`aamTrainer::timerEvent(QTimerEvent*)':
/home/vinicius/Downloads/aam-opencv/src/main.cpp:712: undefined reference to 
`cvWaitKey'
/home/vinicius/Downloads/aam-opencv/src/main.cpp:714: undefined reference to 
`cvReleaseImage'
/home/vinicius/Downloads/aam-opencv/src/main.cpp:706: undefined reference to 
`cvSaveImage'
CMakeFiles/qt-aamtrainer.dir/src/main.cpp.o: In function 
`aamTrainer::gendata()':
/home/vinicius/Downloads/aam-opencv/src/main.cpp:288: undefined reference to 
`cvCreateMat'
/home/vinicius/Downloads/aam-opencv/src/main.cpp:289: undefined reference to 
`cvCreateMat'
/home/vinicius/Downloads/aam-opencv/src/main.cpp:290: undefined reference to 
`cvAlloc'

Thanks a lot !!

Original issue reported on code.google.com by vinic...@open.inf.br on 25 Oct 2013 at 8:59

GoogleCodeExporter commented 8 years ago
I found!!!
i just put this lines in CMakeList.txt
SET(OPENCV_LIBRARIES ${OPENCV_LIBRARIES}  "opencv_core -lopencv_imgproc 
-lopencv_calib3d -lopencv_video -lopencv_features2d -lopencv_ml 
-lopencv_highgui -lopencv_objdetect -lopencv_contrib -lopencv_legacy 
-lopencv_gpu")

Original comment by vinic...@open.inf.br on 25 Oct 2013 at 10:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
@vinic, i hope this works for me, i have being trying to compile this for a 
week now. Thanks! I will update my comment when i return home, so others can 
find the answers.

Original comment by miro.glamuzina@gmail.com on 10 Jun 2014 at 8:51

GoogleCodeExporter commented 8 years ago
Not even close for my proplem, still returning the error 

C:\aam-opencv\aam-opencv\build>cmake -D
-- The C compiler identification is MSVC
-- The CXX compiler identification is MS
CMake Error at cmake/modules/FindOpenCV.
  OpenCV required but some headers or li
  location with OpenCV_ROOT_DIR env.  va
Call Stack (most recent call first):
  CMakeLists.txt:48 (FIND_PACKAGE)

if you have any solution please comment back (using opencv 2.4.9)

Original comment by miro.glamuzina@gmail.com on 11 Jun 2014 at 5:16