trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] crystal 1.0.5 builds 1.0.7 doesn't - how/what do I compare to figure out why?

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 26 Mar 2012 23:31:29 -0500
On 03/26/2012 10:04 PM, David C. Rankin wrote:
> On 03/26/2012 09:59 PM, David C. Rankin wrote:
> 
>>
>> Ugh!
>>
>>   On Arch it's owned by Qt4 -- we're screwed..:
>>
>> build/pkg> pacman -Qo /usr/include/QtGui/qtransform.h
>> /usr/include/QtGui/qtransform.h is owned by qt 4.8.0-6
>>
>>
>>
> 
> Ahah!,
> 
>   Found it in:
> 
> 22:00 nirvana:~/tde/tde/main/dependencies> find tqtinterface/ -name qtransform.h
> tqtinterface/qtinterface/qt4/Qt/qtransform.h
> 
>   Is there a way to cause qtransform.h to be installed while building
> tqtinterface with TQt3 - that looks like the operative question to building
> crystal 1.0.7 on TDE...
> 
>   If anyone know the answer, let me know. Otherwise, I'll work through it and
> see if it is doable :)
> 
> 

Tim, Serghei,

  I think the QtGui header inclusion in tqtinterface is controlled depending on
the Qt version. If you use Qt3 you don't get QtGui, but if you use Qt4, you do.
This seems to be the way ConfigureChecks.cmake works:

# check if Qt3 is usable
if( QT_VERSION STREQUAL "3" )
  check_cxx_source_compiles("
    #include <qapplication.h>
    int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } "
    HAVE_USABLE_QT${QT_VERSION} )
    if( NOT HAVE_USABLE_QT${QT_VERSION} )
      # Unset the Qt detection variable
      unset( HAVE_USABLE_QT${QT_VERSION} CACHE )
      # Reset libraries
      set( QT_LIBRARIES tqt-mt )
      set( CMAKE_REQUIRED_LIBRARIES -L${QT_LIBRARY_DIR} ${QT_LIBRARIES} )
      qt_message( "Looking for native TQt3..." )
      check_cxx_source_compiles("
        #include <ntqapplication.h>
        int main(int argc, char **argv) { TQApplication app(argc, argv); return
0; } "
        HAVE_USABLE_QT${QT_VERSION} )
    endif( )
# check if Qt4 is usable
elseif( QT_VERSION STREQUAL "4" )
  check_cxx_source_compiles("
    #include <QtGui/QApplication>
    int main(int argc, char **argv) { QApplication app(argc, argv); return 0; } "
    HAVE_USABLE_QT${QT_VERSION} )
endif( )

  The question becomes: can we set a flag that causes the QtGui headers to also
be included when using TQt3? Or, are the QtGui headers and TQt3 mutually exclusive?


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