Compiling Blender with Python2.4 woes

Hans Lambermont hans at lambermont.dyndns.org
Sat Dec 30 04:53:06 PST 2006


Hi,

I'm the Blender platform maintainer for FreeBSD, however I do not
maintain ports/graphics/blender anymore.

Blender (with gameengine enabled) compiles fine against python2.3, but
when using python2.4 or python2.5 compilation fails in a manner that I
cannot resolve.

It boils down to something that is not Blender related anymore.

A file consisting of just 3 includes :

    #include <vector>
    #include "Python.h"
    #include <iostream>

fails to compile (g++ -I/usr/local/include/python2.4 testfile.cpp) with :

In file included from /usr/include/c++/3.4/ios:48,
                 from /usr/include/c++/3.4/ostream:45,
                 from /usr/include/c++/3.4/iostream:45,
                 from testfile.cpp:3:
/usr/include/c++/3.4/bits/localefwd.h:58:34: macro "isspace" passed 2 arguments, but takes just 1
In file included from /usr/include/c++/3.4/ios:48,
                 from /usr/include/c++/3.4/ostream:45,
                 from /usr/include/c++/3.4/iostream:45,
                 from testfile.cpp:3:
/usr/include/c++/3.4/bits/localefwd.h:58: error: `std::isspace' declared as an `inline' variable
/usr/include/c++/3.4/bits/localefwd.h:58: error: template declaration of `bool std::isspace'
/usr/include/c++/3.4/bits/localefwd.h:70:34: macro "isupper" passed 2 arguments, but takes just 1
etc.

This is tested with 5.4-RELEASE and 6.1-RELEASE.

Any help in resolving this is appreciated.

regards,
   Hans Lambermont


More information about the freebsd-questions mailing list