Thread: [PyOpenGL-Devel] [ pyopengl-Bugs-544084 ] CVS HEAD does not build (OS-X)
Brought to you by:
mcfletch
From: <no...@so...> - 2002-12-28 05:51:43
|
Bugs item #544084, was opened at 2002-04-15 07:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) >Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- >Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 00:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 10:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 09:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |
From: <no...@so...> - 2002-12-29 22:35:16
|
Bugs item #544084, was opened at 2002-04-15 13:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- >Comment By: Jack Jansen (jackjansen) Date: 2002-12-29 23:35 Message: Logged In: YES user_id=45365 Sorry for the delay, but here is the patch that I use to make PyOpenGL build on MacOSX. This is with Python 2.3a0 (i.e. the CVS version), MacOSX 10.2.3, developer tools Dec 2002 (but that shouldn't matter much) and swig 1.3.13 (this is very important). The patch to setup.py is needed for the current state of distutils in CVS, it may not be needed in the future. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 06:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 16:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 15:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |
From: <no...@so...> - 2002-12-30 01:05:34
|
Bugs item #544084, was opened at 2002-04-15 07:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- >Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-29 20:05 Message: Logged In: YES user_id=34901 Patch looks fine to me, I was expecting something much larger. Jack, can you explain what the: self.output_dir = "" # Try by Jack in config.py line is trying to do and/or why it is needed? The comment isn't really that helpful ;) . ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-29 17:35 Message: Logged In: YES user_id=45365 Sorry for the delay, but here is the patch that I use to make PyOpenGL build on MacOSX. This is with Python 2.3a0 (i.e. the CVS version), MacOSX 10.2.3, developer tools Dec 2002 (but that shouldn't matter much) and swig 1.3.13 (this is very important). The patch to setup.py is needed for the current state of distutils in CVS, it may not be needed in the future. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 00:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 10:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 09:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |
From: <no...@so...> - 2002-12-30 10:42:17
|
Bugs item #544084, was opened at 2002-04-15 13:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- >Comment By: Jack Jansen (jackjansen) Date: 2002-12-30 11:42 Message: Logged In: YES user_id=45365 The "self.output_dir = "" # Try by Jack" is a hack, and I'm not sure whether it is needed, or will be needed in the future. Distutils in CVS has changed to use the directory part of source files to create the path of the .o file. This was in response to an SF bug report that you couldn't have two source files of the same name in a single distribution, even if they were in different directories. Unfortunately this fix broke building PyOpenGL. After I added this line things work again for me, but it doesn't really look like the correct fix. The correct course of action would probably be to comment this out, test building PyOpenGL with CVS python without it, and submitting a Python bug report if it doesn't build. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-30 02:05 Message: Logged In: YES user_id=34901 Patch looks fine to me, I was expecting something much larger. Jack, can you explain what the: self.output_dir = "" # Try by Jack in config.py line is trying to do and/or why it is needed? The comment isn't really that helpful ;) . ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-29 23:35 Message: Logged In: YES user_id=45365 Sorry for the delay, but here is the patch that I use to make PyOpenGL build on MacOSX. This is with Python 2.3a0 (i.e. the CVS version), MacOSX 10.2.3, developer tools Dec 2002 (but that shouldn't matter much) and swig 1.3.13 (this is very important). The patch to setup.py is needed for the current state of distutils in CVS, it may not be needed in the future. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 06:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 16:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 15:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |
From: SourceForge.net <no...@so...> - 2003-02-12 06:20:31
|
Bugs item #544084, was opened at 2002-04-15 07:02 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jack Jansen (jackjansen) Assigned to: Nobody/Anonymous (nobody) Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- Comment By: Bob Ippolito (etrepum) Date: 2003-02-12 01:27 Message: Logged In: YES user_id=139309 I have created a new patch (as soon as I figure out how to upload it), that allows PyOpenGL to build on stock python 2.2 for OS X (but requires the Makefile.jaguar Python application bundle to be actually useful).. it works around (at least) three major bugs that make it hard to compile PyOpenGL: (1) stock python 2.2 can't have two C extensions with the same filename, so I renamed the __init___.so files to something else (2) OS X GLUT changes the working directory on glutInit (3) OS X requires ranlib for static libraries To compile, one must also change /usr/lib/python2.2/config/Makefile.. -arch i386 needs to be removed and this needs to be added (in place of their existing definitions): LDSHARED= $(CC) $(LDFLAGS) -bundle -bundle_loader /usr/bin/python BLDSHARED= $(CC) $(LDFLAGS) -bundle -bundle_loader /usr/bin/python The makefile changes fix problems regarding the dynamic linker in OS X, where exported symbols from multiple modules that use SWIG conflict when linked with flat_namespace... using bundle_loader and not flat_namespace uses two level namespaces and makes it happy. It should not harm compilation on any other platform, and it integrates Jack's changes as well. This is meant for CVS head of PyOpenGL with no additional changes. Also, I make have changed tabs to 4-spaces in some of these files.. sorry. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-30 05:42 Message: Logged In: YES user_id=45365 The "self.output_dir = "" # Try by Jack" is a hack, and I'm not sure whether it is needed, or will be needed in the future. Distutils in CVS has changed to use the directory part of source files to create the path of the .o file. This was in response to an SF bug report that you couldn't have two source files of the same name in a single distribution, even if they were in different directories. Unfortunately this fix broke building PyOpenGL. After I added this line things work again for me, but it doesn't really look like the correct fix. The correct course of action would probably be to comment this out, test building PyOpenGL with CVS python without it, and submitting a Python bug report if it doesn't build. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-29 20:05 Message: Logged In: YES user_id=34901 Patch looks fine to me, I was expecting something much larger. Jack, can you explain what the: self.output_dir = "" # Try by Jack in config.py line is trying to do and/or why it is needed? The comment isn't really that helpful ;) . ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-29 17:35 Message: Logged In: YES user_id=45365 Sorry for the delay, but here is the patch that I use to make PyOpenGL build on MacOSX. This is with Python 2.3a0 (i.e. the CVS version), MacOSX 10.2.3, developer tools Dec 2002 (but that shouldn't matter much) and swig 1.3.13 (this is very important). The patch to setup.py is needed for the current state of distutils in CVS, it may not be needed in the future. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 00:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 10:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 09:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |
From: SourceForge.net <no...@so...> - 2003-10-26 00:22:54
|
Bugs item #544084, was opened at 2002-04-15 07:02 Message generated for change (Comment added) made by mcfletch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 >Category: build >Group: v2.0.1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Jack Jansen (jackjansen) >Assigned to: Mike C. Fletcher (mcfletch) Summary: CVS HEAD does not build (OS-X) Initial Comment: I checked out PyOpenGL from CVS (because the most recent distribution doesn't support Mac OS X yet), but it doesn't build. First it runs into a shallow error (missing semicolon) in interface/WGL/util.inc, but then it runs into serious problems compiling GL.ARB.matrix_palette.c: lots of undeclared variables, etc. Tried the whole process again on Linux (to make sure it isn't a Mac OS specific problem) with exactly te same results. ---------------------------------------------------------------------- >Comment By: Mike C. Fletcher (mcfletch) Date: 2003-10-25 20:22 Message: Logged In: YES user_id=34901 We have at least one report of building w/out problem on OS-X, so I'm going to call this one closed. ---------------------------------------------------------------------- Comment By: Bob Ippolito (etrepum) Date: 2003-02-12 01:27 Message: Logged In: YES user_id=139309 I have created a new patch (as soon as I figure out how to upload it), that allows PyOpenGL to build on stock python 2.2 for OS X (but requires the Makefile.jaguar Python application bundle to be actually useful).. it works around (at least) three major bugs that make it hard to compile PyOpenGL: (1) stock python 2.2 can't have two C extensions with the same filename, so I renamed the __init___.so files to something else (2) OS X GLUT changes the working directory on glutInit (3) OS X requires ranlib for static libraries To compile, one must also change /usr/lib/python2.2/config/Makefile.. -arch i386 needs to be removed and this needs to be added (in place of their existing definitions): LDSHARED= $(CC) $(LDFLAGS) -bundle -bundle_loader /usr/bin/python BLDSHARED= $(CC) $(LDFLAGS) -bundle -bundle_loader /usr/bin/python The makefile changes fix problems regarding the dynamic linker in OS X, where exported symbols from multiple modules that use SWIG conflict when linked with flat_namespace... using bundle_loader and not flat_namespace uses two level namespaces and makes it happy. It should not harm compilation on any other platform, and it integrates Jack's changes as well. This is meant for CVS head of PyOpenGL with no additional changes. Also, I make have changed tabs to 4-spaces in some of these files.. sorry. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-30 05:42 Message: Logged In: YES user_id=45365 The "self.output_dir = "" # Try by Jack" is a hack, and I'm not sure whether it is needed, or will be needed in the future. Distutils in CVS has changed to use the directory part of source files to create the path of the .o file. This was in response to an SF bug report that you couldn't have two source files of the same name in a single distribution, even if they were in different directories. Unfortunately this fix broke building PyOpenGL. After I added this line things work again for me, but it doesn't really look like the correct fix. The correct course of action would probably be to comment this out, test building PyOpenGL with CVS python without it, and submitting a Python bug report if it doesn't build. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-29 20:05 Message: Logged In: YES user_id=34901 Patch looks fine to me, I was expecting something much larger. Jack, can you explain what the: self.output_dir = "" # Try by Jack in config.py line is trying to do and/or why it is needed? The comment isn't really that helpful ;) . ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-12-29 17:35 Message: Logged In: YES user_id=45365 Sorry for the delay, but here is the patch that I use to make PyOpenGL build on MacOSX. This is with Python 2.3a0 (i.e. the CVS version), MacOSX 10.2.3, developer tools Dec 2002 (but that shouldn't matter much) and swig 1.3.13 (this is very important). The patch to setup.py is needed for the current state of distutils in CVS, it may not be needed in the future. ---------------------------------------------------------------------- Comment By: Mike C. Fletcher (mcfletch) Date: 2002-12-28 00:51 Message: Logged In: YES user_id=34901 Changed summary to be a little more descriptive ---------------------------------------------------------------------- Comment By: Greg Copeland (oracle) Date: 2002-06-22 10:53 Message: Logged In: YES user_id=40173 Would you mind submiting a patch for your changes? I think this may have some value for others! Thanks! ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-04-15 09:50 Message: Logged In: YES user_id=45365 Update: I can now build from CVS, after downgrading SWIG to 1.3.9 (I started with the most recent SWIG, 1.3.11), and after fixing a few other things. The main thing I had to fix was add support for extra_link_args in the .cfg file, so I could pass the "-framework GLUT" needed for linking GLUT. Let me now I you want this patch, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105988&aid=544084&group_id=5988 |