Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249088 - Qt qmake not found! (for KDE4 & QT4, in system that still has QT3) -- multiple versions of multiple packages.
Summary: Qt qmake not found! (for KDE4 & QT4, in system that still has QT3) -- multip...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 15:00 UTC by Brad Allen
Modified: 2009-08-01 16:38 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 Brad Allen 2008-11-27 15:00:43 UTC
When compiling various packages including kdelibs (version 4 and above),
cmake has trouble finding qmake if both qt3 and qt4 are installed and
the qt3 qmake is earlier in PATH environment variable (loaded from
/etc/env.d in my system).

The solution is to go to /etc/env.d and rearrange XXbasic and XXqt3 until qt3's
PATH is later in the final PATH than /usr/bin.

That means putting XXbasic at a lower # than XXqt3 (I moved qt3 up and basic
a tad down).

Reproducible: Always

Steps to Reproduce:
Switch to KDE4, but keep qt3 around.
Actual Results:  
Example is with problem present.  I show just one of many packages that exhibit this error; kdelibs was the first that hit me.

#0 paludis -i kdepimlibs okular
Building target list...
Building dependency list...

These packages will be installed:

* kde-base/kdepimlibs :4.1 [U 4.1.2 -> 4.1.3] <target>
    -debug -htmlhandbook -kdeprefix -ldap sasl -test
* app-text/libspectre [U 0.2.0 -> 0.2.1]
    -debug -doc -test
    380.97 kBytes to download
* kde-base/okular :4.1 [U 4.1.2 -> 4.1.3] <target>
    -chm -debug djvu -htmlhandbook jpeg -kdeprefix -pdf tiff
    3.28 MBytes to download

Total: 3 packages (3 upgrades), 3.65 MBytes to download

(1 of 3) Installing kde-base/kdepimlibs-4.1.3:4.1::gentoo

Checking 'kdepimlibs-4.1.3.tar.bz2'... ok
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold
>>> Done builtin_killold
>>> Completed ebuild phase killold
>>> Running ebuild phases init saveenv as paludisb:paludisbuild...
>>> Starting builtin_init
>>> Done builtin_init
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases init saveenv
>>> Running ebuild phases loadenv setup saveenv as root:root...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting pkg_setup
>>> Done pkg_setup
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv setup saveenv
>>> Running ebuild phases loadenv unpack prepare configure compile saveenv as paludisb:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_unpack
>>> Unpacking kdepimlibs-4.1.3.tar.bz2 to /var/tmp/paludis/kde-base-kdepimlibs-4.1.3/work
tar jxf /var/cache/distfiles/kdepimlibs-4.1.3.tar.bz2 --no-same-owner
>>> Unpacking kdepimlibs-4.1.3.tar.bz2 to /var/tmp/paludis/kde-base-kdepimlibs-4.1.3/work
tar jxf /var/cache/distfiles/kdepimlibs-4.1.3.tar.bz2 --no-same-owner
>>> Done src_unpack
>>> Starting src_prepare
>>> Done src_prepare
>>> Starting src_configure
loading initial cache file /var/tmp/paludis/kde-base-kdepimlibs-4.1.3/temp//gentoo_common_config.cmake
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/apps/cmake/modules/FindQt4.cmake:1458 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:267 (find_package)
  /usr/share/cmake/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  CMakeLists.txt:6 (find_package)


-- Configuring incomplete, errors occurred!

!!! ERROR in kde-base/kdepimlibs-4.1.3:
!!! In cmake-utils_src_configureout at line 1227
!!! Cmake failed

!!! Call stack:
!!!    * cmake-utils_src_configureout (/var/tmp/paludis/kde-base-kdepimlibs-4.1.3/temp/loadsaveenv:1227)
!!!    * kde4-base_src_configure (/var/tmp/paludis/kde-base-kdepimlibs-4.1.3/temp/loadsaveenv:3381)
!!!    * src_configure (/var/tmp/paludis/kde-base-kdepimlibs-4.1.3/temp/loadsaveenv:4296)
!!!    * ebuild_f_configure (/usr/libexec/paludis/2/src_configure.bash:52)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:477)
!!!    * main (/usr/libexec/paludis/ebuild.bash:492)

diefunc: making ebuild PID 19048 exit with error
die trap: exiting with error.

Install error:
  * In program /usr/bin/paludis -i kdepimlibs okular:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'kde-base/kdepimlibs-4.1.3:4.1::gentoo':
  * Install error: Install failed for 'kde-base/kdepimlibs-4.1.3:4.1::gentoo'



Summary of failures:

* kde-base/kdepimlibs-4.1.3:4.1::gentoo: failure

Total: 3 packages, 0 successes, 0 skipped, 1 failure, 2 unreached

Resume command: /usr/bin/paludis --log-level qa --install --add-to-world-spec '( kde-base/kdepimlibs kde-base/okular )' --serialised 0.25 'package;=kde-base/kdepimlibs-4.1.3:4.1::gentoo;installed;has_all_deps;P' 'package;=app-text/libspectre-0.2.1:0::gentoo;installed;has_all_deps;P' 'package;=kde-base/okular-4.1.3:4.1::gentoo;installed;has_all_deps;P'

 * No unread news items found

 * Searching for configuration files requiring action...
 * Found 82 files in /etc
 * Found files in 1 directories
 * Your action is required

Expected Results:  
Example is with kdelibs, since that's the one I had on the screen when writing this bug.  Relevent excerpt shown; relevent line in below is:
-- Found Qt-Version 4.4.2 (using /usr/bin/qmake)

Checking 'kdelibs-4.1.3.tar.bz2'... ok
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold
>>> Done builtin_killold
>>> Completed ebuild phase killold
>>> Running ebuild phases init saveenv as paludisb:paludisbuild...
>>> Starting builtin_init
>>> Done builtin_init
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases init saveenv  
>>> Running ebuild phases loadenv setup saveenv as root:root...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting pkg_setup
>>> Done pkg_setup
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv setup saveenv
>>> Running ebuild phases loadenv unpack prepare configure compile saveenv as paludisb:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_unpack
>>> Unpacking kdelibs-4.1.3.tar.bz2 to /var/tmp/paludis/kde-base-kdelibs-4.1.3-r1/work
tar jxf /var/cache/distfiles/kdelibs-4.1.3.tar.bz2 --no-same-owner
>>> Unpacking kdelibs-4.1.3.tar.bz2 to /var/tmp/paludis/kde-base-kdelibs-4.1.3-r1/work
tar jxf /var/cache/distfiles/kdelibs-4.1.3.tar.bz2 --no-same-owner
>>> Done src_unpack
>>> Starting src_prepare
 * Applying kdelibs-4.1.1-cmake-modules.patch ...                        [ ok ]
 * Applying 4.1.3-cmake-config.patch ...                                 [ ok ]
>>> Done src_prepare
>>> Starting src_configure
loading initial cache file /var/tmp/paludis/kde-base-kdelibs-4.1.3-r1/temp//gentoo_common_config.cmake
-- The C compiler identification is GNU   
-- The CXX compiler identification is GNU 
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done   
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done 
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.2 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found


I hope submitting this bug saves a lot of trouble for other people who had the same problem.  I took months to find a Google that worked.  As qt4 & kde4 become more popular (kde3 being phased out), this will be more and more of an issue (until it dies down again when it all gets fixed, and when the old ones go away).
Comment 1 Maciej Mrozowski gentoo-dev 2009-06-04 16:16:45 UTC
Please try to reproduce now - it's most certainly fixed now.