Install wx - "Could not run GTK+ test program , checking why..."

Hi all,

I use Linux OpenMandriva Lx 4.3 (python 3.9), with “virtualenv”, and try to install from sources wxPython (4.1.1), but it fails on :

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 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.

You can see the complete build.log file :
build.zip (3.7 KB)

these packages are yet installed :
gtk+3.0
gtk+3.0-common
lib64gtk+3.0-devel

I can run :

[redge@redge-virtualbox env4.1.x-py39]$ pkg-config gtk+-3.0 --libs
-lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 
[redge@redge-virtualbox env4.1.x-py39]$ 

But I can’t run :

[redge@redge-virtualbox env4.1.x-py39]$ gtk-config --libs
bash: gtk-config: command not found...

Even if is yet installed this package :
kde-gtk-config - GTK2 and GTK3 configurator for KDE

What do you think people is happening on my system ?
Is it an inconsistency about my Operating System ?
Or I miss something else ?

Thank you for any suggestion :slight_smile: