[Libface-general] compilation of the examples failed
Status: Beta
Brought to you by:
leshiy_uk
From: Tobias B. <Tob...@we...> - 2010-10-02 19:20:28
|
Hi, I am interested in your work and tried to compile your code on my machine. Unfortunately, the examples do not compile. This is what I did: 1) installed the OpenCV-2.1.0 2) svn co URL: https://libface.svn.sourceforge.net/svnroot/libface (Revision 232) 3) cd libface; mkdir build; cd build; cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DBUILD_EXAMPLES=1 -DBUILD_DOCUMENTATION=1 -DCMAKE_BUILD_TYPE=Debug 4) make; sudo make install To my understanding, the examples should have been build, since I did an -DBUILD_EXAMPLES=1 in my cmake configuration. But, they are not. However, manually compiling the examples, by g++ -I /usr/local/include/libface -o FaceDetectionExample FaceDetection.cpp -L /usr/local/lib -lface -lhighgui -lcv -lcxcore -lcvaux works. Note, that I had to extend the include path by libface. Another question. Is the config file libface-config.xml missing in the repository? The 'Train' and the 'Test' example both exit with an segmentation fault. (see below) Thanks in advance, Tobias [tobias@leederville:libface/examples]$ ./Train ~/Pictures/maradonna.jpg Cascade directory located as : /usr/local/share/opencv/haarcascades Config location: ./libface-config.xml libface config file does not exist. Loading image /home/tobias/Pictures/maradonna.jpg Input area : 170496 Total time taken : 0.27seconds detected Will train with 1 faces... Update with faces. Id is: -1 [1] 30946 segmentation fault ./Train ~/Pictures/maradonna.jpg [tobias@leederville:libface/examples]$ ./Test ~/Pictures/maradonna.jpg ~/Pictures/maradonna.jpg Cascade directory located as : /usr/local/share/opencv/haarcascades Config location: ./libface-config.xml libface config file does not exist. Loading image /home/tobias/Pictures/maradonna.jpg Input area : 170496 Total time taken : 0.27seconds detected Drawing Loading image /home/tobias/Pictures/maradonna.jpg Input area : 170496 Total time taken : 0.26seconds detected Drawing Will recognize 2 faces... Recognizing. Id is: -1 [1] 31017 segmentation fault ./Test ~/Pictures/maradonna.jpg ~/Pictures/maradonna.jpg |