Author Topic: Compile problem - autorevision and SVN  (Read 3779 times)

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Compile problem - autorevision and SVN
« on: January 04, 2007, 02:41:38 am »
I'm upgrading my CodeBlocks installation on LINUX from 2599 to 3455 and things go OK until I hit the make step.  I have to compile from code for a whole variety of reasons not interesting here.  Anywho, the problem comes along with entering the build_tools/autorevious directory where I get:

sh:  svn: command not found

Well, I assume this means I don't have SVN installed on this LINUX box - no surprise there.  Is there any way I can disable this feature and compile the remainder??

-Kirk
« Last Edit: January 04, 2007, 02:44:12 am by KirkD »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Compile problem - autorevision and SVN
« Reply #1 on: January 04, 2007, 02:56:19 am »
I would try this

In file: src/build_tools/autorevision/autorevision.cpp
comment out line 92 or about that line. Line shown below.
Quote
QuerySvn(workingDir, revision, date) || ParseFile(docFile, revision, date) || ParseFile(docFile2, revision, date);

The autorevision command should run without erroring out then.
This should create a file like this below in src/sdk/autorevision.h
Code
/*0*/
#ifndef AUTOREVISION_H
#define AUTOREVISION_H



#define SVN_REVISION "0"

#define SVN_DATE     ""

namespace autorevision
{
const unsigned int svn_revision = 0;
}



#endif

Tim S
« Last Edit: January 04, 2007, 03:08:20 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: Compile problem - autorevision and SVN
« Reply #2 on: January 04, 2007, 06:46:17 pm »
Thank you!  That appears to have worked - it is compiling now and all seems to be behaving normally.  If I have any other problems, I'll post back in this thread.

What feature does the autorevision enable?  Auto updates of CodeBlocks or a connection into SVN for CodeBlocks projects?

-Kirk

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Compile problem - autorevision and SVN
« Reply #3 on: January 04, 2007, 08:45:02 pm »
Thank you!  That appears to have worked - it is compiling now and all seems to be behaving normally.  If I have any other problems, I'll post back in this thread.

What feature does the autorevision enable?  Auto updates of CodeBlocks or a connection into SVN for CodeBlocks projects?

-Kirk


I know of no feature it enables, but it helps support issues (user reporting problems) because in various places it reports the svn version that the user has. And, we can ask them for it.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org