Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#21 Compilation error

open
nobody
None
5
2005-10-12
2005-10-12
Anonymous
No

Hi guys. I'm shopping around for a new programming
platform to do some prototyping of a 3D sketch tool
I've been working on. I've been using Java2D for the
(2D-only) first version of it, and have decided that
Java is too unweildy to throw together prototypes. So
as I move forward to the 3D version of the prototype,
I'd like to use a better prototyping language.

I'm brand new to Python, so unfortunately I don't even
know enough to properly parse this error. It looks to
me like it's in C code somewhere. In any event, I can't
even get pyopengl to compile, so I can't evaluate it's
abilities. I've tried three different methods of
installing it (via fink, via direct downloads as per
the installation instructions web page, and via
darwinports) and it won't compile anywhere.

I'm including the last part of the output from the
compile command (setup.py install, I think). I don't
know which lines are relevent so I'll just paste in
everything that looks error-ish.

I'm on OSX 10.4.2. The following output is from
darwinports but I get a similar problem when trying to
compile manually.

gabe

---> Building py-opengl with target build
Error: Target com.apple.build returned: shell command
"cd
"/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_python_py-opengl/work/PyOpenGL-2.0.1.09"
&& /opt/local/bin/python2.4 setup.py build" returned
error 1
Command output: creating
build/temp.darwin-8.2.0-Power_Macintosh-2.4/src/interface_util
gcc -fno-strict-aliasing -Wno-long-double
-no-cpp-precomp -mno-fused-madd -fno-common -fno-common
-dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-DCGL_PLATFORM
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-I/System/Library/Frameworks/OpenGL.framework/Headers
-I/System/Library/Frameworks/GLUT.framework/Headers
-I/System/Library/Frameworks/Kernel.framework/Headers
-I/System/Library/Frameworks/OpenGL.framework/Headers
-I/System/Library/Frameworks/GLUT.framework/Headers
-I/System/Library/Frameworks/Kernel.framework/Headers
-c src/interface_util/interface_util.c -o
build/temp.darwin-8.2.0-Power_Macintosh-2.4/src/interface_util/interface_util.o
In file included from
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:155,
from
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
from src/interface_util/../config.h:1,
from
src/interface_util/interface_util.c:1:
/System/Library/Frameworks/Kernel.framework/Headers/sys/stat.h:225:
error: field 'st_atimespec' has incomplete type
/System/Library/Frameworks/Kernel.framework/Headers/sys/stat.h:226:
error: field 'st_mtimespec' has incomplete type
/System/Library/Frameworks/Kernel.framework/Headers/sys/stat.h:227:
error: field 'st_ctimespec' has incomplete type
src/interface_util/interface_util.c: In function
'__PyObject_FromUnsignedCharArray':
src/interface_util/interface_util.c:126: warning:
pointer targets in passing argument 1 of
'PyString_FromStringAndSize' differ in signedness
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsFloatArray':
src/interface_util/interface_util.c:711: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsDoubleArray':
src/interface_util/interface_util.c:714: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsCharArray':
src/interface_util/interface_util.c:717: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsUnsignedCharArray':
src/interface_util/interface_util.c:720: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsShortArray':
src/interface_util/interface_util.c:723: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsUnsignedShortArray':
src/interface_util/interface_util.c:726: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsIntArray':
src/interface_util/interface_util.c:729: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: In function
'NonNumeric_PyObject_AsUnsignedIntArray':
src/interface_util/interface_util.c:732: warning:
suggest parentheses around assignment used as truth value
src/interface_util/interface_util.c: At top level:
src/interface_util/interface_util.c:793: warning:
function declaration isn't a prototype
error: command 'gcc' failed with exit status 1

~ $

Discussion