[linux-audio-dev] qsynth configure script fails on debian [qt]

Florian Schmidt mista.tapas at gmx.net
Fri Jan 2 13:09:05 UTC 2004


Hi,

i just compiled qsynth-0.1.0 and i would lie to report on my findings:

On Debian, the qt-libs are installed to 

/usr/lib/ 

and the headers to

/usr/include/qt3

There's no QTDIR per se. So i exported it to be /usr. This way, the
configure script finds the lib, but the following test fails:

checking whether QTDIR environment variable is set... /usr/
checking for Qt library... qt-mt
checking for Qt library version >= 3.1.1... no; Qt 3.1.1 or greater is
required

the entry from config.log:

----
configure:1167: c++ -o conftest -g -O2  -I/usr//include  conftest.C
-L/usr//lib -L/usr/X11R6/lib 1>&5
configure:1157:21: qglobal.h: No such file or directory
configure:1161:2: #error Qt library 3.1.1 or greater required.
configure: failed program was:
#line 1156 "configure"
#include "confdefs.h"
#include "qglobal.h"
int main() {

#if QT_VERSION < 0x030101
#error Qt library 3.1.1 or greater required.
#endif

; return 0; }
----

Hmm, looking at the commandline to compile this, it cannot work, since
the include path is /usr/lib. so i changed this in the configure script:

#include "confdefs.h"
#include "qglobal.h"

to

#include "qt3/confdefs.h"
#include "qt3/qglobal.h"


Then i get an error again: cannot find confdefs.h. So i check my qt3
include dir and it is not there. so i removed the line from the qt3 test
program from configure. And now the test runs fine and the program
compiles nicely..

My suggestion: Add a --with-qt-inc-dir and a --with-qt-lib-dir switch to
the configure script, so "non standard" [though the qt way itself is non
standard] qt installations can be found, to.

I still wonder where that confdefs header file lives on my computer.
gonna start a find / now ;) Maybe there's a more grcefule way to handle
this configure problem. /me doesn't know it..



Flo



-- 
music: http://www.soundclick.com/bands/9/florianschmidt.htm





More information about the Linux-audio-dev mailing list