Open Piphi5 opened 3 years ago
Is this still an issue? I didn't see a problem using a regular C++ project
SysIdSetup.cpp:(.text+0x286c): undefined reference to `frc::RomiGyro::RomiGyro()' collect2: error: ld returned 1 exit status
Seems like it still is
In the header I had std::unique_ptr<frc::Gyro> m_gyro;
and in the constructor I had m_gyro = std::make_unique<frc::RomiGyro>(); m_gyro->Calibrate();
and that compiled and linked.
unless I missed it, it doesn't look like you've added the Romi vendordep.
Oops that didn't get committed
That's very strange though. It may be an issue with how we're downloading vendordeps for sysid.
The issue is that the Romi Vendordep doesn't declare linuxathena as a cpp binary platform. Given that Romi is only used on the desktop, I think the right solution is for SysID to ifdef out the RomiGyro on the roboRIO.
Ah that makes sense
When trying to build sysid with the romi vendordep, the linker is failing to identify the RomiGyro constructor.
Also see this workflow.