I'm trying to install the bluetooth module from lightblue.
My system: Mac OS X Snow Leopard 10.6.8, Python 2.7, gcc 4.2 & 4.0, xcode v.3.2.3 . I checked , i also got python 2.3/2.5/2.6 folders directly under /Library/Python/ in my system (This is different from 2.7 which is located in /Library/Frameworks/Python.framework/Versions/2.7/)
When I install lightblue with python setup.py install, I get the following error:
GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file BBBluetoothOBEXClient.m)
** BUILD FAILED **
So I thought it was about the gcc version. So I did: 'export CC=gcc-4.0' or 'export CC=/usr/bin/gcc-4.0' (I got 2 versions of gcc on my Mac; 4.2 and 4.0). Then I checked with gcc -v, it's already switched from 4.2 to 4.0. But when I rerun python setup.py install, it is still showing 4.2:
GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file BBBluetoothOBEXClient.m)
** BUILD FAILED **
Why is it still showing gcc 4.2?
Does anyone have any solution? I tried using pip but got the same result.