Re: [Lprof-users] cvs + scons
Brought to you by:
hvengel
From: Hal V. E. <hv...@as...> - 2009-06-17 15:26:54
|
On Wednesday 17 June 2009 04:50:47 am Kai-Uwe Behrmann wrote: > Thanks for your hint Hal. > Now with scons 1.2 a bit better: > > & python scons.py PREFIX=/opt/ > local > scons: Reading SConscript files ... > Looking for build directory for platform 'linux2' > Exact match not found, finding closest guess > Found directory build/linux, will build there > > scons: warning: The Options class is deprecated; use the Variables class > instead . > File "/data3/CD/programme/Grafik/lcms/lprof/SConstruct", line 41, in > <module> > > scons: warning: The PathOption() function is deprecated; use the > PathVariable() function instead. > File "/data3/CD/programme/Grafik/lcms/lprof/SConstruct", line 42, in > <module> > > scons: warning: The BoolOption() function is deprecated; use the > BoolVariable() function instead. > File "/data3/CD/programme/Grafik/lcms/lprof/SConstruct", line 50, in > <module> NameError: global name 'fullpath1' is not defined: > File "/data3/CD/programme/Grafik/lcms/lprof/SConstruct", line 71: > env.Tool('qt4', toolpath=['.']) > File "/usr/lib/python2.5/site-packages/SCons/Environment.py", line 1690: > tool(self) > File "/usr/lib/python2.5/site-packages/SCons/Tool/__init__.py", line > 181: apply(self.generate, ( env, ) + args, kw) > File "/data3/CD/programme/Grafik/lcms/lprof/qt4.py", line 260: > QT4_RCC = locateQt4Command(env,'rcc', env['QTDIR']), > File "/data3/CD/programme/Grafik/lcms/lprof/qt4.py", line 241: > raise "Qt4 command '" + command + "' not found. Tried: " + fullpath1 + > " and "+ fullpath2 The last line is the clue. It can't find your Qt4 installation. You need to set the qt_directory like this: scons qt_directory=<path to qt4 installation> It also appears that QTDIR is not set. On many systems this is either not set at all (SuSE is like this) or it points to the Qt3 installation (my distro is this way). So the other option is to do something like this: QTDIR=<path th Qt4 install> scons But if you use the first version it will remember this and you only have to do it the first time you use the scons command in the lprof source tree. Hal |