Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED - scrot fails to save due to giblib error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rudi_aber
n00b
n00b


Joined: 06 Feb 2006
Posts: 21
Location: Aberystwyth, Wales

PostPosted: Wed Nov 26, 2008 5:34 pm    Post subject: SOLVED - scrot fails to save due to giblib error Reply with quote

I'd like to use scrot for screenshooting but it complains
Code:
17:21 rudi@dphpc0030:~ > scrot foo.png
giblib error: Saving to file foo.png failed

both for a user and for root. This error has been reported a number of times in the forums of other distributions such as Ubuntu or Suse, and the cure seems to be to emerge (or whatever equivalent they use) something called imlib2-loader, but there doesn't seem to be anything like that on Gentoo. I've got current giblib, imlib, imlib2, and Image-Imlib2 installed. Does this ring a bell with anyone?

By the way, I'm not after other solutions for screenshooting - I have ksnapshot running. I'd like to use scrot because apparently it's possible to screenshoot directly into zim without first having to go through a file browsing dialogue.


Last edited by rudi_aber on Thu Jan 29, 2009 1:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Montolio
n00b
n00b


Joined: 20 Jan 2004
Posts: 37

PostPosted: Tue Jan 27, 2009 8:47 pm    Post subject: Reply with quote

I got the same error and after same searching a found the solution.

Just remerge media-libs/imlib2 with png support!
Back to top
View user's profile Send private message
rudi_aber
n00b
n00b


Joined: 06 Feb 2006
Posts: 21
Location: Aberystwyth, Wales

PostPosted: Thu Jan 29, 2009 1:55 pm    Post subject: Reply with quote

Montolio wrote:

Just remerge media-libs/imlib2 with png support!


Thanks very much Montolio - works a treat, and I had already given up on it!
Back to top
View user's profile Send private message
vildric
n00b
n00b


Joined: 20 May 2013
Posts: 12

PostPosted: Sat May 25, 2013 1:48 am    Post subject: Reply with quote

Sorry, the thread is very old, but I have the same problem and I dont know how to "remerge with png support" (I am new in the Gentoo's world). How to do it? Thanks!
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun May 26, 2013 4:25 am    Post subject: Reply with quote

vildric wrote:
I have the same problem and I dont know how to "remerge with png support" (I am new in the Gentoo's world). How to do it?

vildric ... you just need to add the 'png' useflag:

Code:
# echo "media-libs/imlib2 png" >> /etc/portage/package.use

"package.use" (which can be a single file or a directory of files) is used for per-package useflags, for 'png' support globally you can add it to USE= in make.conf. Once the useflag is enabled re-emerge the package.

There are various methods of managing useflags, 'euse' from app-portage/gentoolkit and app-portage/flaggie ... (and others), but 'echo' or editing the file directly works just as well.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum