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

Compilation fails on Ubuntu 16.04 ROS kinetic #244

Closed ninja-hu closed 2 years ago

ninja-hu commented 2 years ago

Describe the bug Following error is seen when I try to compile

[ 32%] Building C object CMakeFiles/apriltag.dir/common/image_u8.c.o [ 35%] Building C object CMakeFiles/apriltag.dir/common/image_u8x3.c.o [ 37%] Building C object CMakeFiles/apriltag.dir/common/image_u8x4.c.o [ 40%] Building C object CMakeFiles/apriltag.dir/common/workerpool.c.o In file included from /home/locobot1/apriltag_ws/src/apriltag/common/workerpool.c:32:0: /usr/include/stdio.h:314:6: error: unknown type name ‘_IO_cookie_io_functions_t’ _IO_cookie_io_functions_t __io_funcs) THROW wur; ^ CMakeFiles/apriltag.dir/build.make:398: recipe for target 'CMakeFiles/apriltag.dir/common/workerpool.c.o' failed make[2]: [CMakeFiles/apriltag.dir/common/workerpool.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/apriltag.dir/all' failed make[1]: [CMakeFiles/apriltag.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 <== Failed to process package 'apriltag': Command '['make', '-j1']' returned non-zero exit status 2

Operating Sytem Ubuntu 16.04

Installation Method Following the locobot auto installation script provided here : https://www.trossenrobotics.com/docs/interbotix_xslocobots/getting_started/user_guide.html

Code version 8c45cb387bcc5e4d08b04f01bbc9ba83aae93444

I had an older version of the repo which works fine. The HEAD for the older version: 76482356ff7ecb3f4895b3b600d533b2e65980d9

christian-rauch commented 2 years ago

Ubuntu 16.04 is EOL and not supported anymore. The CI pipeline only tests the last two LTS versions (20.04 and 22.04). From the CI status, you can see that those build without issues.

Support for 16.04 has to be contributed by someone else. I can review a PR if it also contains the CI workflow for 16.04.

wxmerkt commented 2 years ago

@ninja-hu I've provided a fix in #245