CTRE_Pheonix Can't find dependent libraries

This is my first year programming a robot in FRC but have prior programming experience. All previous programmers on my team have graduated or left and mentor who worked mainly on programming has moved away as well. I have also been in contact with other programmers as well and have not yet found an answer to my problem yet.

I am trying to code a drivetrain of 6 talonSRX’s in java. I have installed libraries from CTRE and I am using VSCode. Below I have pasted the error I am getting in my terminal. We get successful build and then get this:

    ********** Robot program starting **********
java.lang.UnsatisfiedLinkError: C:\Users\Riley Robotics\Desktop\Deep Space (2018-19)\Real
Code\build\tmp\jniExtractDir\CTRE_PhoenixCCI.dll: Can't find dependent libraries
        at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
        at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2649)
        at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:829)
        at java.base/java.lang.System.loadLibrary(System.java:1867)
        at com.ctre.phoenix.CTREJNIWrapper.<clinit>(CTREJNIWrapper.java:9)
        at com.ctre.phoenix.motorcontrol.can.BaseMotorController.<init>(BaseMotorController.java:54)
        at com.ctre.phoenix.motorcontrol.can.TalonSRX.<init>(TalonSRX.java:27)
        at frc.robot.subsystems.Drivetrain.<init>(Drivetrain.java:35)
        at frc.robot.Robot.robotInit(Robot.java:43)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:63)
        at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:263)
        at frc.robot.Main.main(Main.java:27)

We also have a red communications light on the roboRio. I have updated the firmwarwe on the Roborio and the talons as well.

You appear to be attempting to run a simulation of your robot code.

What version of the CTRE Phoenix library do you have installed in your project?

5.12.0

That’s outdated. 5.13.0 is the latest version.

Where can I find the most updated version

Hey, just checking up again, do you know where i could get that updated?

Check CTRE website might be under one of their tech resources

1 Like

Have you installed your vendor dependencies? This should be installed via these screensteps. With CTRE libraries I’ve found that (instead of running an offline install) you can run an online install following nearly the same steps as above and using this link:

http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/Phoenix-latest.json

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.