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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] qsynth configure script fails on debian [qt]
From: Florian Schmidt (mista.tapas_AT_gmx.net)
Date: Fri Jan 02 2004 - 15:09:05 EET


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Jan 02 2004 - 15:09:35 EET