[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MDT-users] compiling problems



-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVWirWAAoJEF2Es9UpCTZTp1cH/3KoHmkv6kJzzGVfII1PMAay
dlNiDyDPQAKcbbvXIklbRzcQaCqcEphN77mcTHjMFzWHHkEJYsnMg7W7URZ9JD0t
aA/FAOQUSnLtNAVv7m9XwAakMAckaR63yKEQTZX0Ymf+DMiL1q4POz9WH0w3y9nM
Pm56Kkt/1UvpOmftPp573X8ch/3T+frycSbp58c3xmLb7knYSIW40a7jwgyGSvoC
i9CrAYKWm6jpuHdXh+tgbGWWLwpx2MKXEm+0e5JfpCCeNMyH3gcS7QLmyMTUfsYx
VsWt6sK1fxT3V0ZUu6isjjiN6p/03XRrFFaKn0oueue7tWHfPqkrt9VU6lagGd4=
=qtk+
-----END PGP SIGNATURE-----