Hi!
We’re having problems when trying to use the CTRE libraries with WPILib 2024. When we try to build our code without the CTRE libraries it works but when we try to use it, this message appears:
The message doesn’t explain if the problem is the library but it only appears when we install it. We don’t have knowledge about gradle so we would aprreciate if someone explain it!
Make sure you are using the Phoenix 6 vendor dependency as well as phoenix 6 firmware for all of your ctre devices. If you are using Phoenix 6 everywhere, could you provide the entire error message (the message says to scroll up for more information)?
2024-01-12T15:38:27.400-0800 [ERROR] [org.gradle.internal.operations.logging.DefaultBuildOperationLoggerFactory] C:\Users\Public\Documents\ProgramaþÒo Crescendo V1\ProgramaþÒo Crescendo V1\src\main\cpp\Robot.cpp:14:10: fatal error: ctre/phoenix/motorcontrol/can/WPI_VictorSPX.h: No such file or directory
14 | #include <ctre/phoenix/motorcontrol/can/WPI_VictorSPX.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
The reason you’re not getting useful error information from Gradle is because of the special characters in the path, which apparently aren’t output in UTF-8 and thus Java can’t parse it back in to output it. If you rename the folders that should fix Gradle outputting errors correctly.
The underlying problem is that it’s not finding the CTRE headers. Have you installed the CTRE 2024 vendor dep JSON in your project?