holger-kde at holgis.net
Sat Dec 24 16:17:47 CET 2005
On Thursday 22 December 2005 18:42, Nimrod Gutman wrote:
> I'm using the debug qt4.1 and I had a problem compiling kio/tests with the
> included mini-scons because it tried to link to QtTest and not QtTest_debug
> I'm not sure if it's the right way to do it but I can't think on why QtTest
> was included like this.
> I included a patch.
> (Bare with me, I'm just starting to grasp the coding format of everything
> so I might do mistakes.)
the right patch would be this one:
holger at gentoo ~/svn/trunk/KDE/kdelibs/kio/tests $ svn diff
--- SConscript (revision 490897)
+++ SConscript (working copy)
@@ -24,9 +24,9 @@
obj.vnum = '6.0.2'
obj.target = appname
obj.source = appname + '.cpp'
- obj.uselib = 'QT QTCORE QTGUI QTXML QT3SUPPORT KDE4'
+ obj.uselib = 'QT QTCORE QTGUI QTXML QT3SUPPORT KDE4 QTEST'
'.. ../../kdeui ../../kdecore ../../kdesu ../../dcop ../../qttestlib
#/kio ../../kdefx ../../kwallet/client'
- obj.libs = 'kio kdeui kdecore DCOP QtTest kdefx kwalletclient'
+ obj.libs = 'kio kdeui kdecore DCOP kdefx kwalletclient'
'. .. ../kssl ../bookmarks ../kfile ../kio ../misc ../../kdecore ../../kdefx ../../qttestlib
obj.libs += ' kdewin32 ws2_32'
the uselib parameter is a list of libs, against which this program will link.
the uselib is platform-independent and also handles things like appending the
_debug suffix when linking against the debug version of qt. for details you
can look at kdelibs/bksys/generic.py line 356.
More information about the Kde-buildsystem