[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] svn build fails on pygame.math extension



Hi Tristan

Thanks for reporting this.
A typical rookie mistake on my side. I simply forgot to add the doc
files to the svn repository. should be fixed now (rev 2685).
I also removed the unused variables to cut back on those warnings.

please report any further problems you might encounter.


yours
//Lorenz


Tristan Matthews wrote:
Hello,

I tried to build a  fresh checkout of the trunk on Ubuntu 8.10, but it
seems the math extension is causing trouble, the most obvious problem
being that doc/math_doc.h doesn't exist.

Here's the output after running setup.py install:

building 'pygame.math' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -D_REENTRANT -I/usr/X11R6/include
-I/usr/include/SDL -I/usr/include/python2.5 -c src/math.c -o
build/temp.linux-i686-2.5/src/math.o
src/math.c:21:26: error: doc/math_doc.h: No such file or directory
src/math.c: In function ‘vector_pos’:
src/math.c:573: warning: unused variable ‘i’
src/math.c: In function ‘vector_str’:
src/math.c:1105: warning: too many arguments for format
src/math.c: In function ‘vector2_init’:
src/math.c:1328: warning: unused variable ‘buffer’
src/math.c:1309: warning: unused variable ‘z’
src/math.c: At top level:
src/math.c:1631: error: ‘DOC_PYGAMEMATHVECTOR2’ undeclared here (not
in a function)
src/math.c: In function ‘vector3_init’:
src/math.c:1726: warning: unused variable ‘buffer’
src/math.c: In function ‘vector3_angle_to’:
src/math.c:2086: warning: unused variable ‘i’
src/math.c: At top level:
src/math.c:2277: error: ‘DOC_PYGAMEMATHVECTOR3’ undeclared here (not in a fun
on)
src/math.c: In function ‘vector_slerp’:
src/math.c:2515: warning: unused variable ‘steps’
src/math.c: In function ‘vector_lerp’:
src/math.c:2777: warning: unused variable ‘steps’
src/math.c: In function ‘vector_elementwiseproxy_pow’:
src/math.c:3168: warning: unused variable ‘vec’
src/math.c: In function ‘vector_elementwiseproxy_pos’:
src/math.c:3257: warning: unused variable ‘i’
src/math.c: In function ‘initmath’:
src/math.c:3479: error: ‘DOC_PYGAMEMATH’ undeclared (first use in this functi
src/math.c:3479: error: (Each undeclared identifier is reported only once
src/math.c:3479: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

Best,
Tristan