SDL2.0.3 building,but I have error,help me!

run ./configure

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

Did you actually read the error message? :stuck_out_tongue:

$ mkdir build
$ cd build
$ …/configure

Cheers,
DanielAm 21.08.2014 04:28, schrieb goxl:

run ./configure

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

To be fair that error message is pretty non-intuitive (building in a
separate directory is the norm for CMake, but you practically never do
it with configure). I’ve seen the suggestion of removing the Mercurial
specific files instead of building in a separate directory.

I think the only purpose of this error message is to prevent you from
screwing up the build scripts if you plan to push back the changes
into the repo (since configure will generate build data specific to
your system and you don’t want that in such a case).