Slackware 14.2 -- configuration can not find gtk3 and gtk2 , unicode will not supported



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.

The question is how to force the compilation to use gtk3 and/or gtk2 not
gtk1 ?

On some forum, ther is mentioned to install "header" but I think they
are already in:
/usr/include/gtk-3.0/gtk/gtk.h
/usr/include/gtk-2.0/gtk/gtk.h
On slackware there is no specific header package for gtk.
May be environnment variables must be set or sym link .. I dont know
please help me.


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 is the result of compilation:

[code]
Configured wxWidgets 3.0.2 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.6      no
                                       wxWidgets 2.8      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               builtin
                                       png                builtin
                                       regex              builtin
                                       tiff               builtin
                                       zlib               sys
                                       expat              builtin
                                       libmspack          no
                                       sdl                no
[/code]


Thanks.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]