WPIlib libs missing (2023 beta 7)

For my project, I have ran into some linker issues, namely the following:

> Task :linkFrcUserProgramReleaseExecutable FAILED
/home/laptop-main/wpilib/2023/roborio/bin/../arm-nilrt-linux-gnueabi/sysroot/usr/lib/gcc/arm-nilrt-linux-gnueabi/12/../../../../../../../arm-nilrt-linux-gnueabi/bin/ld: warning: libFRC_NetworkCommunication.so.22, needed by /home/laptop-main/.gradle/caches/transforms-3/cd376efa0c73172d3ed2797e25f39c74/transformed/wpiapi-cpp-5.21.4-linuxathena/linux/athena/shared/libCTRE_Phoenix_WPI.so, not found (try using -rpath or -rpath-link)
/home/laptop-main/wpilib/2023/roborio/bin/../arm-nilrt-linux-gnueabi/sysroot/usr/lib/gcc/arm-nilrt-linux-gnueabi/12/../../../../../../../arm-nilrt-linux-gnueabi/bin/ld: warning: libRoboRIO_FRC_ChipObject.so.22, needed by /home/laptop-main/.gradle/caches/transforms-3/cd376efa0c73172d3ed2797e25f39c74/transformed/wpiapi-cpp-5.21.4-linuxathena/linux/athena/shared/libCTRE_Phoenix_WPI.so, not found (try using -rpath or -rpath-link)
/home/laptop-main/wpilib/2023/roborio/bin/../arm-nilrt-linux-gnueabi/sysroot/usr/lib/gcc/arm-nilrt-linux-gnueabi/12/../../../../../../../arm-nilrt-linux-gnueabi/bin/ld: /home/laptop-main/.gradle/caches/transforms-3/cd376efa0c73172d3ed2797e25f39c74/transformed/wpiapi-cpp-5.21.4-linuxathena/linux/athena/shared/libCTRE_Phoenix_WPI.so: undefined reference to `frc::SpeedController::SetVoltage(units::unit_t<units::unit<std::ratio<1ll, 1ll>, units::base_unit<std::ratio<2ll, 1ll>, std::ratio<1ll, 1ll>, std::ratio<-3ll, 1ll>, std::ratio<0ll, 1ll>, std::ratio<-1ll, 1ll>, std::ratio<0ll, 1ll>, std::ratio<0ll, 1ll>, std::ratio<0ll, 1ll>, std::ratio<0ll, 1ll> >, std::ratio<0ll, 1ll>, std::ratio<0ll, 1ll> >, double, units::linear_scale>)'
/home/laptop-main/wpilib/2023/roborio/bin/../arm-nilrt-linux-gnueabi/sysroot/usr/lib/gcc/arm-nilrt-linux-gnueabi/12/../../../../../../../arm-nilrt-linux-gnueabi/bin/ld: /home/laptop-main/.gradle/caches/transforms-3/cd376efa0c73172d3ed2797e25f39c74/transformed/wpiapi-cpp-5.21.4-linuxathena/linux/athena/shared/libCTRE_Phoenix_WPI.so: undefined reference to `frc::DriverStation::GetInstance()'
/home/laptop-main/wpilib/2023/roborio/bin/../arm-nilrt-linux-gnueabi/sysroot/usr/lib/gcc/arm-nilrt-linux-gnueabi/12/../../../../../../../arm-nilrt-linux-gnueabi/bin/ld: /home/laptop-main/.gradle/caches/transforms-3/cd376efa0c73172d3ed2797e25f39c74/transformed/wpiapi-cpp-5.21.4-linuxathena/linux/athena/shared/libCTRE_Phoenix_WPI.so: undefined reference to `typeinfo for frc::SpeedController'
collect2: error: ld returned 1 exit status

I am on the beta 7 pre release. I have not made any steps to fix this issue as I don’t know where to start.

You need to update your phoenix vendordep to the beta version. The 2022 version is not compatible with 2023 wpilib.

You’ll also have to update the other vendordeps you have, they’ll likely get caught by the linker next, or fail at runtime.

If you haven’t done so already, I’d recommend using the importer rather than simply bumping the gradlerio version.

1 Like

Would this be https://maven.ctr-electronics.com/release/com/ctre/phoenix/Phoenix-frc2022-latest.json or do I need a different URL?

Are you in the official beta program? The 2023 beta vendordeps are available in the beta repository but are not public.

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