trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] tqtinterface SVN produces bad tqt.pc with Qt4

From: /dev/ammo42 <mickeytintincolle@...>
Date: Thu, 5 May 2011 22:03:21 +0200
Le Thu, 5 May 2011 13:37:36 -0500,
"Timothy Pearson" <kb9vqf@...> a �crit :

> > Le Thu, 5 May 2011 20:20:14 +0200,
> > /dev/ammo42 <mickeytintincolle@...> a écrit :
> >
> >> Hello,
> >> When I compile tqtinterface under Slackware64 13.37 (KDE4 is
> >> installed, no Qt3) with Qt4 support, it produces a wrong tqt.pc:
> >> ==========
> >> $ cmake ../dependencies/tqtinterface/
> >> -DCMAKE_INSTALL_PREFIX=/opt/trinity     -DCMAKE_VERBOSE_MAKEFILE=ON
> >> -DUSE_QT4=ON     -DQTDIR=/opt/qt     -DQT_LIBRARY_DIRS=/opt/qt/lib
> >> -DBUILD_ALL=ON -DLIB_SUFFIX=64
> >> ==========
> >> followed by make -j5 and standard installation (via Slackware
> >> packages) produces the following /usr/lib64/pkgconfig/tqt.pc:
> >> ==========
> >> prefix=/opt/trinity
> >> exec_prefix=${prefix}
> >> libdir=${prefix}/lib64
> >> includedir=${prefix}/include/tqt
> >>
> >> tmoc_executable=/opt/trinity/bin/tmoc
> >> moc_executable=/usr/bin/moc
> >> uic_executable=
> >>
> >> Name: TQt
> >> Description: Interface and abstraction library for Qt and Trinity
> >> Version: 3.5.13
> >> Libs: -L${libdir} -ltqt -L/usr/lib64  -lQtCore -lQtGui
> >> Cflags: -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL
> >> -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT
> >> -I/usr/include/qt4 -I${includedir} -include tqt.h
> >> ===========
> >> The uic_executable is not defined, causing arts failing to build.
> >> ===========
> >> $ which uicopt/trinity/include/tqt/Qt/qglobal.h
> >> /usr/bin/uic
> >> ===========
> >> shows that uic is really installed on my system.
> > Also, it installs includes in locations such as
> > /opt/trinity/include/tqt/Qt/qglobal.h
> > while /opt/trinity/include/tqt/tqt.h #include's such headers as
> > <tqt4/Qt/qglobal.h> (the tqt/Qt/*.h installed headers are
> > Qt4-related ones for sure since there are Qt3-compatibility headers
> > such as /opt/trinity/include/tqt/Qt/q3cstring.h).
> >
> 
> TQt4 has not even reached alpha yet; these kinds of (relatively minor)
> problems are fully expected.
> 
> The primary focus at the moment is on the CMake conversion and
> getting the Trinity modules to build against the TQt4 packages that
> are automatically built under Ubuntu.
Here is the patch needed to build arts with TQt4:
Index: qtmcop/qiomanager.cc
===================================================================
--- qtmcop/qiomanager.cc	(r�vision 1230499)
+++ qtmcop/qiomanager.cc	(copie de travail)
@@ -156,9 +156,9 @@
 	else
 	{
 		if(blocking)
-			tqApp->processOneEvent();
+			qApp->processOneEvent();
 		else
-			tqApp->processEvents(0);
+			qApp->processEvents(0);
 	}
 }
 
Index: qtmcop/qiomanager_p.h
===================================================================
--- qtmcop/qiomanager_p.h	(r�vision 1230499)
+++ qtmcop/qiomanager_p.h	(copie de travail)
@@ -40,7 +40,7 @@
 
 class QIOWatch : public TQObject {
 	Q_OBJECT
-	TQ_OBJECT
+//	TQ_OBJECT
 protected:
 	TQSocketNotifier *qsocketnotify;
 	int _fd;
@@ -62,7 +62,7 @@
 
 class QTimeWatch : public TQObject {
 	Q_OBJECT
-	TQ_OBJECT
+//	TQ_OBJECT
 protected:
 	TQTimer *timer;
 	TimeNotify *_client;

artsd runs, but I didn't test it further for now.
Is TQ_OBJECT really useful now ? It's not defined by TQt4 and defined
to nothing by TQt3.
> 
> Tim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> trinity-devel-unsubscribe@... For additional
> commands, e-mail: trinity-devel-help@... Read
> list messsages on the Web archive:
> http://trinity-devel.pearsoncomputing.net/ Please remember not to
> top-post:
> http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
>