project-navigation
Personal tools

Author Topic: Linux SVN compilation  (Read 1945 times)

erzapito

  • Guest
Linux SVN compilation
« on: October 27, 2006, 03:34:37 pm »
I'm trying to compile the SVN version on linux and I get this error:

 * [UFO] src/qcommon/common.c
src/qcommon/common.c:38:31: error: ../../svnversion.h: No existe el fichero ó directorio <-- "File not found"
src/qcommon/common.c: In function ‘Mem_TagMalloc’:
src/qcommon/common.c:1253: warning: format ‘%i’ expects type ‘int’, but argument 3 has type ‘size_t’
make: *** [debug-linux-gnu-x86_64/client/qcommon/common.o] Error 1

Any idea why this happens?

ubequitz

  • Guest
Linux SVN compilation
« Reply #1 on: October 27, 2006, 07:34:37 pm »
erzapito,

It looks like the build system might not be creating this file at the moment even though it is needed for compilation. As a work-around, create a file svnversion.h in your root trunk directory with a single line as the content:
Code: [Select]
#define SVN "4557+"

You can safely ignore any warnings generated during compile.

PS: feel free to drop by on our IRC chat channel: #ufo:ai on server freenode if you run into more issues, there is quite often someone there who can help (or failing that stick to these forums).

ubequitz

  • Guest
Linux SVN compilation
« Reply #2 on: October 28, 2006, 01:59:40 pm »
Our build system expert has now fixed it so svnversion.h is no longer required to compile the game. So ignore the above workaround, SVN up and try again :)