[PyOpenGL-Devel] [ pyopengl-Bugs-716481 ] Build Failures Solaris 8
Brought to you by:
mcfletch
From: SourceForge.net <no...@so...> - 2009-03-25 13:23:07
|
Bugs item #716481, was opened at 2003-04-06 18:17 Message generated for change (Settings changed) made by dhighley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=716481&group_id=5988 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: build Group: None >Status: Deleted Resolution: None Priority: 5 Private: No Submitted By: David Highley (dhighley) Assigned to: Nobody/Anonymous (nobody) Summary: Build Failures Solaris 8 Initial Comment: I have made serveral attempts to patch up the build process so I can build PyOpenGL 2.0.0.44 on a Sparc Solaris 8 platform. First failure is due to incorrectly identitfying the platform and having no config file for Solairs. For some reason it get identified as "TvoPT5". So I copy the linux config file to that name, edit it and proceed with the build. Then the build runs for a while outputing tons of warnings before it dies compiling the file: gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/include/X11 -Isrc/gle/src -I/usr/local/include/python2.2 -c src/interface/GL.EXT.vertex_array.c -o build/temp.solaris-2.8-sun4u-2.2/GL.EXT.vertex_array.o In file included from src/interface/GL.EXT.vertex_array.c:6: src/interface/GL.EXT.vertex_array.0110.inc: In function `SWIG_ConvertPtr': src/interface/GL.EXT.vertex_array.0110.inc:361: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.EXT.vertex_array.0110.inc:364: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.EXT.vertex_array.0110.inc:380: warning: suggest explicit braces to avoid ambiguous `else' In file included from src/interface/GL.EXT.vertex_array.c:6: src/interface/GL.EXT.vertex_array.0110.inc: At top level: src/interface/GL.EXT.vertex_array.0110.inc:636: warning: function declaration isn't a prototype src/interface/GL.EXT.vertex_array.0110.inc:682: warning: function declaration isn't a prototype src/interface/GL.EXT.vertex_array.0110.inc: In function `_glTexCoordPointerEXT': src/interface/GL.EXT.vertex_array.0110.inc:806: `GL_TEXTURE_COORD_ARRAY_EXT' undeclared (first use in this function) src/interface/GL.EXT.vertex_array.0110.inc:806: (Each undeclared identifier is reported only once src/interface/GL.EXT.vertex_array.0110.inc:806: for each function it appears in.) src/interface/GL.EXT.vertex_array.0110.inc: At top level: src/interface/GL.EXT.vertex_array.0110.inc:849: warning: function declaration isn't a prototype error: command 'gcc' failed with exit status 1 So I throw in a define: #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 Only to have it die later with parsing errors. Of course I need this to get wxPython to build!!S ---------------------------------------------------------------------- >Comment By: David Highley (dhighley) Date: 2009-03-25 06:22 Message: No longer of need. ---------------------------------------------------------------------- Comment By: David Highley (dhighley) Date: 2003-04-07 14:41 Message: Logged In: YES user_id=428383 I found and applied the changes recommended by Todd Alan Pitts to building Python. Inaddition to the changes he recommended I also modified the LDFLAGS macro in the Makefile to add: -L/usr/local/lib -R/usr/local/lib Inspite of these changes I still am not able to get PyOpenGL to build. It fails as before with GL_TEXTURE_COORD_ARRAY_EXT not defined and it fails in this location: gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DGLX_PLATFORM -I/usr/include -I/usr/local/include -I/usr/include/X11 -Isrc/gle/src -I/usr/local/include/python2.2 -c src/interface/GL.SUN.triangle_list.c -o build/temp.solaris-2.8-sun4u-2.2/GL.SUN.triangle_list.o In file included from src/interface/GL.SUN.triangle_list.c:6: src/interface/GL.SUN.triangle_list.0106.inc: In function `SWIG_ConvertPtr': src/interface/GL.SUN.triangle_list.0106.inc:361: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.SUN.triangle_list.0106.inc:364: warning: suggest explicit braces to avoid ambiguous `else' src/interface/GL.SUN.triangle_list.0106.inc:380: warning: suggest explicit braces to avoid ambiguous `else' In file included from src/interface/GL.SUN.triangle_list.c:6: src/interface/GL.SUN.triangle_list.0106.inc: At top level: src/interface/GL.SUN.triangle_list.0106.inc:636: warning: function declaration isn't a prototype src/interface/GL.SUN.triangle_list.0106.inc:682: warning: function declaration isn't a prototype src/interface/GL.SUN.triangle_list.0106.inc:731: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:732: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:733: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:734: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:735: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:736: parse error before '->' token src/interface/GL.SUN.triangle_list.0106.inc:779: warning: function declaration isn't a prototype src/interface/GL.SUN.triangle_list.0106.inc: In function `_wrap_glReplacementCodeuivSUN': src/interface/GL.SUN.triangle_list.0106.inc:868: warning: passing arg 2 of pointer to function discards qualifiers from pointer target type src/interface/GL.SUN.triangle_list.0106.inc: In function `_wrap_glReplacementCodeusvSUN': src/interface/GL.SUN.triangle_list.0106.inc:890: warning: passing arg 2 of pointer to function discards qualifiers from pointer target type src/interface/GL.SUN.triangle_list.0106.inc: In function `_wrap_glReplacementCodeubvSUN': src/interface/GL.SUN.triangle_list.0106.inc:912: warning: passing arg 2 of pointer to function discards qualifiers from pointer target type error: command 'gcc' failed with exit status 1 ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2003-04-07 10:40 Message: Logged In: YES user_id=34901 Um, what I was saying is, you can build wxPython without PyOpenGL (not that you can build PyOpenGL w/out wxPython, though that's certainly true). That is, unless you need the wxPython OpenGL widget (wxGLCanvas), you can simply configure wxPython and wxWindows to not build in the wxGLCanvas support. ---------------------------------------------------------------------- Comment By: David Highley (dhighley) Date: 2003-04-07 08:36 Message: Logged In: YES user_id=428383 Actually I do need wxPython to get Bit Torrent to run. I will try the users group list to see if anyone has had success in getting a build on a Solaris platform. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2003-04-07 08:20 Message: Logged In: YES user_id=34901 You _don't_ actually need it to build wxPython unless for some reason you need the wxGLCanvas. Simply undefine the GLCanvas-enabling flag (you'll have to ask on the wxPython list to find out where that is). It almost sounds as though your system is using a very old or feature-poor OpenGL library, the vertex array extension is, if I recall correctly, an OpenGL 1.1 feature. I don't, however, have a Sun machine on which to test. If you really are interested in PyOpenGL, then please post a request to the PyOpenGL-users lists asking whether people with your particular architecture, OS, and OpenGL library version have been able to build. Aside: I'd thought that a failing extension build wouldn't cause a problem... will have to look into that at some point. You might try the CVS or 2.0.1 versions as well, I doubt there's been any change in this area, but there's always a remote possibility. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=716481&group_id=5988 |