[Bug 46107] qmake specs other than linux-g++ can't find moc or uic

Daniel Robitaille robitaille at gmail.com
Tue May 23 07:08:09 UTC 2006

Public bug reported:

Binary package hint: libqt4-dev

bug initially reported using reportbug

---------- Forwarded message ----------
From: Simon Perreault <nomis80 at nomis80.org>
To: Ubuntu Bug Tracking System <ubuntu-users at lists.ubuntu.com>
Date: Sun, 21 May 2006 09:10:08 -0400
Subject: libqt4-dev: qmake specs other than linux-g++ can't find moc or uic
Package: libqt4-dev
Version: 4.1.2-1ubuntu1
Severity: normal

When using a qmake spec other than the default one (linux-g++), qmake generates
a Makefile that can't find the correct moc or uic executable. That's because
they are renamed "moc-qt4" and "uic-qt4". There's a patch that changes QMAKE_MOC
and QMAKE_UIC in /usr/share/qt4/mkspecs/linux-g++/qmake.conf so that they
contain the correct values. However, all other specs are left unchanged. So if I
wish to use the Intel compiler, for example, and I call qmake with "-spec
linux-icc", the generated Makefile can't find moc and uic.

Solution: recursively modify qmake.conf files for all specs.

-- System Information:
Debian Release: testing/unstable
 APT prefers dapper-security
 APT policy: (500, 'dapper-security'), (500, 'dapper-backports'),
(500, 'dapper')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-23-386
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages libqt4-dev depends on:
ii  libaudio-dev          1.7-3ubuntu3       The Network Audio System (NAS). (d
ii  libfreetype6-dev      2.1.10-1ubuntu2    FreeType 2 font engine, developmen
ii  libgl1-mesa-dev [libg 6.4.1-0ubuntu8     A free implementation of the OpenG
ii  libglu1-mesa-dev [lib 6.4.1-0ubuntu8     The OpenGL utility library -- deve
ii  libice-dev            2:1.0.0-0ubuntu2   X11 Inter-Client Exchange library
ii  libjpeg62-dev         6b-11              Development files for the IJG JPEG
ii  libmng-dev            1.0.8-1            M-N-G library (Development headers
ii  libpng12-dev [libpng1 1.2.8rel-5         PNG library - development
ii  libqt4-core           4.1.2-1ubuntu1     Qt 4 core non-GUI functionality ru
ii  libqt4-gui            4.1.2-1ubuntu1     Qt 4 core GUI functionality runtim
ii  libqt4-qt3support     4.1.2-1ubuntu1     Qt 3 compatibility library for Qt
ii  libqt4-sql            4.1.2-1ubuntu1     Qt 4 SQL database module
ii  libsm-dev             2:1.0.0-0ubuntu2   X11 Inter-Client Exchange library
ii  libx11-dev            2:1.0.0-0ubuntu9   X11 client-side library (developme
ii  libxcursor-dev   X cursor management library (devel
ii  libxext-dev           2:1.0.0-0ubuntu4   X11 miscellaneous extensions libra
ii  libxft-dev     FreeType-based font drawing librar
ii  libxi-dev             2:1.0.0-0ubuntu3   X11 Input extension library (devel
ii  libxinerama-dev       2:1.0.1-0ubuntu2   X11 Xinerama extension library (de
ii  libxmu-dev            2:1.0.0-0ubuntu3   X11 miscellaneous utility library
ii  libxrandr-dev         1: X11 RandR extension library (devel
ii  libxrender-dev        1: X Rendering Extension client libra
ii  libxt-dev             1:1.0.0-0ubuntu3   X11 toolkit intrinsics library (de
ii  x11proto-core-dev     7.0.4-0ubuntu2     X11 core wire protocol and auxilia
ii  zlib1g-dev            1:1.2.3-6ubuntu4   compression library - development

Versions of packages libqt4-dev recommends:
ii  qt4-dev-tools             4.1.2-1ubuntu1 Qt 4 development tools

-- no debconf information

** Affects: qt4-x11 (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

qmake specs other than linux-g++ can't find moc or uic

More information about the kubuntu-bugs mailing list