On Tue, 3 Jan 2017 15:31:57 +0000
"intmai...@gmail.com" <intmai...@gmail.com> wrote:
> Hello,
> 
> I use slackware 14.2 and trying to build wxWidget 3.0.2 which required
> gtk. Ther are three packages and versions of gtk installed on the
> system: 1, 2 then 3.
> 
> The configuration/compilation achieved without problem but wxWidget
> will not able to use unicode:
> ./configure --with-gtk --enable-gtk2 --enable-unicode --enable-debug
> 
> The reason is the header gtk.h can not be found for both recent
> version:  gtk+3-3.18.9 and gtk+2-2.24.30.
> Then the old version gtk+-1.2.10 will be used instead: unfortunately
> this version can NOT use unicode !
> I need absolutely unicode for wxWidget.
> 
> Slackware is not longer use Gnome for years. This means that the 3 gtk
> packages provided and installed on my system may be very lean and lose
> some functionality. May be there is many configurations and tools
> missing.

You have broken your system somehow.  Slackware provides the upstream
libraries in complete form:

  grep gtk-2.0/gtk/gtk\\.h /var/log/packages/gtk+2-2.24.31-i686-1
  usr/include/gtk-2.0/gtk/gtk.h

  grep gtk-3.0/gtk/gtk\\.h /var/log/packages/gtk+3-3.22.5-i686-1
  usr/include/gtk-3.0/gtk/gtk.h

> Bellow are a part of debuging screen during configuration of wxWidget:
> 
> [code]
> ...
> checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found
> in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-2.0' found
> 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... Package gtk+-3.0 was not found
> in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-3.0.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-3.0' found
> 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.
> ...
> [/code]

This just seems to follow from the fact that you have broken your
system.  The pkg-config files are correctly installed in slackware-14.2:

  grep gtk+-2.0.pc /var/log/packages/gtk+2-2.24.31-i686-1
  usr/lib/pkgconfig/gtk+-2.0.pc

  grep gtk+-3.0.pc /var/log/packages/gtk+3-3.22.5-i686-1
  usr/lib/pkgconfig/gtk+-3.0.pc

Reinstall the gtk+2 and gtk+3 libraries from your slackware repository
and it should be OK.

Chris
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to