Author Topic: Compiling CodeBlocks  (Read 6941 times)

Offline grandzebu

  • Multiple posting newcomer
  • *
  • Posts: 12
Compiling CodeBlocks
« 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

mdelfede

  • Guest
Re: Compiling CodeBlocks
« Reply #1 on: August 09, 2006, 01:47:24 am »
............
-------------- 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

sethjackson

  • Guest
Re: Compiling CodeBlocks
« Reply #2 on: August 09, 2006, 03:23:30 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

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. ;)

mdelfede

  • Guest
Re: Compiling CodeBlocks
« Reply #3 on: August 09, 2006, 12:39:42 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Compiling CodeBlocks
« Reply #4 on: August 09, 2006, 01:12:06 pm »
'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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Compiling CodeBlocks
« Reply #5 on: August 09, 2006, 01:19:55 pm »
you don't need that svn.exe to build !
Quote
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Compiling CodeBlocks
« Reply #6 on: August 09, 2006, 01:24:11 pm »
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...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

mdelfede

  • Guest
Re: Compiling CodeBlocks
« Reply #7 on: August 09, 2006, 01:30:34 pm »
you don't need that svn.exe to build !
Quote
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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiling CodeBlocks
« Reply #8 on: August 09, 2006, 01:46:41 pm »
'svn' n'est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commandes.
Tout à fait normal :)
Quote
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).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Compiling CodeBlocks
« Reply #9 on: August 09, 2006, 01:50:24 pm »
@Thomas : interesting story, oh you gotta to love the Winblows platform ...

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiling CodeBlocks
« Reply #10 on: August 09, 2006, 08:29:13 pm »
I've added that "fix" today, too.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline grandzebu

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Compiling CodeBlocks
« Reply #11 on: August 10, 2006, 01:22:41 am »
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:

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Compiling CodeBlocks
« Reply #12 on: August 10, 2006, 09:55:58 am »
Quote
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.

Quote
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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."