Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Need help with enabling gif support in qt
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
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Fri May 16, 2008 8:29 am    Post subject: [Solved]Need help with enabling gif support in qt Reply with quote

I feel dumb for not being able to figure this out, seeing it's something I guess most people have to do. I emerged KDE and found to my surprise that there was no gif support by default. I googled about and soon learned the reason and the fix. I found the qgif header in /usr/qt/3/include and did this: "#define QT_BUILTIN_GIF_READER 1".

So far, so good, so what, but how do I recompile qt? I can't find any config or makefiles.

Seeing all gifs as their tooltip text is getting old.

Help me Obi Wan Kenobi, you're my only hope.
_________________
"Some smart quote" -Some cult guy


Last edited by Tuxido on Mon May 19, 2008 10:10 am; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri May 16, 2008 8:54 am    Post subject: Reply with quote

Either switch to a desktop profile or set the gif USE flag, either globally or specifically for x11-libs/qt, then emerge -avuD --reinstall changed-use world. If the version of portage on the system does not recognize the "--reinstall changed-use" option, use -N (--newuse) in its place and update portage at your earliest convenience.
Back to top
View user's profile Send private message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Fri May 16, 2008 2:48 pm    Post subject: Reply with quote

portage complains:

Quote:

Error 2
ERROR: x11-libs/qt-3.3.8-r4 failed.
Call stack:
ebuild.sh, line 49: Called src_compile
environment, line 2426: Called die
The specific snippet of code:
emake sub-tools || die;
The die message:
(no error message)

If you need support, post the topmost build error, and the call stack if relevant.
A complete build log is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-3.3.8-r4/temp/environment'.


What to do?
_________________
"Some smart quote" -Some cult guy
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Fri May 16, 2008 6:05 pm    Post subject: Reply with quote

Post more error. The bit that you have there is the same for every compile error.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Sat May 17, 2008 5:06 pm    Post subject: Reply with quote

I don't know what to post, but here's the complete build log:

http://folk.ntnu.no/andhag/log.txt
_________________
"Some smart quote" -Some cult guy
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun May 18, 2008 6:33 am    Post subject: Reply with quote

Tuxido wrote:
I don't know what to post, but here's the complete build log:
That is exactly what to do when you do not know what is important in regards to a specific error.

In this case the important part is in this section, just before what you'd posted earlier.
Code:
i486-pc-linux-gnu-g++ -fno-exceptions -o ../../../bin/uic .obj/release-shared-mt/main.o .obj/release-shared-mt/uic.o .obj/release-shared-mt/form.o .obj/release-shared-mt/object.o .obj/release-shared-mt/subclassing.o .obj/release-shared-mt/embed.o .obj/release-shared-mt/widgetdatabase.o .obj/release-shared-mt/domtool.o .obj/release-shared-mt/parser.o    -L/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/lib -L/usr/X11R6/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
/usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/X11R6/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ErrorString'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetUserData'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetCurrentLineNumber'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserFree'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetElementHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetErrorCode'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_GetBuffer'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParserCreate'
/usr/X11R6/lib/libfontconfig.so: undefined reference to `XML_ParseBuffer'
collect2: ld returned 1 exit status
make[3]: *** [../../../bin/uic] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools/designer/uic'
make[2]: *** [sub-uic] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools/designer'
make[1]: *** [sub-designer] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-3.3.8-r4/work/qt-x11-free-3.3.8/tools'
make: *** [sub-tools] Error 2

Specifically this line (however layout and line wrapping conspire to present it):
Code:
/usr/lib/gcc/i486-pc-linux-gnu/4.1.1/../../../../i486-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/X11R6/lib/libfontconfig.so, not found (try using -rpath or -rpath-link)

Which indicates that this is a known problem, fortunately known problems tend to have known solutions.
Back to top
View user's profile Send private message
Tuxido
n00b
n00b


Joined: 07 Apr 2008
Posts: 57
Location: Trondheim, Norway

PostPosted: Mon May 19, 2008 10:12 am    Post subject: Reply with quote

The solution worked, and now gif does too.

I really appreciate the help, thanks!
_________________
"Some smart quote" -Some cult guy
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