Been playing with using C++ to program the robot instead of LabVIEW and I’ve been using Git as my VCS.
Things are working fine except for the Makefile. I haven’t programmed in C++ for years so I’m not sure if this is how things are done or what. I noticed the makefile has a lot of exact paths (C:/Users/Tanner/blah/blah) which doesn’t work too well in a VCS unless everyone has my computer (doubtful) and they don’t want to compile.
So what I’m asking is there a way to modify the Makefile so it can play a bit more nicely with Git?
I don’t, I just use the subclipse plugin and it takes care of it all. the only files that I dont see in the project that it svn’s are .cproject .project .wrmakefile and .wrproject
EDIT: found EGit, a git plugin for eclipse/windriver: http://www.eclipse.org/egit/download/ I would import from the git source when it is installed
Well, I couldn’t figure much out how to get WindRiver to detect a project existed (outside of playing the project folder in the Wordspace directory), but the File -> Import seemed to work. I’m not sure on the specifics (at work right now), but that’s pretty much it.
Hm, that’s strange. I wonder what magic it does.
I’ll have to try the EGit when I get home. Might give me better results.
I don’t have the computer with me right now that I use for FIRST development, so I don’t know the specific instructions, but I’ll try from memory.
We use SVN to host just our code. No makefiles, no project files, just .cpp & .h. Each developer then creates a project using one of the sample projects as a base, cleans out all the default code files, renames the project, etc. Then we import (I believe that’s the correct menu option, but I’m not certain) the directory that contains all our SVN code. Our code is then buildable. When someone adds or removes a file, it’s necessary to refresh the file browser tree.
This method seems to work fine when using Git. I’ll do a write up in a bit once I’m done converting my repo to make sure it really works.
Edit: Though it doesn’t work too well with branches (cause when you go back to the same branch, they won’t exist anymore thus WindRiver whines). Not sure if there is a way to get git to not delete those files.