![]() |
WPILib source code
I'm almost afraid to ask - in case the answer is embarrassingly obvious... or worse yet the answer is no: Where can I download the 2016 WPILib C++ and Java source code? All I want is the source code... not to build with, but just for reference. I don't have the bandwidth to download a gigabyte zip file, and I don't want to "install" anything on my computer... just want the source code. |
Re: WPILib source code
I know that for Java when you install the WPILib plugins it creates a folder called "wpilib" in your home directory. Inside "wpilib/java/current/lib" you will find WPILib-Sources.jar. You can open that jar file and find the source code. I am not familiar with C++ but its probably also in the wpilib folder.
|
Re: WPILib source code
Quote:
Quote:
|
Re: WPILib source code
The RobotPy group has a mirror of the repository here:
https://github.com/robotpy/allwpilib |
We have a ScreenSteps page for that: https://wpilib.screenstepslive.com/s...ing-the-source. I don't believe we publish a standalone zip unless you want to go mucking about in maven dependencies, but all our source is in the git repos described in that article.
|
Re: WPILib source code
Quote:
|
Re: WPILib source code
Quote:
|
Quote:
|
Re: WPILib source code
Quote:
|
Re: WPILib source code
Quote:
Quote:
Would be glad to learn though, if it's straightforward. |
Re: WPILib source code
If you download the eclipse plugin jar from the eclipse repository, you can extract the contents of the jar and all the files are in the resources/java.zip/lib folder (or resources/cpp.zip for C++).
Edit: looks like there's an online code view here. |
Re: WPILib source code
Quote:
EDIT: This worked too. Thank you: Quote:
|
Re: WPILib source code
Thank you to all who responded. I think I have what I need now. If anyone cares to walk me through the process of "clone the repo" I'm always open to learning something new... |
Re: WPILib source code
Git is a really cool tool for managing source code, there's a good intro tutorial on GitHub.
|
Re: WPILib source code
Quote:
The RobotPy repo is automatically synchronized (and is a pure mirror -- no robotpy specific changes), so it'll stay up to date. I personally find it much easier to deal with github than collab.net -- collab.net is terrible in so many ways, and I'm surprised FIRST is still using it. To clone any git repo, you need to download+install git. Once you've got that taken care of, you go to some directory and from the command line do: Code:
git clone https://github.com/robotpy/allwpilibCode:
git clone https://usfirst.collab.net/gerrit/allwpilibCode:
git pull |
| All times are GMT -5. The time now is 00:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi