wg-perception / people

269 stars 197 forks source link

face_detector 1.1.2 failed to build on melodic #66

Open ustyui opened 5 years ago

ustyui commented 5 years ago

face_detector gives following errors when catkin_make on nvidia Xavier.

make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_photo.so.3.2.0', needed by '/home/nvidia/catkin_ws/devel/lib/face_detector/face_detector'.  Stop.
CMakeFiles/Makefile2:3231: recipe for target 'people/face_detector/CMakeFiles/face_detector.dir/all' failed
make[1]: *** [people/face_detector/CMakeFiles/face_detector.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 84%] Built target face_detector_generate_messages

Anyone knows the reason? Thank you in advance.

DLu commented 5 years ago

Do you have all the dependencies installed?

ustyui commented 5 years ago

Yes, I used rosdep install --from-paths src -i -r -n -y to install dependencies but error still occurs. I do this on NVIDIA AGX Xavier.

CMakeFiles/Makefile2:4912: recipe for target 'people/people_tracking_filter/CMakeFiles/people_tracking_filter.dir/all' failed
make[1]: *** [people/people_tracking_filter/CMakeFiles/people_tracking_filter.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/nvidia/catkin_ws/src/people/face_detector/src/faces.cpp: In constructor ‘people::Faces::Faces()’:
/home/nvidia/catkin_ws/src/people/face_detector/src/faces.cpp:50:18: warning: passing NULL to non-pointer argument 1 of ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = people::Face; _Alloc = std::allocator<people::Face>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<people::Face>]’ [-Wconversion-null]
   cam_model_(NULL)
                  ^
CMakeFiles/Makefile2:3249: recipe for target 'people/face_detector/CMakeFiles/face_detector.dir/all' failed
make[1]: *** [people/face_detector/CMakeFiles/face_detector.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
rjam92 commented 3 years ago

Using a jetson nano, 18.04 and getting the errors show below when compiling face_detector:

include "opencv/cxcore.hpp"

^~~~~~~ compilation terminated. people/face_detector/CMakeFiles/face_detector.dir/build.make:62: recipe for target 'people/face_detector/CMakeFiles/face_detector.dir/src/face_detection.cpp.o' failed make[2]: [people/face_detector/CMakeFiles/face_detector.dir/src/face_detection.cpp.o] Error 1 CMakeFiles/Makefile2:15585: recipe for target 'people/face_detector/CMakeFiles/face_detector.dir/all' failed make[1]: [people/face_detector/CMakeFiles/face_detector.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

Open Cv is installed

import cv2 as cv print(cv.version) 3.2.0