Go to Post Why, yes. I do use Windows, why do you ask? - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2016, 11:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
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   Spotlight this post!  
Unread 31-01-2016, 11:24
Joey1939's Avatar
Joey1939 Joey1939 is offline
Registered User
AKA: Joey Holliday
FRC #1939 (Kuhnigits)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Kansas City, Missouri
Posts: 144
Joey1939 has a spectacular aura aboutJoey1939 has a spectacular aura aboutJoey1939 has a spectacular aura about
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   Spotlight this post!  
Unread 31-01-2016, 11:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WPILib source code


Quote:
Originally Posted by Joey1939 View Post
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.
Thanks, but:

Quote:
Originally Posted by Ether View Post
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.

  #4   Spotlight this post!  
Unread 31-01-2016, 11:49
x86_4819's Avatar
x86_4819 x86_4819 is offline
computer-whisperer
AKA: Christian Balcom
FRC #4819 (Flat Mountain Mechanics)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2013
Location: Shepherd MI
Posts: 92
x86_4819 is on a distinguished road
Re: WPILib source code

The RobotPy group has a mirror of the repository here:
https://github.com/robotpy/allwpilib
__________________




My Github Repositories
  #5   Spotlight this post!  
Unread 31-01-2016, 12:34
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
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   Spotlight this post!  
Unread 31-01-2016, 12:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WPILib source code

Quote:
Originally Posted by fsilberberg View Post
We have a ScreenSteps page for that: https://wpilib.screenstepslive.com/s...ing-the-source.
I spent half an hour yesterday navigating that site, but could not find a way to download the Java or the C++ WPILib source code.


  #7   Spotlight this post!  
Unread 31-01-2016, 12:45
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,107
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: WPILib source code

Quote:
Originally Posted by Ether View Post
I spent half an hour yesterday navigating that site, but could not find a way to download the Java or the C++ WPILib source code.


You have to clone it through git. There doesn't seem to be a way to download it directly from WPI without cloning. However RobotPy's github clone does have a download zip button, the direct link for which can be found here. https://github.com/robotpy/allwpilib/archive/master.zip
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #8   Spotlight this post!  
Unread 31-01-2016, 12:51
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by Ether View Post
I spent half an hour yesterday navigating that site, but could not find a way to download the Java or the C++ WPILib source code.


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.
  #9   Spotlight this post!  
Unread 31-01-2016, 13:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: WPILib source code

Quote:
Originally Posted by fsilberberg View Post
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.
The robotpy one is very up to date, it has the commit Brad did about 10 minutes ago.
  #10   Spotlight this post!  
Unread 31-01-2016, 13:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WPILib source code

Quote:
Originally Posted by fsilberberg View Post
What is unclear?
I am not a github user, so this is unclear:

Quote:
Originally Posted by fsilberberg View Post
You have to clone the repo
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.


  #11   Spotlight this post!  
Unread 31-01-2016, 13:13
ixchi ixchi is offline
Registered User
AKA: Greg Cordover
FRC #4404 (Nuts and Colts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Chesterfied, MO
Posts: 5
ixchi is an unknown quantity at this point
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   Spotlight this post!  
Unread 31-01-2016, 13:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WPILib source code

Quote:
Originally Posted by Thad House View Post
However RobotPy's github clone does have a download zip button, the direct link for which can be found here. https://github.com/robotpy/allwpilib/archive/master.zip
That's what I was looking for. Thanks much.


EDIT: This worked too. Thank you:
Quote:
Originally Posted by ixchi View Post
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


Last edited by Ether : 31-01-2016 at 13:26.
  #13   Spotlight this post!  
Unread 31-01-2016, 13:21
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
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.
  #14   Spotlight this post!  
Unread 31-01-2016, 13:33
ixchi ixchi is offline
Registered User
AKA: Greg Cordover
FRC #4404 (Nuts and Colts)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Chesterfied, MO
Posts: 5
ixchi is an unknown quantity at this point
Re: WPILib source code

Git is a really cool tool for managing source code, there's a good intro tutorial on GitHub.
  #15   Spotlight this post!  
Unread 31-01-2016, 13:40
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: WPILib source code

Quote:
Originally Posted by Ether View Post

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...


Hey Ether,

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
Alternatively, if you want to clone the "real" repo from collab.net (it's going to be slower to access than github).. you can do this:

Code:
git clone https://usfirst.collab.net/gerrit/allwpilib
Once you've got it cloned, you can cd into the directory, and anytime that you want to update it you can do the following:

Code:
git pull
If you want to make code changes, let me know and I can make sure that they get submitted for consideration and eventually committed.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff

Last edited by virtuald : 31-01-2016 at 13:42.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi