Tim, all,
I'm trying to build tqca-tls with ./configure --qtdir=${QTDIR} and I'm getting a configure failure:
Configuring qca-tls ... Verifying TQt 3.x Multithreaded (MT) build environment ... fail
There was an error compiling 'conf'. Be sure you have a proper TQt 3.x Multithreaded (MT) build environment set up.
This TDE build is based on TQt3 and I have built and installed the following:
hal-0.5.14-8-x86_64.pkg.tar.xz hal-info-0.20091130-1-any.pkg.tar.xz libutempter-1.1.5-3-x86_64.pkg.tar.xz tde-tqt3-3.8.8.d_git-1-x86_64.pkg.tar.xz tde-tqtinterface-3513_tqt-8-x86_64.pkg.tar.xz tde-arts-3513_tqt-1-x86_64.pkg.tar.xz tde-dbus-tqt-3513_tqt-1-x86_64.pkg.tar.xz tde-dbus-tqt-1-3513_tqt-1-x86_64.pkg.tar.xz
conf.log error is:
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DX11_INC='"/usr/X11R6/include"' -DX11_LIBDIR='"/usr/X11R6/lib64"' -DX11_LIB='"-lXext -lX11 -lm"' -DCC='"gcc"' -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/opt/tqt3/mkspecs/default -I. -I'/usr/include/tqt' -I/opt/tqt3/include -I/usr/X11R6/include -o conf.o conf.cpp conf.cpp:3:21: fatal error: tqstring.h: No such file or directory
The problem seems to be the /usr/include/tqt is hardcoded in 'configure'.
class qc_openssl : public ConfObj { public: qc_openssl(Conf *c) : ConfObj(c) {} TQString name() const { return "OpenSSL"; } TQString shortname() const { return "openssl"; } bool exec() { <snip> // Make sure tqtinterface can be found conf->addIncludePath("/usr/include/tqt"); ^^^^^^^^^^^^^^^^^^
How to fix? Looks like the configure file need to be updated to take the '--prefix=' option and set TDEDIR and then do something like:
// Make sure tqtinterface can be found conf->addIncludePath("${TDEDIR}/include/tqt");
On 03/03/2012 03:13 PM, David C. Rankin wrote:
Tim, all,
I'm trying to build tqca-tls with ./configure --qtdir=${QTDIR} and I'm getting a configure failure:
Configuring qca-tls ... Verifying TQt 3.x Multithreaded (MT) build environment ... fail
There was an error compiling 'conf'. Be sure you have a proper TQt 3.x Multithreaded (MT) build environment set up.
<snip>
How to fix? Looks like the configure file need to be updated to take the '--prefix=' option and set TDEDIR and then do something like:
// Make sure tqtinterface can be found conf->addIncludePath("${TDEDIR}/include/tqt");
I got configure fixed with a temporary hack hardcoding /opt/trinity. This is just a temporary hack for me. How do we correctly fix configure so it will accept '--prefix='? (my configure/Make skills are limited :) The patch I used was:
--- configure.orig 2012-03-03 15:09:40.527391331 -0600 +++ tqca-tls/configure 2012-03-03 16:03:57.828044145 -0600 @@ -184,7 +184,7 @@ conf->addLib("-lssl -lcrypto");
// Make sure tqtinterface can be found - conf->addIncludePath("/usr/include/tqt"); + conf->addIncludePath("/opt/trinity/include/tqt");
return true; } @@ -507,7 +507,7 @@ TEMPLATE = app CONFIG += qt x11 thread console TARGET = conf -INCLUDEPATH += '/usr/include/tqt' +INCLUDEPATH += '/opt/trinity/include/tqt'
DEFINES += X11_INC='"$$QMAKE_INCDIR_X11"' DEFINES += X11_LIBDIR='"$$QMAKE_LIBDIR_X11"'