-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GradleRIO and third-party libraries #16
Comments
By taking a quick look at the CTRE libraries, they are available in two forms, as an exe installer, and as a zip archive. It is currently possible to use both of these to install 3rd party libs to GradleRIO. Until I push an update out which will make this more streamlined, you can use the following methods to link the 3rd party libs. On the CTRE Tools Website, choose either the Add the following line to your compile fileTree(dir: "<tooldir>", include: '**/*.jar') Depending on which binary you downloaded, you will substitute If you downloaded the installer, replace If you downloaded the non-installer package, replace This will compile against the CTRE Jar for your robot program. If you're using stock-standard GradleRIO, this will build into your final .jar. If you're using Toast, it will require a little bit of extra setup to include it in your binary (since toast doesn't build fat jars). I will discuss this in a followup comment. The problem now is that CTRE actually doesn't link their fileTree(dir: "<tooldir>", include: '**/*.so').each { File f ->
gradlerio.deployers += [ to: "/usr/local/frc/lib/${f.name}.jar", from: f.file ]
} |
If you ARE using TOAST, you will need to follow all the steps above with some extra setup: toastLibrary fileTree(dir: "<tooldir>", include: '**/*.jar') |
As a guide, your |
Closed for #17 |
Starting with the 2017 update to WPILib, classes such as CANTalon are no longer provided as a part of the library. In addition, the only way I've found to restore functionality such as CANTalon usage is to install a CTR library via a EXE installer. I am reasonably confident that this method is not directly compatible with GradleRIO.
How could I use these third-party libraries with GradleRIO?
The text was updated successfully, but these errors were encountered: