I downloaded the precompiled Mac OSX binaries last week, and while they work fine, I am wanting to update the version of VRPN used to a more recent version. So I downloaded the source code, but I cannot get it to compile. I am running Mac OSX 10.6 Snow Leopard with Apple gcc version 4.2.1. I am trying to use the Panda3D 1.7.2 (latest stable), and using the ppremake compile option (is one better than the other?).
I compile dtools and that works fine, but when I try to build the panda subdirectory, I get the following error:
Someone recommended that I try compiling without compiler optimization since gcc sometimes has issues with -O2. Here is the error that it gives using no optimization:
The issue is that it’s getting confused whether or not it’s building for 32-bits or 64-bits, which isn’t always obvious on OSX.
1.7.2 does not support (nor does 1.8.0, for that sake) 64-bits OSX, so if you compile it, you must do it in 32-bits mode. Panda3D is compiled against the version of Python that you run makepanda with, so make sure that you’re running Python in 32-bits mode. (Only works with the version of Python that is shipped with OS X by default.) Be sure to “rm -rf built” to make a clean build before retrying.