# SDL-2.0: HG configure: error

**URL:** <https://discourse.libsdl.org/t/sdl-2-0-hg-configure-error/18921>\
**Category:** SDL Development\
**Created:** [May 11, 2012, 10:37pm UTC](https://discourse.libsdl.org/t/sdl-2-0-hg-configure-error/18921 "2012-05-11T22:37:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greno](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/greno/32/2373_2.png) [@greno](https://discourse.libsdl.org/u/greno)\
**Post date:** [May 11, 2012, 10:37pm UTC](https://discourse.libsdl.org/t/sdl-2-0-hg-configure-error/18921/1 "2012-05-11T22:37:14Z")

</div>

When we’re checking out SDL-2.0 from HG it would be nice if we could not have this error about generated header files.

Code:  
configure: error:  
\*\*\* When building from Mercurial you should configure and build in a  
separate directory so you don’t clobber SDL\_config.h, SDL\_revision.h

Generated files generally should not be checked into the VCS.

Right now I have to hack the configure to allow the build.

.

---

<div class="post-metadata">

**Author:** ![marcusva](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@marcusva](https://discourse.libsdl.org/u/marcusva)\
**Post date:** [May 11, 2012, 10:48pm UTC](https://discourse.libsdl.org/t/sdl-2-0-hg-configure-error/18921/2 "2012-05-11T22:48:12Z")

</div>

On, Sat May 12, 2012, greno wrote:

> When we’re checking out SDL-2.0 from HG it would be nice if we could not have this error about generated header files.
> 
> Code:  
> configure: error:  
> \*\*\* When building from Mercurial you should configure and build in a  
> separate directory so you don’t clobber SDL\_config.h, SDL\_revision.h
> 
> Generated files generally should not be checked into the VCS.
> 
> Right now I have to hack the configure to allow the build.
> 
> .

Read the message carefully, afterwards create e.g. a directory named  
build, change into it and call configure from there

~/devel/SDL# mkdir build  
~/devel/SDL# cd build  
~/devel/SDL/build# …/configure  
…

and life is good again :-).

Regards  
Marcus  
-------------- next part --------------  
A non-text attachment was scrubbed…  
Name: not available  
Type: application/pgp-signature  
Size: 196 bytes  
Desc: not available  
URL: [http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120512/d4f6ff94/attachment.pgp](http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120512/d4f6ff94/attachment.pgp)

---

<div class="post-metadata">

**Author:** ![greno](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/greno/32/2373_2.png) [@greno](https://discourse.libsdl.org/u/greno)\
**Post date:** [May 11, 2012, 11:04pm UTC](https://discourse.libsdl.org/t/sdl-2-0-hg-configure-error/18921/3 "2012-05-11T23:04:55Z")

</div>

Marcus von Appen wrote:

> On, Sat May 12, 2012  
> Read the message carefully, afterwards create e.g. a directory named  
> build, change into it and call configure from there
> 
> ~/devel/SDL# mkdir build  
> ~/devel/SDL# cd build  
> ~/devel/SDL/build# …/configure  
> …
> 
> and life is good again :-).
> 
> Regards  
> Marcus

Well, it’s just tolerable. 🙂

Now good, that would be not needing to do this.

.
