Can't build Powder Toy again!

  • Sparkette
    24th Mar 2011 Member 0 Permalink
    I'm working with the newest source from Git, unmodified. (after the Python console update.) It used to compile on older versions; now it won't. I'm running Mac OS X.

    Here's my build log: http://pastebin.com/QJyzzxNA

    EDIT: I just noticed it's saying it can't find Python.h. I looked it up and it says it's in the Python source code. Is that right? If so, where do I put the Python source code so make powder-x will find it?
  • cctvdude99
    24th Mar 2011 Member 0 Permalink
    @flarn2006
    Try putting the reference to Python.h like this, including quotation marks: "python/python.h"

    Replace python with wherever your python.h is.

    Just a guess BTW, I don't use a Mac OS, and haven't got the python update.
  • Pilihp64
    24th Mar 2011 Developer 0 Permalink
    if you just install python (32-bit version please) it should automatically add it into your default include folder locations.
  • Sparkette
    24th Mar 2011 Member 0 Permalink
    Okay, I found the include files, and now it's finding them. (I added -I/opt/local/include/python2.4/ to CFLAGS in the makefile.) But now it's giving me a linking error: http://pastebin.com/dhRNbF8K
    I'm not concerned about those Python syntax errors toward the top, as I can tell those are tests, and if it returns an error that means it's working. But how do I fix this error?

    Undefined symbols for architecture x86_64:
    "_Py_InitModule4", referenced from:
    _SDL_main in ccYupbfZ.o
    ld: symbol(s) not found for architecture x86_64
    collect2: ld returned 1 exit status
    make: *** [powder-x] Error 1


    (SDL IS installed correctly, as I was able to build it before.)