Menu

scons and qt-mt

Help
Mark Flacy
2006-06-05
2013-05-01
  • Mark Flacy

    Mark Flacy - 2006-06-05

    Greetings.

    I've attempted to use scons to compile fsme from CVS, but the qt-mt test didn't work on my machine (Slackware 10.2).  The test compiles using CheckLib() always attempted to link libqt which isn't present on my system.  The following test in the root directory SCons did return the correct result:

    oldQt = conf.env['QT_LIB']
    conf.env['QT_LIB'] = 'qt-mt'
    if conf.CheckLib( 'qt-mt', "new QString", "#include <qt.h>", language="C++" ):
            conf.env.Append( CPPDEFINES = 'QT_THREAD_SUPPORT' )
    else:
            conf.env['QT_LIB'] = oldQt

     
    • Mark Flacy

      Mark Flacy - 2006-06-05

      *sigh*

      Add a tab at the beginning of these lines...

      conf.env.Append( CPPDEFINES = 'QT_THREAD_SUPPORT' )

      conf.env['QT_LIB'] = oldQt

       
      • Alexander Darovsky

        it's very strange. Actually, test looks as following:

        if conf.CheckLib( 'qt-mt' ):
            conf.env['QT_LIB'] = 'qt-mt'
            conf.env.Append( CPPDEFINES = 'QT_THREAD_SUPPORT' )

        and it should give you correct results...

         
    • Mark Flacy

      Mark Flacy - 2006-06-06

      Yes, I know what the current test in CVS looks like.

      It doesn't work on my machine, always returning "no".  (Qt 3.3.4, gcc 3.3.6, Slackware 10.2)

      The change which I posted returns the correct answer  of "yes".

      Slackware does not ship both the multi-threaded and single threaded versions of the Qt library.  Only the multi-threaded one.  The test in CVS fails when it attempts to link the non-existing libqt.so library.

       

Log in to post a comment.