|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
WindRiver & Git - Makefile
Hi all,
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? -Tanner |
|
#2
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Why are you putting the makefiles under version control? If you are using WindRiver you don't even need to know what makefiles are.
Just put the actual code under control. |
|
#3
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Quote:
Code:
C:\windriver\vxworks-6.3\host\x86-win32\bin\make.exe: *** No targets specified and no makefile found. Stop. -Tanner |
|
#4
|
|||
|
|||
|
Re: WindRiver & Git - Makefile
what if you create a project on each machine that will be using the versioning to create the makefiles, then import the versioned files into the project?
|
|
#5
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
does WR do this to you for every new project? I haven't seen this myself, and it shouldn't do it at all unless you messed with it.
Last edited by byteit101 : 06-06-2010 at 11:44. Reason: Bad wording |
|
#6
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Quote:
I'm confused how WindRiver is going to compile fine without the makefiles. Maybe I'm importing the project wrongly into WindRiver, but I'm not seeing how it can be done otherwise. Quote:
How do people using SVN manage the makefile? -Tanner |
|
#7
|
|||
|
|||
|
Re: WindRiver & Git - Makefile
SVN is built into Wind River (or it's an eclipse extension - I don't remember) so everything is handled automatically
|
|
#8
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Quote:
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 Last edited by byteit101 : 06-06-2010 at 13:57. Reason: found git plugin |
|
#9
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
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.
Quote:
I'll have to try the EGit when I get home. Might give me better results. -Tanner |
|
#10
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
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. |
|
#11
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
I've done it on SVN with just .h and .cpp files. Here is a procedure I wrote a couple of years ago for the guys on my team (I updated it a bit, but there may be mistakes).
We use TortoiseSVN, hence the Windows Explorer right-click-menu bit. Quote:
|
|
#12
|
|||
|
|||
|
Re: WindRiver & Git - Makefile
Actually, there is an option to create a project from an SVN repo. I think it's Import->SVN. It's what we use, and it works well
|
|
#13
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Quote:
or you could use New>Project>SVN>Checkout Projects From SVN We used this also |
|
#14
|
||||
|
||||
|
Re: WindRiver & Git - Makefile
Quote:
Thanks all. 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. -Tanner Last edited by Tanner : 13-06-2010 at 18:08. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C and LabView version control with Git | Nibbles | NI LabVIEW | 31 | 17-01-2010 19:22 |
| Git on Windows vs Git on Unix/Linux | kamocat | Programming | 5 | 10-01-2010 00:25 |
| Running the Motors Backward in WindRiver & cRIO Freezes | kyungjin | C/C++ | 15 | 08-02-2009 14:24 |
| git for source code management? | d235j | Programming | 2 | 08-01-2009 22:59 |
| Using Eclipse IDE & makefile as MPLAB replacement | RoboPhantom | Programming | 0 | 27-02-2005 19:05 |