Go to Post Losing, like criticism, is the only thing that makes you improve. - MooreteP [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2014, 14:11
dowster dowster is offline
Breathes Code
AKA: Brady
FRC #1091 (Oriole Assault)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Hartford
Posts: 11
dowster is an unknown quantity at this point
GIT and WindRiver

Does anyone have any how tos on getting GIT setup with WindRiver? I haven't attempted anything yet and am posting this before i go out and do some research. Anything I find I'll post here but would be thankful to have some input from others!

And good luck to all this season!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2014, 15:11
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: GIT and WindRiver

I know this doesn't answer your question, but have you considered using git from the command line?
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2014, 15:14
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: GIT and WindRiver

That's my project for today as well. I found this very helpful answer on StackOverflow using the GitHub GUI: http://stackoverflow.com/a/15816653/1177139

I plan to create our WindRiver project normally, then follow the instructions in that answer to create a Git repo at that folder and sync it to GitHub. For setting it up on other team members' computers, I'll try following this guy's process: https://github.com/vcarl/FRC830-Prot...b-to-WindRiver

I'll post again with my results...someone has run off with our WindRiver CDs at the moment.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2014, 16:44
dowster dowster is offline
Breathes Code
AKA: Brady
FRC #1091 (Oriole Assault)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2011
Location: Hartford
Posts: 11
dowster is an unknown quantity at this point
Re: GIT and WindRiver

I'll probably be going with using the command line, although i might be able to get WindRiver to do a micro-commit on every save.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2014, 16:53
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: GIT and WindRiver

I don't think I could put up with that many commits - I Ctrl-S reflexively after every line.

I'll stick to manually committing (probably at the end of each day of the build season.)
Reply With Quote
  #6   Spotlight this post!  
Unread 05-01-2014, 23:54
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: GIT and WindRiver

We tried to use git last year. As a mentor, I introduced the students to git and the github GUI app. Eclipse (nay WindRiver) is a serious problem. There are several files that don't play well with git. There are several articles that I found last year that indicated which ones were a problem. I have not been able to resolve the problems yet (due to lack of time rather than trying).

My number one goal in the next week or so is to determine proper procedures for managing git projects with Eclipse. I am also recommending to the students to use SmartGit HG. I use the command line for git on a regular basis, but the git command line is a little much for students to fathom.

My intention is to first work out the procedures for our team. I will publish the procedures here as well. The procedures will reflect my long experience with version control systems in general and git in particular.

If any one else makes progress, I will appreciate the information.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2014, 01:39
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: GIT and WindRiver

I didn't have time to fully configure our Git repo today, but I imagine that I will have a fairly aggressive .gitignore when I'm done. We probably don't need to commit anything other than the code itself, but we'll see.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-01-2014, 15:38
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: GIT and WindRiver

I'm the head software guy for Team 1967 Janksters. We used git quite successfully last year. We have a few items of heartburn, but I'll cover that in a separate message. I thought I'd add that our .gitignore and .gitattributes files are available on our open source page: https://github.com/bobwolff68/FRCTeam1967

Our gitignore was one of the tricky items to figure out such that we could clone on a clean computer and build a replica from another computer.

While there are many lines below, the salient ones are:
/code/.metadata
and
/code/<projectname>/PPC603gnu

/code/JankyJoystickInvestigator/PPC603gnu
/code/JankyXboxJoystickTestjig/PPC603gnu
/code/CameraExperiments/PPC603gnu
/code/.metadata/.plugins
/code/.metadata/.plugins
/code/.metadata
/code/Testjig/PPC603gnu
/code/CompleteRobot/PPC603gnu
/code/TrialPrograms/PPC603gnu
/code/JankyRobotStarter/PPC603gnu
/code/JankyTaskTestjig/PPC603gnu
/code/SensorTestjig/PPC603gnu
/code/JankyActuator/PPC603gnu
/code/IluminsTestDrive/PPC603gnu
/code/JankyBattery/PPC603gnu
/code/WPILib_Sources/WPILib/PPC603gnu
/code/SmartDashboardTestjig/PPC603gnu
/code/UltimateAscent-2013/PPC603gnu
/code/SimpleTemplate/PPC603gnu
/code/JankyRobotDrive/PPC603gnu

Quote:
Originally Posted by duane View Post
We tried to use git last year. As a mentor, I introduced the students to git and the github GUI app. Eclipse (nay WindRiver) is a serious problem. There are several files that don't play well with git. There are several articles that I found last year that indicated which ones were a problem. I have not been able to resolve the problems yet (due to lack of time rather than trying).

My number one goal in the next week or so is to determine proper procedures for managing git projects with Eclipse. I am also recommending to the students to use SmartGit HG. I use the command line for git on a regular basis, but the git command line is a little much for students to fathom.

My intention is to first work out the procedures for our team. I will publish the procedures here as well. The procedures will reflect my long experience with version control systems in general and git in particular.

If any one else makes progress, I will appreciate the information.
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #9   Spotlight this post!  
Unread 06-01-2014, 17:11
mprasolov's Avatar
mprasolov mprasolov is offline
Jack of all trades
AKA: Misha Prasolov
FRC #2823 (The Automatons)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Saint Paul, MN
Posts: 36
mprasolov is an unknown quantity at this point
Re: GIT and WindRiver

We have our repository set up and I have our .gitignore to ignore all of the compiled files such as *.d *.c. You can take a look at it here:

https://github.com/Team-2823/C-Code-2014

We don't have any more code than the basic template.

What I did was make a project, from the template. Then I created and cloned the repository. Then I just copied over the existing project files into the local repository directory. THEN, I imported the directory as a Existing Project.
__________________
Check out our website!

http://hprobotics.org
Reply With Quote
  #10   Spotlight this post!  
Unread 06-01-2014, 17:36
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: GIT and WindRiver

Our .gitignore
Code:
PPC603gnu/
.settings/
.cproject
.project
.wrproject
.wrmakefile
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #11   Spotlight this post!  
Unread 06-01-2014, 22:28
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: GIT and WindRiver

When we used Git + WindRiver last year, we just set up our project so that code was in an external location (it's an option when creating a project), had a separate src folder, and kept our code in that. I think it's much easier than trying to set up a .gitignore for all of the crap WindRiver puts in the project folder.
Reply With Quote
  #12   Spotlight this post!  
Unread 07-01-2014, 11:47
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: GIT and WindRiver

Connor,
I would suggest that you really should include:
.cproject
.project
.wrproject
and
.wrmakefile

and not ignore these. These files are integral to a given project and rebuilding it in the same way each time. In a very small project which has zero modifications, you may be ok ... but you could run into bigger issues in time. As a for-instance ... if you look at the .-files in our Ultimate Ascent project, you'll see that we have references to external files and in the .wrmakefile we have custom build steps which aleviate problems with the darned FIRST->DOWNLOAD plugin which doesn't support being smart about downloading the appropriate final binary if you switch projects often (which we do).
https://github.com/bobwolff68/FRCTea...ateAscent-2013
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #13   Spotlight this post!  
Unread 07-01-2014, 12:31
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: GIT and WindRiver

IIRC we ran into issues with absolute paths in those files. Cloning a project does require some extra work, but we've done it in the past. Maybe we're doing our paths wrong? Advice here would be appreciated.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #14   Spotlight this post!  
Unread 07-01-2014, 13:16
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: GIT and WindRiver

Connor,
You are correct - pathing is a PAIN in WindRiver. We did, however, come up with a full fledged solution early last season. It is documented in:
https://github.com/bobwolff68/FRCTea.../windriver.txt

The trick is to use the WS_ROOT_DIR variable. See lines #45-#47 in that file specifically. But the whole thing may be found as a good read. That's our formula around much of it outside of the final output file being copied to a single hardwired location ALWAYS post-build. This makes it so the FIRST->Download plugin can be set to that location and never changed. Regardless of switching projects you'll always have the most recently built binary output in the right location ready to be downloaded.

Hope this helps.

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #15   Spotlight this post!  
Unread 10-01-2014, 10:21
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: GIT and WindRiver

Quote:
Originally Posted by dowster View Post
I'll probably be going with using the command line, although i might be able to get WindRiver to do a micro-commit on every save.
I wanted to point out that WindRiver (and any Eclipse editor) actually keeps a local history of saves (about 30 of them) that you can use to compare in the editor.

If you right click a file in WR, there is a Compare option, under that select local history and it gives you several versions of the file to look at. You can change the settings to keep more files in the history as well.

This is very helpful for emergencies, but it gets easy to lose track if you are a reflexive saver.
Reply With Quote
Reply


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 14:01.

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