Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Rebuilding the WPILib? (http://www.chiefdelphi.com/forums/showthread.php?t=89131)

basicxman 20-01-2011 17:26

Re: Rebuilding the WPILib?
 
Quote:

Originally Posted by jwakeman (Post 1004462)
One more question. When building I see an error for each file that is compiled, "process_begin: CreateProcess((null), svnversion -n .., ...) failed." Its only a nuisance, the lib still gets built, but if there is an easy way to change a setting or something it would be nice.

Install a Subversion client such as SlikSVN.

jhersh 20-01-2011 18:49

Re: Rebuilding the WPILib?
 
Quote:

Originally Posted by jwakeman (Post 1004462)
One more question. When building I see an error for each file that is compiled, "process_begin: CreateProcess((null), svnversion -n .., ...) failed." Its only a nuisance, the lib still gets built, but if there is an easy way to change a setting or something it would be nice.

You can either live with it or you can edit the compiler settings for the project to remove the call. That is how we automatically read the current SVN revision and build it into the library. If you are not using the SVN repo (instead using the packaged source) then this is your only option. If you are using the SVN server at FIRST Forge, then you just need to install SlikSVN.

-Joe

jwakeman 21-01-2011 00:23

Re: Rebuilding the WPILib?
 
I am using the packaged source because of this statement on the WPILib FAQ's on FirstForge:

Quote:

The source code on the SVN server does not include the source for the same revision that was released in an update. What's wrong?

This is just because we're not as fast at merging the source code to the public SVN repository. Check back soon and it should be up to date
I can't find where to turn off the SVN sync. I am looking in "Project->Properties->Build Properties" mostly (as well as the other items in Project->Properties) but I cannot find anything that says "repository" or svn or anything like that. Can you point me to the option? Thanks again for you help.

jhersh 21-01-2011 01:45

Re: Rebuilding the WPILib?
 
Quote:

Originally Posted by jwakeman (Post 1004763)
I am using the packaged source because of this statement on the WPILib FAQ's on FirstForge:



I can't find where to turn off the SVN sync. I am looking in "Project->Properties->Build Properties" mostly (as well as the other items in Project->Properties) but I cannot find anything that says "repository" or svn or anything like that. Can you point me to the option? Thanks again for you help.

In Project Properties->Build Properties->Build Tools tab->Build Tool: C++-Compiler->Build spec specific settings->Command: you need to remove the following text:

Code:

-D'SVN_REV="$(shell svnversion -n ..)"'
-Joe

jhersh 21-01-2011 01:48

Re: Rebuilding the WPILib?
 
Quote:

Originally Posted by jwakeman (Post 1004763)
I am using the packaged source because of this statement on the WPILib FAQ's on FirstForge:
Quote:

The source code on the SVN server does not include the source for the same revision that was released in an update. What's wrong?

This is just because we're not as fast at merging the source code to the public SVN repository. Check back soon and it should be up to date

That is not a statement of fact. It is a FAQ. Sorry if that's misleading. It's saying that if you discover that the SVN source is not up to date at some point, you have other options. It is up to date right now.

-Joe

jwakeman 21-01-2011 09:32

Re: Rebuilding the WPILib?
 
Instead of removing the text you mentioned completely I changed it to:

Code:

-D'SVN_REV="UNCONTROLLED"'
This is to avoid a compilation error because SVN_REV needs to be defined. Regarding the svn repository, this repository only gets updated each time a release is made. It is not a development repository, correct?

jhersh 21-01-2011 14:30

Re: Rebuilding the WPILib?
 
Quote:

Originally Posted by jwakeman (Post 1004899)
Instead of removing the text you mentioned completely I changed it to:

Code:

-D'SVN_REV="UNCONTROLLED"'

Sounds good.

Quote:

Originally Posted by jwakeman (Post 1004899)
This is to avoid a compilation error because SVN_REV needs to be defined. Regarding the svn repository, this repository only gets updated each time a release is made. It is not a development repository, correct?

Correct. This is the public repository that is synced to the development repository when a release is made. This allows teams to see the history of the library, create patches against specific revisions, blame a developer for a bug, and look at revision comments for specific changes.

-Joe


All times are GMT -5. The time now is 14:25.

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