Hello,
Please how do I fix the following GTK error messages:
eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ python build-wxpython.py --build_dir=…/bld
old_options = set([’–unicode’, ‘–cairo’, ‘–debug’, ‘–build_dir=…/bld’, ‘–reswig’, ‘–prefix=/opt/wx/2.9’])
sys.argv = [’–build_dir=…/bld’]
wxWidgets directory is: /home/eshikafe/wxPython-src-2.9.5.0
wxWidgets build options: [’–wxpython’, ‘–jobs=1’, ‘–prefix=/usr/local’, ‘–unicode’, ‘–builddir=/home/eshikafe/wxPython-src-2.9.5.0/bld’]
Configure options: [’–enable-unicode’, ‘–prefix=/usr/local’, ‘–with-opengl’, ‘–enable-sound’, ‘–enable-graphics_ctx’, ‘–enable-mediactrl’, ‘–enable-display’, ‘–enable-geometry’, ‘–enable-debug_flag’, ‘–enable-optimise’, ‘–disable-debugreport’, ‘–enable-uiactionsim’, ‘–with-sdl’, ‘–with-gnomeprint’]
/home/eshikafe/wxPython-src-2.9.5.0/configure --enable-unicode --prefix=/usr/local --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl --with-gnomeprint
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for --disable-gui… no
…
checking for XML_ParserCreate in -lexpat… yes
checking for GTK+ version…
checking for pkg-config… /usr/bin/pkg-config
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.
checking for pkg-config… (cached) /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.
checking for gtk-config… no
checking for GTK - version >= 1.2.7… no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk-config… (cached) no
checking for GTK - version >= 1.2.3… no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
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.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File “build-wxpython.py”, line 378, in
wxbuild.main(wxscript, build_options)
File “/home/eshikafe/wxPython-src-2.9.5.0/build/tools/build-wxwidgets.py”, line 365, in main
“Error running configure”)
File “/home/eshikafe/wxPython-src-2.9.5.0/build/tools/build-wxwidgets.py”, line 80, in exitIfError
raise builder.BuildError(msg)
BuildError
I have the following GTK versions installed:
eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ dpkg -l libgtk[0-9]* | grep ^i
ii libgtk2-perl 1:1.221-4 Perl interface to the 2.x series of the Gimp Toolkit library
ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+ graphical user interface library
ii libgtk2.0-cil 2.12.9-1 CLI binding for the GTK+ toolkit 2.12
ii libgtk2.0-common 2.18.3-1 Common files for the GTK+ graphical user interface library
Thanks.
BR,
Austin