AprilRobotics / apriltag

AprilTag is a visual fiducial system popular for robotics research.
https://april.eecs.umich.edu/software/apriltag
Other
1.56k stars 535 forks source link

error when i run make in ubuntu 22.04 #299

Closed biggwatermelon closed 8 months ago

biggwatermelon commented 11 months ago

i encounter an error when run this:

make -j
sudo make install
make[1]: Entering directory '/home/wu/Downloads/Test/apriltag/example'
   [apriltag_demo]
   opencv_demo.o
/bin/sh: 1: pkg-config: not found
opencv_demo.cc:31:10: fatal error: opencv2/opencv.hpp: No such file or directory
   31 | #include "opencv2/opencv.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:28: opencv_demo.o] Error 1
christian-rauch commented 11 months ago

The line /bin/sh: 1: pkg-config: not found tells you that the executable pkg-config is missing. You have to install it (sudo apt install pkg-config) or use the CMake instructions alternatively.