
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks, that problem is solved, but this time scons has given me another error:
src/mdt_atom_classes.c: In function 'read_atom_class_file': src/mdt_atom_classes.c:273:3: error: passing argument 1 of 'mod_file_read_contents' from incompatible pointer type [-Werror] In file included from src/mdt_atom_classes.c:8:0: /afs/ics.muni.cz/home/pirat/modeller9.13/src/include/mod_file.h:103:10: note: expected 'struct mod_file *' but argument is of type 'struct FILE *' src/mdt_atom_classes.c:273:3: error: too many arguments to function 'mod_file_read_contents' In file included from src/mdt_atom_classes.c:8:0: /afs/ics.muni.cz/home/pirat/modeller9.13/src/include/mod_file.h:103:10: note: declared here cc1: all warnings being treated as errors scons: *** [src/mdt_atom_classes.os] Error 1 scons: building terminated because of errors.
While looking backwards in log:
Checking for GLib2 using pkg-config...(cached) found, headers in /usr/include/glib-2.0
it is clear, that scons somehow found an older version of glib (2.4+ is needed), altough I have defined correct one in config.py.
best, martin
Dňa 18.05.2015 o 18:56 Ben Webb napísal(a): > On 5/18/15 7:58 AM, Martin Plutinský wrote: >> I have problems compiling MDT. Running scons gives me this error >> message: > ... >> pyext/mdt_wrap.c:3433:3: error: invalid preprocessing directive >> #Wrap > > This is because you're using a newer version of SWIG; they made it > a bit more strict in later versions. The fix is simple though - > edit pyext/mdt.i and change this line: > > # Wrap MDT types > > to instead read > > /* Wrap MDT types */ > > Then rerun scons. > > Ben