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

Re: [pygame] error compiling pygame 1.7.2



On, Sun Mar 04, 2007, James Mills wrote:

> Hi all,
> 
> I have a problem compiling pygame on my box.
> Please see:
> http://prologic.shortcircuit.net.au/wiki/Paste/2007/03/05/00.08
> 
> Appreciate any feedback,

Great, you snipped the compiler line and did not provide any further
information about what was detected, etc.pp. My guess is that the X11
includes and libs are not setcorrectly. On FreeBSD we need an extra
patch due to different include directories. Did you check whether the
X11 includes are correctly set? If not, you might try the following
change in config_unix.py:

--- config_unix.py.orig Wed Aug 10 04:45:11 2005
+++ config_unix.py      Wed Sep 14 09:12:44 2005
@@ -52,6 +52,9 @@
                     self.cflags += f + ' '
                 elif f[:3] == '-Wl':
                     self.cflags += '-Xlinker ' + f + ' '
+           if self.name == 'SDL':
+               inc = '-I/usr/X11R6/include'
+               self.cflags = inc + ' ' + self.cflags
         except:
             print 'WARNING: "%s" failed!' % command    
             self.found = 0

Replace '-I/usr/X11R6/include' with your correct X11 include directory.

HTH
Marcus

Attachment: pgpxjJ6eh05h4.pgp
Description: PGP signature