wxPython-4.0.1 build issue: gtk+2 present but not seen

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

wxPython-4.0.1 build issue: gtk+2 present but not seen

Rich Shepard
   For some reason wxPython-4.0.1 is giving me build problems that I've not
encountered with previous versions. Installed on this Slackware-14.2 host
are gtk+2-2.24.31 and gtk+3-3.18.9, yet the configuration fails not finding
gtk+2 > 2.6.0:

checking for GTK+ - version >= 2.6.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

   Slackware does not have separate 'development' files. When a library (or
other package) is installed, everything provied by upstream is included.

   I've been batting my head against this for a couple of weeks now and not
finding why either 2.24.31 or 3.18.9 is not seen by the configuration check.
I've asked on linuxquestions.org (and relevant mail lists) and no one has
offered an explanation.

   pkg-config is found in /usr/bin/. There is /usr/lib/pkgconfig/gtk+-2.0.pc,
but 'pkg-config gtk+-2.0 --libs' returns nothing. There is no gtk-config
installed, only kde-gtk-config.

   Details like these are beyond my knowledge of linux as an end user, not a
system developer, so I've no idea why there's a problem or how to go about
fixing it.

   All suggestions and ideas from folks here are encouraged.

Rich

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seen

Robin Dunn
On Saturday, March 24, 2018 at 8:10:30 AM UTC-7, Rich wrote:
   pkg-config is found in /usr/bin/. There is /usr/lib/pkgconfig/gtk+-2.0.pc,
but 'pkg-config gtk+-2.0 --libs' returns nothing.


It should be outputting a list of library flags that the build will add to the link command lines. There is also a --cflags option which should output a list of flags for the compile command lines. For example on one of my systems:

 >  pkg-config gtk+-2.0 --cflags
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz  
 
 >  pkg-config gtk+-2.0 --libs
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype  

So the thing to investigate is why pkg-config is not working properly on your system for the gtk+-2.0 package. Maybe you need to uninstall and reinstall gtk?

--
Robin

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seenry

Rich Shepard
On Mon, 26 Mar 2018, Robin Dunn wrote:

> It should be outputting a list of library flags that the build will add to
> the link command lines. There is also a --cflags option which should
> output a list of flags for the compile command lines. For example on one
> of my systems:

Robin,

   Rebuilding and re-installing gtk+2-2.24.31 moved the wxPython-4.0.1 error
from not finding gtk+2 > 2.6.0 to not finding gtk+3 > 3.0.0; that is to not
finding gtk+3-3.18.9:

checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 3.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

   Why is it looking for 'development files for GTK+2 when it cannot find
GTK+3-3.18.9?

   And, in the second line above configure finds /usr/bin/pkg-config.

Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
   File "build.py", line 1295, in cmd_build_wx
     wxbuild.main(wxDir(), build_options)
   File "/opt/SBo/wxPython-4.0.1/buildtools/build_wxwidgets.py", line 374, in main
     "Error running configure")
   File "/opt/SBo/wxPython-4.0.1/buildtools/build_wxwidgets.py", line 85, in exitIfError
     raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m5.235s)
Finished command: build (0m5.235s)
Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.

   The configure.log is attached.

>>  pkg-config gtk+-2.0 --cflags

   Here, this produces an error:

$ pkg-config gtk+-3.0 --cflags
Package damageproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `damageproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'damageproto', required by 'xdamage', not found

>>  pkg-config gtk+-2.0 --libs

   The same libs are present here: $ pkg-config gtk+-3.0 --libs -lgtk-3
-lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0

> So the thing to investigate is why pkg-config is not working properly on
> your system for the gtk+-2.0 package. Maybe you need to uninstall and
> reinstall gtk?

   I re-installed gtk+3-3.18.9 but this did not help.

   Have you suggestions for determining why pkg-config is not working
properly here?

   None of this has happened with the wxPython versions I've installed and
used over the past 15 years so I'm at a complete loss.

Thanks,

Rich

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

config.log (135K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seenry

Rich Shepard
On Mon, 26 Mar 2018, Rich Shepard wrote:

> Rebuilding and re-installing gtk+2-2.24.31 moved the wxPython-4.0.1 error
> from not finding gtk+2 > 2.6.0 to not finding gtk+3 > 3.0.0; that is to
> not finding gtk+3-3.18.9:

>> So the thing to investigate is why pkg-config is not working properly on
>> your system for the gtk+-2.0 package. Maybe you need to uninstall and
>> reinstall gtk?

   After reading the pkg-config man page I checked /usr/lib/pkg-config/ and
confirmed that both gtk+-2.0.pc and gtk+-3.0.pc are present. However,
gtk+-2.0.pc contains:

gtk_binary_version=2.10.0
gtk_host=i586-slackware-linux

Name: GTK+
Description: GTK+ Graphical UI Library (${target} target)
Version: 2.24.31

and gtk+-3.0.pd contains:

gtk_binary_version=3.0.0
gtk_host=i586-slackware-linux

Name: GTK+
Description: GTK+ Graphical UI Library
Version: 3.18.9

which suggests to me that wxPython-4.0.1 should find what that appropriate
library versions are available.

Puzzled,

Rich

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seenry

Scott Talbert
In reply to this post by Rich Shepard
On Mon, 26 Mar 2018, Rich Shepard wrote:

> checking for GTK+ version... checking for pkg-config... /usr/bin/pkg-config
> checking for GTK+ - version >= 3.0.0... no
> *** Could not run GTK+ test program, checking why...
> *** The test program failed to compile or link. See the file config.log for
> the
> *** exact error that occured. This usually means GTK+ is incorrectly
> installed.
> configure: error: The development files for GTK+ were not found. For GTK+ 2,
> please
> ensure that pkg-config is in the path and that gtk+-2.0.pc is
> installed. For GTK+ 1.2 please check that gtk-config is in the path,
> and that the version is 1.2.3 or above. Also check that the
> libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
> --libs' are in the LD_LIBRARY_PATH or equivalent.
>
>  Why is it looking for 'development files for GTK+2 when it cannot find
> GTK+3-3.18.9?

That error is the generic error when GTK+ development files are not found.
It was apparently never updated when GTK+ 3 support was added.

> $ pkg-config gtk+-3.0 --cflags
> Package damageproto was not found in the pkg-config search path.
> Perhaps you should add the directory containing `damageproto.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'damageproto', required by 'xdamage', not found

This seems...wrong, and is probably the cause of the problem.  That
command should return something like this:

[talbert@deasil ~]$ pkg-config gtk+-3.0 --cflags
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -pthread

It doesn't make any sense that it's referring to 'damageproto', whatever
that is, when you're asking about gtk+-3.0.  Can you find the gtk+-3.0.pc
file and check the contents?  Mine is in /usr/lib64/pkgconfig/gtk+-3.0.pc.

Scott

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seenry

Rich Shepard
On Mon, 26 Mar 2018, Scott Talbert wrote:

> That error is the generic error when GTK+ development files are not found.
> It was apparently never updated when GTK+ 3 support was added.

Scott,

   Okay, that makes sense.

> It doesn't make any sense that it's referring to 'damageproto', whatever
> that is, when you're asking about gtk+-3.0. Can you find the gtk+-3.0.pc
> file and check the contents? Mine is in /usr/lib64/pkgconfig/gtk+-3.0.pc.

   /usr/lib/pkgconfig/gtk+-3.0.pc:

prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib
includedir=${prefix}/include
targets=x11

gtk_binary_version=3.0.0
gtk_host=i586-slackware-linux

Name: GTK+
Description: GTK+ Graphical UI Library
Version: 3.18.9
Requires: gdk-3.0 atk >= 2.15.1 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0 gio-2.0 >= 2.45.8
Requires.private: atk atk-bridge-2.0   epoxy >= 1.0 pangoft2 gio-unix-2.0 >= 2.45.8
Libs: -L${libdir} -lgtk-3
Cflags: -I${includedir}/gtk-3.0

   And, /usr/include/gtk-3.0/gtk/ has 216 header files including gtk.h.
Because gtk.h exists where the Cflags points there should be no reason for
wxPython-4.0.1 to not find it. Why it's not finding the header is what I've
been trying to learn.

Regards,

Rich

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: wxPython-4.0.1 build issue: gtk+2 present but not seen [RESOLVED]

Rich Shepard
In reply to this post by Rich Shepard
On Sat, 24 Mar 2018, Rich Shepard wrote:

>  For some reason wxPython-4.0.1 is giving me build problems that I've not
> encountered with previous versions. Installed on this Slackware-14.2 host
> are gtk+2-2.24.31 and gtk+3-3.18.9, yet the configuration fails not
> finding gtk+2 > 2.6.0:

   Problems found and resolved. First, 'damageproto' went missing from this
host and I had no idea that it is actually included in the distribution.
Installing that package fixed the gtk.h issue.

   Second, wxPython-4.0.1 needs webkit2gtk and I had removed that a while ago
because I found no library or application dependent on it. Installed the
current webkit2gtk and the application built. Installation using 'python3
setup.py install' worked.

Thanks to all for helping,

Rich

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.