wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.32k stars 518 forks source link

Could not find gtk. I have checked I have installed gtk3 #1634

Open engineer1109 opened 4 years ago

engineer1109 commented 4 years ago

Operating system: Linux Ubuntu 18.04.3 wxPython version & source: 4.10 Python version & source: 3.6.9

Description of the problem:

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.

I am very sure that I have installed gtk3-dev. bash command:

pkg-config --modversion gtk+-3.0

results:

3.22.30
engineer1109 commented 4 years ago

The reason I have found. It is because the package cairo.pc error.

sudo gedit /usr/lib/x86_64-linux-gnu/pkgconfig/cairo.pc

Change the freetype version 9.7.3 to 2.7.3 to solve the problem.

peiyuan-NTU commented 1 year ago

Then

The reason I have found. It is because the package cairo.pc error.

sudo gedit /usr/lib/x86_64-linux-gnu/pkgconfig/cairo.pc

Change the freetype version 9.7.3 to 2.7.3 to solve the problem.

Then what should I do the error insists

MarcoVando commented 2 months ago

same here ... trying on Ubuntu 24.04 on Mac M1 through VM