Bug#475825: FTBFS: ERROR: could not build a simple Qt program.
I just reproduced this problem. First, I got the following problem:
Checking Qt version...no!
ERROR: incorrect Qt version found: **Unknown**
The "**Unknown**" strings comes from a call to qmake -query QT_VERSION.
This seems to be a problem of qt3:
jan@x61s:/tmp/qbrew-0.4.0$ qmake-qt4 -query QT_VERSION
4.4.0-rc1
jan@x61s:/tmp/qbrew-0.4.0$ qmake-qt3 -query QT_VERSION
**Unknown**
Therefore, there are two possibilites to fix this: Either a
Build-Conflicts against qt3-dev-tools, or an explicit call to qmake-qt4
instead of just calling qmake.
However, as buildds probably don't have qt3-dev-tools installed, this
probably is not the cause of the FTBFS bug. So I tried again in a clean
changeroot. Here, I got the following error:
/usr/bin/ld: cannot find -lfontconfig
This can be fixed by adding CONFIG -= link_prl to the .pro files
(qbrew.pro as well as the ones dynamically generated by configure.)
With the following patch, qbrew builds again inside a clean chroot:
diff -ur qbrew-0.4.0.orig/configure qbrew-0.4.0/configure
--- qbrew-0.4.0.orig/configure 2008-04-14 20:25:19.000000000 +0200
+++ qbrew-0.4.0/configure 2008-04-14 20:26:31.000000000 +0200
@@ -141,6 +141,7 @@
TARGET = config
CONFIG += qt $BUILDMODE
CONFIG -= app_bundle
+CONFIG -= link_prl
QT -= gui
HEADERS += config.h
SOURCES += config.cpp
@@ -193,6 +194,7 @@
cat > testfunc.pro <<EOT
TARGET = testfunc
CONFIG -= app_bundle qt
+CONFIG -= link_prl
SOURCES += testfunc.cpp
EOT
$QMAKE testfunc.pro > /dev/null 2>&1
diff -ur qbrew-0.4.0.orig/qbrew.pro qbrew-0.4.0/qbrew.pro
--- qbrew-0.4.0.orig/qbrew.pro 2008-04-14 20:25:19.000000000 +0200
+++ qbrew-0.4.0/qbrew.pro 2008-04-14 20:13:49.000000000 +0200
@@ -5,6 +5,7 @@
TARGET = qbrew
TEMPLATE = app
CONFIG += qt warn_on
+CONFIG -= link_prl
QT += xml
MOC_DIR = build
Reply to: