Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13319 - qt-2.3.2-r1.ebuild needs -I/usr/include/freetype
Summary: qt-2.3.2-r1.ebuild needs -I/usr/include/freetype
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Lowest minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-05 15:54 UTC by Derek Dolney
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Dolney 2003-01-05 15:54:09 UTC
I had to change qt-2.3.2-r1.ebuild to pass -I/usr/include/freetype2 to the
configure script to get qt2 to compile.

Compiling qt-2.3.2/src/kernel/qpsprinter.cpp dies without this, because it
includes /usr/X11R6/include/Xft.h, which includes <freetype/freetype.h>.

freetype.h is either not found, or it tries to include freetype.h for freetype1.
Should Xft.h include <freetype2/freetype/freetype.h> ?
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-06 07:11:55 UTC
do you have x11-libs/xft merged? which cvs version of /usr/include/X1//Xft/Xft.h do 
you have (grep "lib/Xft" /usr/include/X11/Xft/Xft.h should show this). 
is this the same as bug #13109? 
which version/s of freetype are merged? 
Comment 2 Derek Dolney 2003-01-07 13:19:44 UTC
>On Mon, Jan 06, 2003 at 02:59:14PM -0500, Derek Dolney wrote:
>
>>bugzilla-daemon@chiba.3jane.net wrote:
>>
>>>http://bugs.gentoo.org/show_bug.cgi?id=13319
>>>
>>>
>>>
>>>
>>>
>>>------- Additional Comments From hannes@gentoo.org  2003-01-06 07:11 
>>>-------
>>>do you have x11-libs/xft merged?
>>>
>>I have x11-libs/xft-2.0.1.ebuild merged.
>>
>>>which cvs version of /usr/include/X1//Xft/Xft.h do 
>>>you have (grep "lib/Xft" /usr/include/X11/Xft/Xft.h should show this).
>>>
>>The grep says: * $XFree86: xc/lib/Xft/Xft.h,v 1.30 2002/10/11 17:53:02 
>>keithp Exp $
>>
>>>is this the same as bug #13109? 
>>>
>>I'm not sure. I couldn't find the error message "could not find 
>>freetype.h" in that bug report, but it stops on the same file 
>>(qpsprinter.cpp).
>>
>>>which version/s of freetype are merged? 
>>>
>>Only freetype2 at first, but I tried merging freetype1---it didn't help, 
>>of course.
>>
>>By the way, the subject of this bug report is wrong: I had to use 
>>-I/usr/include/freetype2. The text was correct.
>>
>>It seems that the configure script is not using freetype-config right, 
>>because "freetype-config --cflags" gives "-I/usr/include/freetype2" on 
>>my machine, which is correct.
>>

>didn't qt fail with the same error as in bug #13109?

Roughly the same error. It does die compiling the same file as my build, but
mine gave the error message "could not find freetype.h", which I don't see in
#13109.

>what does readlink /usr/X11R6/lib/libXft.so return?

../../lib/libXft.so.2.0

>what's the output of ls -l /usr/include/X11/Xft/?

total 24
-rw-r--r--    1 root     root        12294 Jan  5 15:53 Xft.h
-rw-r--r--    1 root     root         5399 Jan  5 01:32 XftCompat.h

>Best Regards,
>
>Hannes Mehnert
>
Comment 3 Derek Dolney 2003-01-07 13:21:13 UTC
>btw, for what do you need qt-2?

I wanted to try out showimg.
Comment 4 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-08 15:45:03 UTC
ok, update: qt-2.3.2-r1 gets configured with -no-xft now (there are several reasons: 
-x11-libs/xft got unmasked (which contains xft-2.x ebuilds) 
-qt-2 does not work with xft-2 
-xft-1 was provided by xfree, but not all xfree ebuilds provide xft-1 (xfree-4.2.99.3 
does not)) 
 
please update the ebuild and try again. thanks. 
Comment 5 Derek Dolney 2003-01-09 01:23:10 UTC
It works for me now. I rebuilt without problems.

Thank you.
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-09 01:39:17 UTC
ok, thanks. mark as fixed.