Cannot open source file "frc2/command/CommandPtr.h"

Attempting a small test of the wpi subsystem and command features but all the docs show includes from the frc2 directory which fails to compile and intellisense also shows an error. I was able to find the Timer.h header in my systems files but nothing else under the frc2 directory. I’ve updated my wpilib to the latest version but still nothing. How do I get this library onto my system and linked in the project? Even a new project based on the “command based” template throws an error which makes it clear the library may just be missing.

image
At least in 2023, you had to add commands – see here: 3rd Party Libraries — FIRST Robotics Competition documentation.

That did it, I guess I didn’t think to check offline libraries

1 Like

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