SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137
Rep:
Glib-2.22 (Not glib2).
Business has been slow, so today's project was to build the most recent version of Midori. The build fail as it is looking for glib-2.22 (or newer). The version included in Slackware64 13.37 and -current is, 1.2.10.
I've spent over an hour on the 'Net looking for a package, but haven't found one.
Went looking for a SlackBuild, but it doesn't exist.
I've tried Slacky and a few other places. No joy.
Anyone know where a package or script might be found?
Many Thanks. Greatly appreciated.
(BTW, it was also looking for libsoup-4.0, but I didn't know that version existed, and it doesn't appear to be a "do or die" requirement.)
Well, the Slackware package you are looking for is actually named glib2 and in both -13.37 and -current it is version 2.28.6. Obviously this is much newer than 2.22. Therefore, Midori's build-time detection of the installed version of glib2 is broken. If Midori is using cmake to build, I do seem to remember (from other packages: e.g. darktable, IIRC) that cmake's detection of glib2 was broken (possibly on x86_64 only). I might be able to find a patch somewhere...
EDIT: Here ya go ;-) it's one of the things I fix in my darktable patch at SBo... look in the midori source for the file cmake/modules/FindGlib.cmake, and change PATH_SUFFIXES, "lib/" should actually be "lib${LIB_SUFFIX}/" (in two places).
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137
Original Poster
Rep:
well, I could be wrong, wouldn't be the first time, but from what I've read, Glib and Glib2 appear to be two different things.
Found the latest source code, glib-2.32.0.tar.xz, at gtk.org.
Went to compile it and it needed, libffi.
Found a script for that at SlackBuilds and ran and installed the package.
Tried to compile it again, and came up with this error,
Tried to compile it again, and came up with this error,
Code:
gresource-tool.c:34:20: fatal error: libelf.h: No such file or directory
compilation terminated.
For the record:
glib2-2.30.3 builds fine without this problem.
glib2-2.32.0 produces this error because it does not use the cflags in Slackware's libelf.pc file. You can fix it by adding -I/usr/include/libelf to the CFLAGS in Pat's SlackBuild, i.e.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,137
Original Poster
Rep:
Update:
I was able to find and configure (./configure), build (make) and install (make install) glib-2.32.1.
Once done Midori 0.4.3 built perfectly using the SlackBuild script. With that success as encouragement I edited the SlackBuild script and built Midori 0.4.5. However, Midori 0.4.5 requires Vala 0.14 or newer. Once Vala was upgraded, the build then went flawlessly.
55020, thank you for all your help!
Last edited by cwizardone; 04-17-2012 at 09:55 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.