wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.08k stars 611 forks source link

Build system not finding edu.wpi.first.apriltag package #4844

Closed CarloWoolsey closed 1 year ago

CarloWoolsey commented 1 year ago

The build system is unable to find the apriltag package located at edu.wpi.first.apriltag.

I'm currently writing a wpilibj example which requires the edu.wpi.first.apriltag package. Running ./gradlew wpilibjExamples:build from the allwpilib root folder returns returns the following error: ~/allwpilib/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/differentialdriveposeestimator/Drivetrain.java:38: error: package edu.wpi.first.apriltag does not exist

Desktop (please complete the following information):

sciencewhiz commented 1 year ago

I suspect you need to add implementation project(':apriltag') to the wpilibjExamples build.gradle

CarloWoolsey commented 1 year ago

Yep, that's the issue --I think. Adding implementation project(':apriltag') and lib project: ':apriltag', library: 'apriltag', linkage: 'shared' resolved the error.

srimanachanta commented 1 year ago

can this issue be closed?

calcmogul commented 1 year ago

Not yet. The examples should be able to use the apriltag library, and that's not the case on main.