Closed jkuszmaul closed 12 months ago
The api-cpp-*.zip
file is meant for non-FRC users who don't have access to WPILib. FRC users should use https://maven.ctr-electronics.com/release/com/ctre/phoenix6/wpiapi-cpp/24.0.0-beta-3/wpiapi-cpp-24.0.0-beta-3-headers.zip instead, which does use the WPILib units library.
With that said, "frc/fmt/Units.h" does not exist outside of FRC, so we can get that fixed in the next beta release for non-FRC users.
Ah, thank you. I'll fix our dependency tree then. Not sure why we started using the api-cpp
ones in the first place.
This has been fixed in our 2024 beta 4 release: https://api.ctr-electronics.com/changelog#20231205
There appears to be a
units/
folder with a bunch of C++ headers in https://maven.ctr-electronics.com/release/com/ctre/phoenix6/api-cpp/24.0.0-beta-3/api-cpp-24.0.0-beta-3-headers.zip in the latest beta release. This includes a#include
that attempts to depend onfrc/fmt/Units.h
, which exists neither in that zip file nor in upstream allwpilib (it was moved in https://github.com/wpilibsuite/allwpilib/pull/5358/files#diff-e013f85188d8ea53a739540987ba0fdaa96e4dffaac6bff543f5eefe84ac5e84). I'm not sure if anything actually is using thatunits/
folder any more, or if we are just running into oddities due to not using gradle.