Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 212722 - define QTINC/QTLIB in qt.sh/qt.csh
define QTINC/QTLIB in qt.sh/qt.csh
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: qt (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
: EasyFix, Patch
Depends On: 169132
  Show dependency treegraph
Reported: 2006-10-28 08:30 EDT by Rex Dieter
Modified: 2009-01-22 10:47 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-22 10:47:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
KDE Software Compilation 136377 None None None Never
Red Hat Product Errata RHBA-2009:0026 normal SHIPPED_LIVE qt bug fix update 2009-01-22 10:47:51 EST

  None (edit)
Description Rex Dieter 2006-10-28 08:30:44 EDT
+++ This bug was initially created as a clone of Bug #169132 +++

A large class of kde applications have issues building properly on x86_64
because they have trouble finding qt (usually lib != lib64 assumptions, etc). 
The workaround is usually to either define env vars QTINC/QTLIB (or use
./configure --with-qt-includes/--with-qt-libraries) pointing to the right place.

A lot of duplicated/extra effort could be avoided if QTINC and QTLIB were
already (correctly) defined in /etc/profile.d/qt.(sh|csh), adding lines like
# Qt initialization script (sh)

if [ -z "$QTDIR" ] ; then
  QTDIR="`/usr/bin/pkg-config --variable=prefix qt-mt`"
  QTINC="`/usr/bin/pkg-config --variable=includedir qt-mt`"
  QTLIB="`/usr/bin/pkg-config --variable=libdir qt-mt`"

  if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then


# Qt initialization script (csh)

if ( $?QTDIR ) then

setenv QTDIR `/usr/bin/pkg-config --variable=prefix qt-mt` 
setenv QTINC `/usr/bin/pkg-config --variable=includedir qt-mt` 
setenv QTLIB `/usr/bin/pkg-config --variable=libdir qt-mt` 

if ( "${path}" !~ *$QTDIR/bin* ) then
   set path = ( $QTDIR/bin $path )
Comment 2 Rex Dieter 2007-10-05 09:20:44 EDT
I know updates for RHEL4 take longer, but gee wiz, it's now approaching a *year*
since filing this small, simple enhancement request.

Heck, now upstreams are using this as an excuse to not fix their configure
scripts ( see http://bugs.kde.org/136377 ).
Comment 12 errata-xmlrpc 2009-01-22 10:47:54 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.