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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
*sigh*
Add a tab at the beginning of these lines...
conf.env.Append( CPPDEFINES = 'QT_THREAD_SUPPORT' )
conf.env['QT_LIB'] = oldQt
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...
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.