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