Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

GTK Can't load png or jpeg!?!

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
Superman53142
n00b
n00b
Posts: 54
Joined: Mon Mar 24, 2003 3:12 am

GTK Can't load png or jpeg!?!

  • Quote

Post by Superman53142 » Fri May 30, 2003 1:40 am

OK, I'm not sure what happened, but suddenly all my GTK 2.0 applications can't load png or jpeg images! This means that most of them have lost their icons, etc. I've tried reinstalling GTK, but it fails. Here is the error message:

Code: Select all

(topdir=`cd .. && pwd` ; curdir=`pwd` ; \
  cd . &&                                    \
      GDK_PIXBUF_MODULE_FILE=$topdir/gdk-pixbuf/gdk-pixbuf.loaders $topdir/gdk-pixbuf/gdk-pixbuf-csource --build-list \
        apple_red apple-red.png gnome_foot gnome-foot.png >$curdir/test-inline-pixbufs.h || (rm -f $curdir/test-inline-pixbufs.h && false))
failed to load "apple-red.png": Failed to load image 'apple-red.png': Unsupported TGA image type
make[3]: *** [test-inline-pixbufs.h] Error 1
make[3]: Leaving directory `/var/tmp/portage/gtk+-2.2.1-r1/work/gtk+-2.2.1/demos'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.2.1-r1/work/gtk+-2.2.1/demos'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.2.1-r1/work/gtk+-2.2.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: x11-libs/gtk+-2.2.1-r1 failed.
!!! Function src_compile, Line 68, Exitcode 2
!!! (no error message)
So I saw that it appearantly thinks the png is a "tga" format file. I don't know how to fix this, hehe :)

Someone please help.
Top
Superman53142
n00b
n00b
Posts: 54
Joined: Mon Mar 24, 2003 3:12 am

  • Quote

Post by Superman53142 » Fri May 30, 2003 2:16 am

I looked through the history and this was the command that caused the problem:

Code: Select all

emerge vim glib libao gaim libmikmod xmms nvidia-kernel atk gail util-linux alsa-driver net-misc/rsync --upgradeonly
I've reemerged a prior version of glib, atk, gail, and gtk+ and have yet to get it working :-/
Top
jagerman
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Thu Jun 27, 2002 6:42 pm
Location: Vancouver, BC, Canada

Re: GTK Can't load png or jpeg!?!

  • Quote

Post by jagerman » Fri May 30, 2003 3:51 am

I just ran into this _exact_ problem. Let me guess - you're running gcc-3.3, right? I had to emerge gcc-3.2.3 back onto my system, and recompile glib - it seems that something breaks in glib with gcc 3.3.

Before you emerge, I'd recommend editing /var/db/pkg/sys-devel/gcc-3.3/SLOT and changing it from 3.2 to 3.3 - that way, it won't unmerge 3.3 on you when 3.2.3 is finished compiling.

After emerging 3.2.3, emerge glib and you should be good to go again. You can use gcc-config to set your profile back to gcc-3.3 after glib has compiled:

gcc-config i686-pc-linux-gnu-3.3

I'd recommend keeping 3.2.3 around on your system in case you run into other things :-\
Top
Superman53142
n00b
n00b
Posts: 54
Joined: Mon Mar 24, 2003 3:12 am

  • Quote

Post by Superman53142 » Fri May 30, 2003 9:49 am

That's exactly what I wanted to hear, hehe :)

I reemerged GCC 3.2.3 last night so I'll emerge glib now and see if all is well :)

Thanks.
Top
Superman53142
n00b
n00b
Posts: 54
Joined: Mon Mar 24, 2003 3:12 am

  • Quote

Post by Superman53142 » Fri May 30, 2003 10:10 am

Works fine now! Thanks again :)
Top
link
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Fri May 31, 2002 3:49 pm
Location: California
Contact:
Contact link
Website

  • Quote

Post by link » Fri May 30, 2003 3:02 pm

Have either of you verified/submitted this bug in Gentoo's bugs? It sounds pretty bad, and I think they'd like to know about it. ;)
Peace love and penguins
Top
Superman53142
n00b
n00b
Posts: 54
Joined: Mon Mar 24, 2003 3:12 am

  • Quote

Post by Superman53142 » Fri May 30, 2003 11:41 pm

link wrote:Have either of you verified/submitted this bug in Gentoo's bugs? It sounds pretty bad, and I think they'd like to know about it. ;)
Took care of it :)

Thanks for reminding me, hehe.
Top
watersb
Apprentice
Apprentice
User avatar
Posts: 297
Joined: Wed Sep 04, 2002 5:10 am
Location: take a left turn in Tesuque

  • Quote

Post by watersb » Mon Jun 09, 2003 2:40 am

GTK+-2.2.1 Compiles OK in GCC 3.3

OK, this took all afternoon and into the night, but since Lovechild and Linn_Matt were able to build GNOME 2.3.3 with GCC 3.3, with no unusual mention of problems, I took hope...

I had *exactly* the same problem with compiling GTK2: the TGA b0rk.

I rebuilt glib-1.2.10-r5 and glib-2.2.1-r1 with these CFLAGS:

Code: Select all

-fprofile-arcs -march=pentium3 -finline-functions -fweb -ftracer -frename-registers -fforce-addr -Os -pipe
Then I tried to emerge gtk+-2.2.1, and the compiler died (I will submit a bug report...) I disabled the -ftracer compiler optimization and GTK2 built just fine!

Edit: Using GCC-3.3.1 (CVS) works better, disable -fweb and re-enable -ftracer
Top
CruNcher
n00b
n00b
User avatar
Posts: 12
Joined: Wed Sep 25, 2002 4:25 pm

  • Quote

Post by CruNcher » Thu Jun 19, 2003 12:32 pm

@ watersb

i tried it with gcc 3.3 cyfreds ebuild and the following flags

Code: Select all

-O2 -mcpu=pentium4 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer 
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -fallign-functions=4  -fshedule-insns2 
-fforce-addr -fprefetch-loop-arrays -ffast-math -finline-funtions -funit-at-a-time 
-funswitch-loops -frename-registers -ftracer -fweb
in the gtk+2.2.2-r1.ebuild
filter-flags "-fweb -ftracer"

and it stops exactly @ the same place i try now with a newer gcc cvs build
Top
CruNcher
n00b
n00b
User avatar
Posts: 12
Joined: Wed Sep 25, 2002 4:25 pm

  • Quote

Post by CruNcher » Thu Jun 19, 2003 4:55 pm

i compiled and installed gcc 3.3.1 cvs now but system default is still gcc 3.3 where can i change this :?:
Top
phong
Bodhisattva
Bodhisattva
User avatar
Posts: 778
Joined: Tue Jul 16, 2002 6:51 pm
Location: Michigan - 15 & Ryan
Contact:
Contact phong
Website

  • Quote

Post by phong » Mon Aug 18, 2003 2:43 am

Had the same problem (prevented me from building gimp >=1.3.16 and redhat-artwork). Compiling glib with gcc 3.2.3 fixed it.

BTW: CruNcher - you can choose which gcc to use with gcc-config.
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Top
System_Failure
n00b
n00b
User avatar
Posts: 63
Joined: Mon Dec 09, 2002 1:09 am
Location: /home/System_Failure/

  • Quote

Post by System_Failure » Mon Jul 28, 2008 3:00 pm

EDIT: nevermind my overlay was extremely outdated... oops
"I like beaches."
Top
wswartzendruber
Veteran
Veteran
User avatar
Posts: 1261
Joined: Tue Mar 23, 2004 1:16 am
Location: Idaho, USA

  • Quote

Post by wswartzendruber » Mon Oct 19, 2009 1:26 am

I've lost everything in GNOME...almost. Icons are gone from menus, but not buttons. Qt4 apps have no problems.
Git has obsoleted SVN.
10mm Auto has obsoleted 45 ACP.
Top
ewaller
Apprentice
Apprentice
User avatar
Posts: 267
Joined: Thu Aug 11, 2005 5:56 am
Location: Pasadena, CA

  • Quote

Post by ewaller » Mon Oct 19, 2009 1:46 am

I'm not certain, but I think this is related to this thread: http://forums.gentoo.org/viewtopic-t-79 ... ight-.html,
or this one http://forums.gentoo.org/viewtopic-t-79 ... ight-.html

Especially wswartzendruber's issue.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Top
too7
n00b
n00b
Posts: 6
Joined: Sun May 03, 2009 1:40 pm

  • Quote

Post by too7 » Mon Oct 19, 2009 3:56 pm

@wswartzendruber : Are you on Hardened profile ? If it's the case, you could have some problem compiling x11-libs/gtk+
Top
Post Reply

15 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic