thinblog / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
0 stars 0 forks source link

Configure fails on mingw32 for windows #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Essentially a duplicate of issue 17, but no one seems to be re-opening it
http://code.google.com/p/pywebkitgtk/issues/detail?id=17
Attempting to configure on windows fails 

checking for a Python interpreter with version >= 2.4... python
checking for python... /c/Python27/python
checking for python version... 2.7
checking for python platform... win32
checking for python script directory... ${prefix}\Lib\site-packages
checking for python extension module directory... 
${exec_prefix}\Lib\site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers

I'm not sure on how to best fix it so it's multi-platform, but multiple places 
get the libary path wrong on windows (should be c:\python2x\include- or 
/c/Python2x/include)

Specifically:

PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi

should be on windows:

PYTHON_INCLUDES="-I${py_prefix}/include"
if test "$py_prefix" != "$py_exec_prefix"; then
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include"
fi

Original issue reported on code.google.com by lo...@obsidian.com.au on 14 Jun 2012 at 12:18

GoogleCodeExporter commented 8 years ago
I encountered the problem

Original comment by xiaomu89...@gmail.com on 7 Dec 2012 at 12:21

Attachments: