Support Requests item #484774, was opened at 2001-11-23 00:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=205988&aid=484774&group_id=5988
Category: build
Group: v2.0
Status: Open
Priority: 5
Submitted By: John A. Turner (turner)
Assigned to: Tarn Weisner Burton (twburton)
Summary: cygwin build problems
Initial Comment:
thought I'd try PyOpenGL2 on win2k/cygwin
using cygwin 1.3.5 and the cygwin port of python 2.1.1
and a fresh CVS checkout of PyOpenGL2
first copied config/win32.cfg to config/cygwin.cfg,
since OpenGL progs compiled with cygwin's gcc use the
normal win32 libs (opengl32, glu32, etc.)
here's what the first bit of setup reports:
PyOpenGL 2.0.1.45.a1 setup
System configuration:
Platform = cygwin
GL Platform = WGL
Numeric = 20.2.2
Build Togl = yes
1. first prob was that I didn't have SWIG, so I got:
swig -version
unable to execute swig: No such file or directory
swig1.3 -version
unable to execute swig1.3: No such file or directory
warning: build_w: Can't find SWIG, will just have to
do with the existing wrapper source.
which would likely be ok except that soon after:
cc -I/usr/include/python2.1/Numeric -c _configtest.c -
o _configtest.o
unable to execute cc: No such file or directory
I didn't know how to force setup to use gcc rather than
cc, so I took the easy way out and copied
/usr/bin/gcc.exe to /usr/bin/cc.exe
that at least allowed things to progress...
2. next, saw lots of warnings about missing __init.py__
files, most in the Demo subdir
3. finally, failed with:
running build_clib
building 'interface_util' library
creating build/temp.cygwin-1.3.5-i686-2.1
gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -
DWGL_PLATFORM -DNUMERIC -I/usr/include/python2.1 -
I/usr/include/python2.1/Numeric -
I/usr/include/python2.1/Numeric -c
src/interface_util/interface_util.c -o
build/temp.cygwin-1.3.5-i686-2.1/interface_util.o
src/interface_util/interface_util.c: In function
`NonNumeric_PyObject_AsFloatArray':
src/interface_util/interface_util.c:698: 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:701: 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:704: 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:707: 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:710: 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:713: 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:716: 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:719: warning:
suggest parentheses around assignment used as truth
value
src/interface_util/interface_util.c: At top level:
src/interface_util/interface_util.c:780: warning:
function declaration isn't a prototype
gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -
DWGL_PLATFORM -DNUMERIC -I/usr/include/python2.1 -
I/usr/include/python2.1/Numeric -
I/usr/include/python2.1/Numeric -c
src/interface_util/platform.c -o build/temp.cygwin-
1.3.5-i686-2.1/platform.o
src/interface_util/platform.c:4: warning: function
declaration isn't a prototype
src/interface_util/platform.c: In function
`GetPlatformExtensionsString':
src/interface_util/platform.c:7: warning: function
declaration isn't a prototype
ar -cr build/temp.cygwin-1.3.5-i686-
2.1/libinterface_util.a build/temp.cygwin-1.3.5-i686-
2.1/interface_util.o build/temp.cygwin-1.3.5-i686-
2.1/platform.o
running build_ext
building 'GL.ARB.matrix_palette' extension
error: file 'src/interface/GL.ARB.matrix_palette.c'
does not exist
any suggestions?
thanks in advance...
-JT
----------------------------------------------------------------------
>Comment By: Tarn Weisner Burton (twburton)
Date: 2001-11-28 13:37
Message:
Logged In: YES
user_id=21784
This is same problem I had. All the warnings are harmless.
It builds fine under GCC on Linux. GCC 3.0 might fix this,
but probably not. Have you tried using Mingw32? The
cygwin build is going to be really slow anyways.
----------------------------------------------------------------------
Comment By: John A. Turner (turner)
Date: 2001-11-28 13:17
Message:
Logged In: YES
user_id=20477
gack - sorry
ok, got and built 1.3a5 - now gcc is horking:
gcc -g -O2 -Wall -Wstrict-prototypes -DUSE_DL_IMPORT -
DWGL_PLATFORM -DNUMERIC -I/usr/include/python2.1/Numeric -
I/usr/include/python2.1 -c
src/interface/GL.ARB.multitexture.c -o build/temp.cygwin-
1.3.5-i686-2.1/GL.ARB.multitexture.o
In file included from src/interface/GL.ARB.multitexture.c:8:
src/interface/GL.ARB.multitexture.0101.inc: In function
`SWIG_UnpackData':
src/interface/GL.ARB.multitexture.0101.inc:338: warning:
`uu' might be used uninitialized in this function
src/interface/GL.ARB.multitexture.0101.inc: In function
`SWIG_ConvertPtr':
src/interface/GL.ARB.multitexture.0101.inc:404: warning:
suggest explicit braces to avoid ambiguous `else'
src/interface/GL.ARB.multitexture.0101.inc:407: warning:
suggest explicit braces to avoid ambiguous `else'
src/interface/GL.ARB.multitexture.0101.inc:413: warning:
suggest explicit braces to avoid ambiguous `else'
src/interface/GL.ARB.multitexture.0101.inc: At top level:
src/interface/GL.ARB.multitexture.0101.inc:700: warning:
function declaration isn't a prototype
src/interface/GL.ARB.multitexture.0101.inc:748: warning:
function declaration isn't a prototype
gcc: Internal compiler error: program cc1 got fatal signal
11
error: command 'gcc' failed with exit status 1
this is cygwin 1.3.5 with gcc 2.95.3-5 - should I try
building gcc 3.0.2 or a snapshot or something?
----------------------------------------------------------------------
Comment By: Tarn Weisner Burton (twburton)
Date: 2001-11-28 06:09
Message:
Logged In: YES
user_id=21784
As I said in my previous comments, You need SWIG 1.3a5.
SWIG 1.3.9 won't work.
----------------------------------------------------------------------
Comment By: John A. Turner (turner)
Date: 2001-11-27 22:39
Message:
Logged In: YES
user_id=20477
ok, went ahead and grabbed SWIG 1.3.9 and built (no probs),
then cvs-upped PyOpenGL2 and tried again
this time it choked here:
Building wrappers for GL.__init__
Generating shadow version selector
Generating C version selector
Generating wrappers for API version 0x0101
swig -python -Iinterface -shadow -DAPI_VERSION=257 -o
src/interface/GL.__init___.0101.inc interface/GL/__init__.i
Syntax error
interface/GL/__init__.i:1006. Syntax error in input.
----------------------------------------------------------------------
Comment By: Tarn Weisner Burton (twburton)
Date: 2001-11-23 08:10
Message:
Logged In: YES
user_id=21784
You need SWIG 1.3a5 to build out of CVS. The "cc" problem
has been fixed in CVS, but the build still doesn't complete
on my system due to an internal compiler error. Before you
do a CVS checkout be sure to move your cygwin.cfg file out
of the way, since there is one in CVS now.
There is also a complete source code dist (no need for
SWIG) at http://pyopengl.sf.net/ftp/PyOpenGL-
2.0.1.46.a1.tar.gz
----------------------------------------------------------------------
Comment By: John A. Turner (turner)
Date: 2001-11-23 00:29
Message:
Logged In: YES
user_id=20477
ugh - sorry about the formatting of the report - hope it
is understandable - if not let me know and I'll upload files
with the requisite info...
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=205988&aid=484774&group_id=5988
|