Is any one else having issues downloading CTRE Framework onto a Mac (VS code)

Whenever I go to build the error message says that it is unable to find the directory <ctre/Phoenix.h> how do I fix this

How did you import the CTRE vendor library?

I just got it to work, I had to use the “Install new Libraries(online)” method which finally worked. Thank you

That’s good that it works, but we do recommend the offline method.

Otherwise your project may require internet access to build in the future if something funky happens in your local build system. And Internet may not be available at your competition.

If the project is developed on multiple machines, can (say the DS) have the offline libraries and other computers fetch from online?

It took me a while to find the instructions, but after deciphering the Windows instructions here:
https://phoenix-documentation.readthedocs.io/en/latest/ch05_PrepWorkstation.html#workstation-installation
I figured out how to make offline install work on Mac OS.

Download the framework zip from
http://www.ctr-electronics.com/hro.html#product_tabs_technical_resources
I’m using CTRE_Phoenix_FRC_Linux_5.12.0.zip

Extract the file.

Copy or move the “ctre” folder to
‎⁨Macintosh⁩ ▸ ⁨Users⁩ ▸ ⁨YourUsername ▸ ⁨frc2019⁩ ▸ ⁨maven⁩ ▸ ⁨com⁩

Copy or move the “vendordeps” folder to
‎⁨Macintosh⁩ ▸ ⁨Users⁩ ▸ ⁨YourUsername ▸ ⁨frc2019⁩

Right click build.gradle in your project workspace and select Manage Vendor Libraries, select Install New Libraries (Offline) and CTRE Phoenix will show up in the list instead of getting the message that there are no new dependencies available.

It would be really convenient if they included a simple README file in the zip file with specific instructions for each operating system.

2 Likes

Its option 2, see below…

WPI docs were not up yet when this was written. We could put a cross link there.

README would be good too. @Jacob_C

Those instructions make a lot more sense now that I have it working.