LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-13-2019, 05:03 PM   #1
GTrax
Member
 
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 258

Rep: Reputation: 37
About required versions of GTK+


Frustrating for one who usually hopes to get away with ..
Code:
$ ./configure
$ make
$ sudo make install
If there is a stumble on the way, it is usually because of some missing program, or perhaps the <program_name>-dev version that is needed. Easy enough to use apt-get or Synaptic to get it, and try again.
Hopefully not much more than that, because I am an older guy who is not really a programmer.
This time, I get a confusing situation..
Code:
checking for GTK... no
configure: error: GTK+ 2.24.0 or later is required.
OK then - but when we search in Synaptic, there are many programs installed that clearly do use GTK+, and versions of GTK3 also, but no actual name that seems to be explicitly a GTK install package. I look also among those beginning "libgtk.."
It has to be there somewhere, but there is no sign of what it actually takes to make that message go away.

My system is Linux Mint 19.1 (Tessa) which uses Ubuntu 18.04 (Bionic Beaver)
I had thought that there would be something in the repository that would be the right thing, and I am convinced that various programs that need GTK are already installed.

Do I really have to fetch a GTK<some_version> source and compile it first?
Before I go there, I ask - what exactly does one do to verify what GTK exists, and what exactly does one do fix it in a Ubuntu-type distro so that a ./configure script will find it?
Thanks if you can help.

Last edited by GTrax; 04-13-2019 at 05:04 PM.
 
Old 04-13-2019, 05:27 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Which software are you trying to build?
 
Old 04-13-2019, 06:14 PM   #3
GTrax
Member
 
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 258

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by hydrurga View Post
Which software are you trying to build?
hydrurga: Thanks for the reply.
The package is called "lepton-eda", which is an electronics design suite.
I fetched it from this site -> https://github.com/lepton-eda/lepton-eda

In the last few hour, I risked all in ignoring whatever GTK configurations existed, and I fetched the GTK 2.24.32 version which qualifies.
I compiled it, and installed it. It all went smoothly.
Then I tried again with the lepton-eda install.
This time, the response was different.
No longer did it require a --disable-lua option. Instead, ./configure ran to completion.
We are not out of trouble yet! The attempt to run "make" crashed out.
Code:
graham@box1 $ make
make: *** No rule to make target 'version.h', needed by 'all'. Stop.
graham@box1 $
Eventually I will discover what new fumble this is.
The original question stands, however. I do not understand how something so central to so many programs, maybe even the Mate desktop itself, can have an un-findable GTK package. Can several different releases of GTK co-exist separately? Is there no conflict over "backward compatibility"? If several are present, does the "latest" version get to be the one invoked?

Of course, my new situation (cannot get "make" to find a version.h) is now a different question, no longer on topic.
I will try and resolve it separately before asking again.

Last edited by GTrax; 04-13-2019 at 06:20 PM.
 
Old 04-13-2019, 07:18 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
The package you needed was "libgtk2.0-dev".
 
Old 04-13-2019, 09:23 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
The Gtk+ libraries and code required to run Gtk+ applications, present by default on e.g. Mint, are not necessarily those which are required to compile GTk+ support into an application in order to create executables (but which are usually present in the repos).

I wouldn't advise installing versions of Gtk+ into Mint that are different from those supplied with the distro or in the repos.
 
Old 04-13-2019, 11:56 PM   #6
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by GTrax View Post
The original question stands, however. I do not understand how something so central to so many programs, maybe even the Mate desktop itself, can have an un-findable GTK package. Can several different releases of GTK co-exist separately?
Yes, the three major versions of GTK+ (1.2, 2.0 and 3) are INcompatible with each other and can co-exist on the same system; they use separate symbolic links
Code:
libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1
libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2400.20
libgtk-3.so -> libgtk-3.so.0.800.2
The application will normally be linked to the filename at the left (so with the 1.2, 2.0 or 3 in its name, but not the specific version).
 
Old 04-14-2019, 04:11 AM   #7
GTrax
Member
 
Registered: Oct 2005
Location: UK
Distribution: Mint
Posts: 258

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by ehartman View Post
Yes, the three major versions of GTK+ (1.2, 2.0 and 3) are INcompatible with each other and can co-exist on the same system; they use separate symbolic links
Code:
libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1
libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2400.20
libgtk-3.so -> libgtk-3.so.0.800.2
The application will normally be linked to the filename at the left (so with the 1.2, 2.0 or 3 in its name, but not the specific version).
Thanks so much. The libgtk2.0 was present. It was the one with "-dev" in the name that was needed. Thanks also to dugan
Quote:
Originally Posted by dugan View Post
The package you needed was "libgtk2.0-dev".
It installs version 2.24.32, which is exactly the version I took the risk in compiling for myself.

hydruga rightly warns against installing versions of software different to those in the repos, but in this case, the version number is identical. We trust that "sudo make install" invokes processes that are smart enough to discover the libraries are already there, or cleanly overwrite them. I am all too aware of how rapidly I can make a mess when I start using "sudo" and "install" in the same typed line!
 
Old 04-14-2019, 10:59 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Any warnings you get about missing libraries at the configure stage are always really about the development package that goes with the library. This is the package that contains the library headers and it is the only thing configure scripts check for. Most distros separate the headers from the runtime libraries because you only need the headers for building software, not for running it.
 
  


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
[SOLVED] what are the other differences between fedora versions except their kernel versions teja_vijjapu Fedora 1 01-23-2012 06:38 AM
[SOLVED] Prepare firmware versions availability for current versions mufy AIX 2 01-03-2011 10:19 AM
normal versions vs LTS versions altella Ubuntu 1 11-15-2009 10:39 AM
gcc versions compatibility with kernel versions.. mahesh_manthapuri SUSE / openSUSE 1 03-22-2006 12:28 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 PM.

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