1. EuGTK vs GTK3
- Posted by Jerry_Story Oct 28, 2011
- 1630 views
I recently had major computer problems and had to re-install the OS. I'm running xubuntu 11.10 instead of ubuntu 11.10 to avoid unity. Now I gotta get stuff happening again.
I get the message "Cannot find gtk libraries!"
So I look here.
if file_exists("/usr/lib/libgtk-x11-2.0") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so.0") then GTK_LIB = "libgtk-x11-2.0.so.0" else crash("Cannot find gtk libraries!") end if
So I look in /usr/lib
I find libgtk-3-0 but no other libgtk
The synaptic package manager shows libgtk-3 etc. but does not show anything that resembles what is required by the above code.
Maybe EuGTK needs to be updated to accommodate gtk3.
2. Re: EuGTK vs GTK3
- Posted by SDPringle Oct 28, 2011
- 1690 views
Major versions mean breaking changes. Yes, they will have to update the eugtk library. In the meantime, perhaps you can get an old version of the library.
Shawn Pringle
3. Re: EuGTK vs GTK3
- Posted by Jerry_Story Oct 28, 2011
- 1635 views
Major versions mean breaking changes. Yes, they will have to update the eugtk library. In the meantime, perhaps you can get an old version of the library.
Shawn Pringle
There doesn't seem to be any way to install gtk2. The gtk website goes into dependency hell. Is there an easy sudo apt-get install way?
4. Re: EuGTK vs GTK3
- Posted by Jerry_Story Oct 29, 2011
- 1544 views
In GtkRoutines.e I made the following changes. The changes are indicated by "JS".
if file_exists("/usr/lib/libgtk-x11-2.0") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so") then GTK_LIB = "libgtk-x11-2.0.so" elsif file_exists("/usr/lib/libgtk-x11-2.0.so.0") then GTK_LIB = "libgtk-x11-2.0.so.0" -- JS elsif file_exists("/usr/lib/libgtk-3.so.0") then GTK_LIB = "libgtk-3.so.0" else crash("Cannot find gtk libraries!") end if global constant GTK = open_dll(GTK_LIB) if GTK = 0 then crash(sprintf("\n*** Cannot load GTK library: %s ***\n\n",{GTK_LIB})) end if -- following can fail without causing problems; --export sequence GTK_SV = "libgtksourceview-2.0.so.0" export sequence GTK_SV = "libgtksourceview-3.0.so.0" -- JS
Now my program dmak-gtk almost works and does not produce any error messages. Maybe more testing is needed, but it seems to work except for the color bars. The color bars have no color and are not the correct size.
5. Re: EuGTK vs GTK3
- Posted by ChrisB (moderator) Oct 29, 2011
- 1527 views
Hi
This is one of my bugbears
While it's nice to have a gui toolkit pre installed on every new flavour of Linux that comes along, wouldn't it be nice to have a library that you could install with your program, that didn't rely on updating every last version number of every dependent library, that was independent of anything already installed or not installed. Still searching.
Chris