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 21:26:58 +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.
I have finally managed to manage arts CMake to pass the TQt sanity test.
Just FYI, here is what I have done after having installed tqtinterface:
-make a /opt/trinity/include/tqt/tqt4 -> /opt/trinity/include/tqt
symlink
-change /usr/lib64/trinity/tqt.pc with the following modifications:
==========
--- tqt.pc      2011-05-05 19:58:50.000000000 +0200
+++ tqt-correct.pc      2011-05-05 21:15:35.944199349 +0200
@@ -5,11 +5,11 @@
 
 tmoc_executable=/opt/trinity/bin/tmoc
 moc_executable=/usr/bin/moc
-uic_executable=
+uic_executable=/usr/bin/uic
 
 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
+Libs: -L${libdir} -ltqt -L/usr/lib64  -lQtCore -lQtGui -lQt3Support
+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/opt/trinity/include -I${includedir} -include tqt.h
==========
Don't know why the flags and uic_executable are fscked up, neither why
QT_NO_COMPAT is defined while the main tqt.h #include's q3*.h stuff
(but perhaps the latter is right, I don't know).
> 
> 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.
> 
> 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
>