LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2017, 07:00 AM   #1
intmail01
Member
 
Registered: May 2013
Posts: 91

Rep: Reputation: Disabled
Slackware 14.2 -- configuration can not find gtk3 and gtk2 , unicode will not be 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.
...

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

Thanks.
 
Old 01-03-2017, 07:07 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Hi,

You can use SlackBuild for wxGTK3 which does this for you

Code:
Configured wxWidgets 3.0.2 for `i586-slackware-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for GTK+ printing libnotify
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.6      no
                                       wxWidgets 2.8      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no
 
Old 01-03-2017, 10:33 AM   #3
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Thank you willysr but how to use the wxGTK3.SlackBuild code ?
 
Old 01-03-2017, 10:55 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
hi intmail01, just follow the howto

https://slackbuilds.org/repository/1...raries/wxGTK3/

https://slackbuilds.org/howto/
 
Old 01-03-2017, 12:27 PM   #5
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
I know the use of slackbuild, but problem remains.
After looking the slackbuild installation code there is no news to resolve the issues.
If something is to be modified it will take place before the ./configure

The configure stoped:

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

bash-4.3#
 
Old 01-03-2017, 12:52 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
intmail01: Did you perform a full installation of Slackware?
 
Old 01-03-2017, 01:32 PM   #7
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
No, I did not.

This is all installed gtk package:
Code:
bash-4.3# ls /var/log/packages/*gtk* -ls
64 -rw-r--r-- 1 root root 61852 janv.  3 12:46 /var/log/packages/gtk+2-2.24.30-i586-1
72 -rw-r--r-- 1 root root 70618 janv.  3 12:46 /var/log/packages/gtk+3-3.18.9-i586-1
24 -rw-r--r-- 1 root root 21005 janv.  3 01:08 /var/log/packages/gtkmm2-2.24.4-i586-1
28 -rw-r--r-- 1 root root 25975 janv.  3 12:39 /var/log/packages/gtkmm3-3.18.1-i586-1
 4 -rw-r--r-- 1 root root  1887 nov.  16 20:35 /var/log/packages/oxygen-gtk2-1.4.6-i586-2
 
Old 01-03-2017, 01:42 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
@intmail01, SlackBuilds are built assuming you have a full install of Slackware. They are verified by the SBo admin team that they build properly. If yours doesn't, then that means there is either something missing on your system (as willysr implied in his post) or something is broken.

Let us know if you're running a full install or not and we can try to work through what's going on with your system. The SlackBuild is fine, there's just something up with your system.
 
Old 01-03-2017, 02:11 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by intmail01 View Post
No, I did not.

This is all installed gtk package:
Code:
bash-4.3# ls /var/log/packages/*gtk* -ls
64 -rw-r--r-- 1 root root 61852 janv.  3 12:46 /var/log/packages/gtk+2-2.24.30-i586-1
72 -rw-r--r-- 1 root root 70618 janv.  3 12:46 /var/log/packages/gtk+3-3.18.9-i586-1
24 -rw-r--r-- 1 root root 21005 janv.  3 01:08 /var/log/packages/gtkmm2-2.24.4-i586-1
28 -rw-r--r-- 1 root root 25975 janv.  3 12:39 /var/log/packages/gtkmm3-3.18.1-i586-1
 4 -rw-r--r-- 1 root root  1887 nov.  16 20:35 /var/log/packages/oxygen-gtk2-1.4.6-i586-2
You are missing some packages, including gtk+-1.2.10.

Incidentally you didn't apply the upgrade to gtk+2-2.24.31-i586-1 from Sat Sep 10 18:04:42 UTC 2016 that fixed a security issue.
 
Old 01-03-2017, 05:50 PM   #10
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
The missing packages are "libpng" and "expat".
Bellow is a short list of pack to compile wxwidget 3.0.2. Surely other packages already installed on my system are required but I dont know, I did not check.
Thanks for your help.

slackware/l/libmpc-1.0.3-i486-1.txz
slackware/d/binutils-2.26-i586-3.txz
slackware/l/glibc-2.23-i586-1.txz
slackware/d/gcc-g++-5.3.0-i586-3.txz
slackware/d/kernel-headers-4.4.15_smp-x86-1.txz
slackware/d/pkg-config-0.29.1-i586-2.txz
slackware/l/libpng-1.6.23-i586-1.txz
slackware/l/expat-2.1.0-i486-1.txz
slackware/d/make-4.1-i586-2.txz
slackware/d/guile-2.0.11-i486-2.txz
slackware/l/gc-7.4.2-i586-3.txz
slack/slackware/l/gtk+2-2.24.30-i586-1.txz
slack/slackware/l/gtk+3-3.18.9-i586-1.txz
slack/slackware/l/gtk+-1.2.10-i486-5.txz
slack/slackware/d/gcc-5.3.0-i586-3.txz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK2 and GTK3 file picker dialogs Woodsman Linux - Software 3 02-02-2018 10:28 PM
gtkrc for gtk2 app that matches gtk3 dark theme RudraB Programming 0 10-09-2013 05:45 PM
LXer: Customize GTK3 / GTK2 Theme Colors Using `GTK Theme Preferences` LXer Syndicated Linux News 0 09-08-2012 02:00 PM
Writing a new program: gtk2 or gtk3 ? DJ Shaji Linux - Software 4 06-24-2012 08:36 AM
LXer: Build Spice-Gtk-0.6 (GTK2 & GTK3) on Ubuntu 11.10 (Oneiric) LXer Syndicated Linux News 0 06-28-2011 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration