<font face="Arial, Helvetica, sans-serif">Hi!<br>
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).<br>
<br>
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).<br>
<br>
I try to compile it by typing that in the console in the directory where i have the sconstruct and main.cxx files:<br>
<i>$ scons clam_prefix='c:/mingw/local'</i><br>
<br>
I get these errors:<br>
<i>TypeError: exceptions must be classes or instances, not str:<br>
  File "D:\medialogy\med7\project\prog\SConstruct", line 23:<br>
    env.Tool('qt4', toolpath=[clam_sconstoolspath])<br>
  File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Environment.py", line 1632:<br>
    tool(self)<br>
  File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Tool\__init__.py", line 181:<br>
    apply(self.generate, ( env, ) + args, kw)<br>
  File "C:\mingw\local\share\clam\sconstools\qt4.py", line 258:<br>
    QT4_LUPDATE = locateQt4Command(env,'lupdate', env['QTDIR']),<br>
  File "C:\mingw\local\share\clam\sconstools\qt4.py", line 238:<br>
    raise "Qt4 command '" + command + "' not found. Tried: " + ', '.join(triedPaths)<br>
</i><br>
I then tried commenting </font><font face="Arial, Helvetica, sans-serif"><i>env.Tool('qt4', toolpath=[clam_sconstoolspath]) </i>and </font><font face="Arial, Helvetica, sans-serif">the lines in the <i>env.EnableQt4Modules</i> call (I don't plan to use Qt classes later on).<br>
. Trying to compile with the same console command as before, I get:<br>
<i>ValueError: list.remove(x): x not in list:<br>
  File "D:\medialogy\med7\project\prog\SConstruct", line 60:<br>
    sources.remove(mainSource)<br>
<br>
</i>So in this case it seems that it's not even finding the main file...<br>
<br>
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...<br>
<br>
Thanks a lot in advance for help!<br>
Emmanuel<br>
<br>
<br>
</font>