Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

face_detector 1.1.2 failed to build on melodic #66

Open
ustyui opened this issue Jan 25, 2019 · 3 comments
Open

face_detector 1.1.2 failed to build on melodic #66

ustyui opened this issue Jan 25, 2019 · 3 comments

Comments

@ustyui
Copy link

ustyui commented Jan 25, 2019

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.

@ustyui ustyui changed the title face_detector 1.1.0 failed to build on melodic face_detector 1.1.2 failed to build on melodic Jan 25, 2019
@DLu
Copy link
Member

DLu commented Jan 25, 2019

Do you have all the dependencies installed?

@ustyui
Copy link
Author

ustyui commented Apr 12, 2019

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
Copy link

rjam92 commented Nov 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants