DaneelM1993 / pywebkitgtk

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

fails to build in mingw32 #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to build pywebkitgtk on windows with mingw32. But it did not work.
It seems that the pywebkitgtk were not prepared for mingw32.

The error messages i met are as follows:
$./configure
.....
checking for python script directory... c:\Python25\Lib\site-packages
checking for python extension module directory... c:\Python25\Lib\site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers

Original issue reported on code.google.com by lcgong@gmail.com on 25 Sep 2008 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by jmalo...@gmail.com on 27 Oct 2008 at 11:57

GoogleCodeExporter commented 9 years ago

Original comment by jmalo...@gmail.com on 27 Oct 2008 at 11:58

GoogleCodeExporter commented 9 years ago
It would appear that the problem here is down to the part of the configure 
script
that looks for the location of the Python headers. It's looking for:

${py_prefix}/include/Python${py_version}

or something along those lines. However, on Windows, the python includes are in
C:\Python26\include and the prefix returned is C:\Python26, so it's looking for 
them
(in mingw32 speak) in /c/python26/include/python26

Original comment by ben.th...@gmail.com on 7 May 2009 at 3:03

GoogleCodeExporter commented 9 years ago
Hey guys

Can I get you to test the following patch and let me if this works? Feel free to
raise other mingw/windows bugs here too.

Patch:

diff --git a/configure.ac b/configure.ac
index f4b76c9..dc98d6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,8 +37,9 @@ m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
 dnl check for python
 AM_PATH_PYTHON(2.4)
 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+AC_MSG_CHECKING([for pythons include path])
+PYTHON_INCLUDES=`python-config --includes`
+AC_MSG_RESULT($PYTHON_INCLUDES)

 dnl from pygtk: get rid of -export-dynamic stuff from the configure flags...
 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`

Original comment by jmalo...@gmail.com on 17 May 2009 at 9:04

GoogleCodeExporter commented 9 years ago
Fix landed in r128. Please reopen if there are still issues with this.

Cheers

Original comment by jmalo...@gmail.com on 28 May 2009 at 9:51

GoogleCodeExporter commented 9 years ago
I tried to install Debian Lenny 5.0.4.
It has shown the same message reported by lcgong.
If possible please fix the issue.

Original comment by vishnuva...@gmail.com on 3 Feb 2010 at 5:14

GoogleCodeExporter commented 9 years ago
This issue is a problem again in the latest version. It looks like the relevant 
code has been changed quite a bit.

Original comment by markd...@gmail.com on 13 Jan 2011 at 2:58

GoogleCodeExporter commented 9 years ago
My workaround (a hack not a fix) is to add the following line:

PYTHON_INCLUDES="-I${py_exec_prefix}/include"

After the following lines:

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

Original comment by markd...@gmail.com on 13 Jan 2011 at 3:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It still exists.

Original comment by jhong...@gmail.com on 20 Dec 2011 at 10:32

GoogleCodeExporter commented 9 years ago
Configure still fails on current source.
I'm going to open a new issue as this one doesn't seem to be getting reopened.

Original comment by lo...@obsidian.com.au on 14 Jun 2012 at 12:09