Code::Blocks Forums
User forums => Help => Topic started by: grandzebu on August 09, 2006, 01:13:51 am
-
I'm trying to compile CodeBlocks.
- I have downloaded and compiled wxWidgets 2.6.2 --> OK
- I have installed TortoiseSVN --> OK
- With Tortoise I have downoaded the CB sources from svn://svn.berlios.de/codeblocks/trunk --> OK
- I have installed a nighty build of CB (Aug 4 2006) --> OK
but now ...
When I launch the build, CB stop on SDK build with this message :
-------------- Build: sdk in Code::Blocks ---------------
Running target pre-build steps
tools/autorevision/autorevision +wx +int +t . sdk/autorevision.h
'svn' n'est pas reconnu en tant que commande interne (EN: 'svn' is not an internal or external cmd, nor exe program)
ou externe, un programme executable ou un fichier de commandes.
Error: failed retrieving version information.
Process terminated with status -1 (2 minutes, 13 seconds)
Please help ! :cry:
GZ
-
............
-------------- Build: sdk in Code::Blocks ---------------
Running target pre-build steps
tools/autorevision/autorevision +wx +int +t . sdk/autorevision.h
'svn' n'est pas reconnu en tant que commande interne (EN: 'svn' is not an internal or external cmd, nor exe program)
ou externe, un programme executable ou un fichier de commandes.
Error: failed retrieving version information.
Process terminated with status -1 (2 minutes, 13 seconds)
Please help ! :cry:
GZ
You must install also the command-line version of svn, which is no more included in tortoise svn.
Just look in tortoise web site for the link.
svn.exe must be installed somewhere in your path, c:\mingw\bin should be a good place.
Ciao
Max
-
I'm trying to compile CodeBlocks.
- I have downloaded and compiled wxWidgets 2.6.2 --> OK
- I have installed TortoiseSVN --> OK
- With Tortoise I have downoaded the CB sources from svn://svn.berlios.de/codeblocks/trunk --> OK
- I have installed a nighty build of CB (Aug 4 2006) --> OK
but now ...
When I launch the build, CB stop on SDK build with this message :
-------------- Build: sdk in Code::Blocks ---------------
Running target pre-build steps
tools/autorevision/autorevision +wx +int +t . sdk/autorevision.h
'svn' n'est pas reconnu en tant que commande interne (EN: 'svn' is not an internal or external cmd, nor exe program)
ou externe, un programme executable ou un fichier de commandes.
Error: failed retrieving version information.
Process terminated with status -1 (2 minutes, 13 seconds)
Please help ! :cry:
GZ
I get that error all the time. However Code::Blocks never stops building.... BTW the version of wx C::B uses is 2.6.3. ;)
-
I get that error all the time. However Code::Blocks never stops building.... BTW the version of wx C::B uses is 2.6.3. ;)
Yes, I got it too before installing svn command line executable.
I think it's used to get the revision number (shown in help), but I'm not sure.
Ciao
Max
-
'svn' n'est pas reconnu en tant que commande interne (EN: 'svn' is not an internal or external cmd, nor exe program)
Make sure you have a svn.exe client software in your PATH. I assume that TortoiseSVN ships with the subversion command line tool (svn.exe). Expand your PATH environment accordingly and it'll work.
To verify, open a command promt and type "svn". This should not error but run the svn tool instead.
With regards, Morten.
-
you don't need that svn.exe to build !
I get that error all the time. However Code::Blocks never stops building....
That's the strangest thing that for you it seems to stop building.
-
you don't need that svn.exe to build !
In fact, that's true (I don't have svn.exe, too). It could be he also hasn't the hidden .svn folder anymore. Thus the autorevision tool cannot retrieve this info from svn AND not from the local file... this *could* be another reason...?!
-
you don't need that svn.exe to build !
I get that error all the time. However Code::Blocks never stops building....
That's the strangest thing that for you it seems to stop building.
I had the same problem about one month ago, then installed svn.exe ad all is ok.
Don't know why :lol:
Btw, Tortoise svn don't have anymore the command line 'svn.exe' bundled; I think in the past it had it.
Ciao
Max
-
'svn' n'est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commandes.
Tout à fait normal :)
Error: failed retrieving version information.
Dingue!
The solution to this riddle is easy: You are using the Windows-moronised form of TortoiseSVN ;) Unluckily, making it work for you requires you to install the commandline svn client for now.
To explain:
autorevision tries to get the revision information from svn (which is the canonical way of doing it). If that fails, it will open the file ./.svn/entries and parse that. It's a nasty thing, but it does the job.
TortoiseSVN does not come with svn.exe, so this will certainly fail. Strange enough, opening the entries file fails, too. You wonder why.
This problem is a good example why you should never do things like parsing something if you can use a canonical tool for it (and that's why autorevision first tries to query svn).
Now here is the problem: Some versions of Windows are too darn stupid to work with a directory called .svn. As a nasty workaround hack, TortoiseSVN released a special moronised version for Windows that would use _svn instead of .svn. Unluckily, this actually worked out so fine (apart from being non-standard) that it was made an official feature. Subversion can now store its files in either .svn or _svn, and you have no way of knowing which one, except if you manually parse the config file or if you test both locations...
I shall add a "fix" for this to autorevision one day (i.e. check both possible locations).
Until then, sorry for the inconvenience, but you have to install the commandline client too (and have to put it into PATH).
-
@Thomas : interesting story, oh you gotta to love the Winblows platform ...
-
I've added that "fix" today, too.
-
Thank's for theses responses, but ...
I have installed svn 1.3.2 (Command line SVN isn't part of Tortoise)
I have checked that I have the .SVN folder
and now I have this message :
-------------- Build: sdk in Code::Blocks ---------------
Running target pre-build steps
tools/autorevision/autorevision +wx +int +t . sdk/autorevision.h
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
Warning: could not open input file.
This does not seem to be a revision controlled project.
Revision set to 0.
But the compilation don't stop ... :lol:
-
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
I still use version 1.2.3, and it does not complain being too old.
But the compilation don't stop ... :lol:
Yes, that's deliberate. Otherwise one could not build Code::Blocks from a tarball.
I don't know what's screwed up though, something must be messed in your working copy if even svn complains about it.