[CLAM] Problem with compiling simple examples with scons

eparzy at aol.com eparzy at aol.com
Tue Nov 11 07:27:52 PST 2008


Hi!
I have a little problem with compiling the code examples that are in the wiki... I am new with using mingw and scons; I could compile the clam library itself, but now I want to compile these code examples to get familiar with the (I will need to make my own classes for my project).

I tried with the first example (http://clam.iua.upf.edu/wikis/clam/index.php/Constructing_and_playing_a_simple_network), using the given sconstruct file (http://clam.iua.upf.edu/wikis/clam/index.php/Minimal_SConstruct_to_build_with_CLAM_and_Qt4).

I try to compile it by typing that in the console in the directory where i have the sconstruct and main.cxx files:
$ scons clam_prefix='c:/mingw/local'

I get these errors:
TypeError: exceptions must be classes or instances, not str:
? File "D:\medialogy\med7\project\prog\SConstruct", line 23:
??? env.Tool('qt4', toolpath=[clam_sconstoolspath])
? File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Environment.py", line 1632:
??? tool(self)
? File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Tool\__init__.py", line 181:
??? apply(self.generate, ( env, ) + args, kw)
? File "C:\mingw\local\share\clam\sconstools\qt4.py", line 258:
??? QT4_LUPDATE = locateQt4Command(env,'lupdate', env['QTDIR']),
? File "C:\mingw\local\share\clam\sconstools\qt4.py", line 238:
??? raise "Qt4 command '" + command + "' not found. Tried: " + ', '.join(triedPaths)

I then tried commenting env.Tool('qt4', toolpath=[clam_sconstoolspath]) and the lines in the env.EnableQt4Modules call (I don't plan to use Qt classes later on).
. Trying to compile with the same console command as before, I get:
ValueError: list.remove(x): x not in list:
? File "D:\medialogy\med7\project\prog\SConstruct", line 60:
??? sources.remove(mainSource)

So in this case it seems that it's not even finding the main file...

Can somebody give me a hint about what's going wrong? It might be something trivial, as I said before I am really not used to scons and python scripting...

Thanks a lot in advance for help!
Emmanuel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-users-clam-project.org/attachments/20081111/f43efc73/attachment-0001.html>


More information about the clam-users mailing list