Discussion:
[libhid-discuss] compile libhid with python support on mac os x 10.5
Gabriel Rossetti
2009-09-09 14:28:10 UTC
Permalink
Hello everyone,

I am trying to compile libhid 0.2.16 with python support (using SWIG) on
Mac OS X 10.5.x. The configure fails with this :

Compiled with g++ [i686-apple-darwin9.0]
Please see http://www.swig.org for reporting bugs and further information
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... darwin
checking for python script directory... /Library/Python/2.5/site-packages
checking for python extension module directory...
/Library/Python/2.5/site-packages
checking for python2.5... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for the distutils Python package... yes
checking for Python include path...
-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
checking for Python library path...
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Python.framework/Versions/2.5/Python
checking for Python site-packages path... /Library/Python/2.5/site-packages
checking python extra libraries... -ldl
checking python extra linking flags... -u _PyMac_Error -framework Python
checking consistency of all components of python development
environment... no
configure: error:
Could not link test program to Python. Maybe the main Python library
has been
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================


I looked at this line :

checking for Python library path...
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/Python.framework/Versions/2.5/Python

and that path doesn't exist, this one does though :

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/

and inside there is libpython2.5.a which is the static python lib, I
tried doing as it said :

./configure
LDFLAGS="-L/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/"

with no luck though, does anyone know how to get this working?

Gabriel
Charles Lepple
2009-09-09 23:33:01 UTC
Permalink
Post by Gabriel Rossetti
I am trying to compile libhid 0.2.16 with python support (using
Most of my testing was with the Python and SWIG included with Fink.

The framework-based builds of Python are a mess, IMHO. So are the
autoconf detection macros for trying to figure out where the Python
libraries are.

Have you looked at the SWIG mailing list archives?
Gabriel Rossetti
2009-09-30 08:35:59 UTC
Permalink
Post by Charles Lepple
Post by Gabriel Rossetti
I am trying to compile libhid 0.2.16 with python support (using SWIG)
Most of my testing was with the Python and SWIG included with Fink.
The framework-based builds of Python are a mess, IMHO. So are the
autoconf detection macros for trying to figure out where the Python
libraries are.
Have you looked at the SWIG mailing list archives?
Yes, swig works, I stopped using libhid on Mac. I still use it on linux
though, thanks

Loading...