rosendo100 / pywebkitgtk

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

LDFLAGS not set #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When executing ./autogen.sh under gNewSense 2.0 with Python 2.5 installd, I
get this error and I am not able to compile:
 - common_ldflags: variable `PYTHON_LDFLAGS' is used but `PYTHON_LDFLAGS'
is undefined

And, when runing aclocal inside pywebkitgtk's folder, I get this error:
 - aclocal: configure.ac: 42: macro `AM_CHECK_PYTHON_HEADERS' not found in
library

I'm using this guide [1] to compile pywebkitgtk, so I can install gwibber.

[1] https://wiki.ubuntu.com/gwibber

Original issue reported on code.google.com by brunoale...@gmail.com on 8 Aug 2008 at 2:38

GoogleCodeExporter commented 8 years ago
After setting the PYTHON_LDFLAGS variable pointing to 
/usr/lib/python2.5/config, I
got the same error but the configure file was created and I was able to compile.

Original comment by brunoale...@gmail.com on 8 Aug 2008 at 2:59

GoogleCodeExporter commented 8 years ago
Hi Bruno

For the PYTHON_LDFLAGS issue: Do you have python-dev installed?

For the aclocal issue: You need to run "aclocal -I m4". AM_CHECK_PYTHON_HEADERS 
is
part of python.m4 which is in the m4/ subdirectory. autogen.sh already does 
this for you.

Original comment by jmalo...@gmail.com on 9 Aug 2008 at 12:40

GoogleCodeExporter commented 8 years ago
I have python-dev installed. And, after running "aclocal -I m4", autogen.sh 
returns
the same error.

Original comment by brunoale...@gmail.com on 9 Aug 2008 at 12:45

GoogleCodeExporter commented 8 years ago
Hi Bruno

Attached is a patch to fix the _LDFLAGS issue. We don't really need it so I just
removed it. Can you please test the attached patch?

Thanks.

Original comment by jmalo...@gmail.com on 9 Aug 2008 at 9:54

Attachments:

GoogleCodeExporter commented 8 years ago
Although the target files are not set correctly [1] (there are no a/file and 
b/file,
only file), it worked. Thanks. :)

[1]:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Makefile.am b/Makefile.am
|index bdf8a19..9d7ddba 100644
|--- a/Makefile.am
|+++ b/Makefile.am

Original comment by brunoale...@gmail.com on 10 Aug 2008 at 12:48

GoogleCodeExporter commented 8 years ago
Thanks Bruno. Fixed in r70.

Cheers.

P.S. it's a git patch so you need to use git or patch to apply.

Original comment by jmalo...@gmail.com on 10 Aug 2008 at 1:59