|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: WPILib source code
Quote:
Quote:
|
|
#4
|
||||
|
||||
|
Re: WPILib source code
The RobotPy group has a mirror of the repository here:
https://github.com/robotpy/allwpilib |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
Re: WPILib source code
Quote:
|
|
#7
|
||||
|
||||
|
Re: WPILib source code
Quote:
|
|
#8
|
||||
|
||||
|
Re: WPILib source code
Quote:
EDIT: This worked too. Thank you: Quote:
Last edited by Ether : 31-01-2016 at 13:26. |
|
#9
|
|||
|
|||
|
What is unclear? If you let us know what confused you, we can update wordings. As Thad said, however, we don't offer direct zip downloads. You have to clone the repo, or go to one of the unofficial repos on Github and download from them. While I can't vouch for how up to date they are (my own clone is several commits behind), I imagine the Python mirror is synced regularly.
|
|
#10
|
||||||
|
||||||
|
Re: WPILib source code
The robotpy one is very up to date, it has the commit Brad did about 10 minutes ago.
|
|
#11
|
|||
|
|||
|
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. Last edited by ixchi : 31-01-2016 at 13:23. |
|
#12
|
||||
|
||||
|
Re: WPILib source code
I am not a github user, so this is unclear:
I don't know how to "clone the repo"... or what to do after having done that. Would be glad to learn though, if it's straightforward. |
|
#13
|
||||
|
||||
|
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... Last edited by Ether : 31-01-2016 at 13:26. |
|
#15
|
||||
|
||||
|
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/allwpilib Code:
git clone https://usfirst.collab.net/gerrit/allwpilib Code:
git pull Last edited by virtuald : 31-01-2016 at 13:42. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|