I've been trying to compile pylux against the python libs installed on my machine (OS X 10.6), not the blender-bundled one. The reason is Luxfire (manager for distributed rendering), and for that to work the pylux module has to work with the python installed. I have specified the PYTHON_INCLUDE_PATH and PYTHON_LIBRARY in CMake to point to the correct paths (trying to get 3.1 or 3.2 working, no idea if 2.6 works). After wondering why it still doesn't work, I tried the command otool -L pylux.so and got the following output:
- Code: Select all
pylux.so:
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
/usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
/System/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.1)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)
Note the line /System/Library/Frameworks/Python.framework/Versions/2.6/Python which clearly points, that the pylux has indeed been compiled against wrong python. To my understanding, at least. Any idea why that happens? Or is that even the reality? And where the heck it gets that path? I figured, that maybe python-config is to blame and removed any traces from version 2.6 of python-config, with the same exact results. Before even getting to possible issues with the Luxfire it self, I tried running python pyluxconsole.py, but it just gives out error Symbol not found: _luxGetAttributeType. Any help would be very much appreciated!
Mikko
