trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

tqca-tls build fails : Verifying TQt 3.x Multithreaded (MT) build environment ... fail

From: "David C. Rankin" <drankinatty@...>
Date: Sat, 03 Mar 2012 15:13:19 -0600
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");



-- 
David C. Rankin, J.D.,P.E.