<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>



Dear Prof. Kokalj &amp; Xcrysden users,<BR>&nbsp;<BR>i had been trying to compile the Xcrysden 1.5.24 with the src_all libraries package.<BR>after selecting the system, when i try execute the command "make all" , it gives the following two errors: <BR>&nbsp;<BR>one error with a lot of warnings is :<BR>&nbsp;<BR>"SyntaxError: invalid syntax<br>make[5]: *** No rule to make target `depend', needed by `default'.&nbsp; Stop.<br>make[5]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/vgapi'<br>make[4]: *** [subdirs] Error 1<br>make[4]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src'<br>make[3]: *** [default] Error 1<br>make[3]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1'<br>make[2]: *** [linux] Error 2<br>make[2]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1'<br>make[2]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1'<br>make[3]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src'<br>make[4]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/glsl'<br>make[4]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/glsl'<br>make[4]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/glapi'<br>make[4]: Nothing to be done for `install'.<br>make[4]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/glapi'<br>make[4]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/vgapi'<br>running makedepend<br>make[4]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/vgapi'<br>make[4]: Entering directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/vgapi'<br>gcc -c -I../../../include -I../../../src/mapi -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -O3 -g -fPIC&nbsp; -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN&nbsp; -I/usr/X11R6/include -std=c99 -ffast-math -fno-strict-aliasing -DMAPI_ABI_HEADER=\"vgapi/vgapi_tmp.h\" ../../../src/mapi/mapi/entry.c -o entry.o<br>gcc -c -I../../../include -I../../../src/mapi -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -O3 -g -fPIC&nbsp; -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_XSHM -DHAVE_POSIX_MEMALIGN&nbsp; -I/usr/X11R6/include -std=c99 -ffast-math -fno-strict-aliasing -DMAPI_ABI_HEADER=\"vgapi/vgapi_tmp.h\" ../../../src/mapi/mapi/mapi.c -o mapi.o<br>../../../src/mapi/mapi/mapi.c:39: error: ‘MAPI_TABLE_NUM_STATIC’ undeclared here (not in a function)<br>../../../src/mapi/mapi/mapi.c:39: error: ‘MAPI_TABLE_NUM_DYNAMIC’ undeclared here (not in a function)<br>make[4]: *** [mapi.o] Error 1<br>make[4]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src/mapi/vgapi'<br>make[3]: *** [install] Error 1<br>make[3]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1/src'<br>make[2]: *** [install] Error 1<br>make[2]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src/Mesa-7.10.1'<br>make[1]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/src'<br>"<BR>&nbsp;<BR>&nbsp;<BR>&amp; the error in the end of comilation is reads :<BR>&nbsp;<BR>"fft3d.c:4:19: error: fftw3.h: No such file or directory<br>In file included from fft3d.c:6:<br>shankland.h:4:30: error: meschach/matrix2.h: No such file or directory<br>In file included from fft3d.c:6:<br>shankland.h:49: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:49: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:50: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:50: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:62: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:64: error: expected declaration specifiers or ‘...’ before ‘fftw_complex’<br>shankland.h:65: error: expected declaration specifiers or ‘...’ before ‘MAT’<br>shankland.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br>shankland.h:69: error: expected declaration specifiers or ‘...’ before ‘MAT’<br>fft3d.c: In function ‘fft3d_interpolate’:<br>fft3d.c:88: error: ‘fftw_complex’ undeclared (first use in this function)<br>fft3d.c:88: error: (Each undeclared identifier is reported only once<br>fft3d.c:88: error: for each function it appears in.)<br>fft3d.c:88: error: ‘aux’ undeclared (first use in this function)<br>fft3d.c:88: error: ‘fftw2’ undeclared (first use in this function)<br>fft3d.c:89: error: ‘fftw_plan’ undeclared (first use in this function)<br>fft3d.c:89: error: expected ‘;’ before ‘pfor’<br>fft3d.c:96: error: expected expression before ‘)’ token<br>fft3d.c:97: error: expected expression before ‘)’ token<br>fft3d.c:99: error: ‘pfor’ undeclared (first use in this function)<br>fft3d.c:99: error: ‘FFTW_ESTIMATE’ undeclared (first use in this function)<br>fft3d.c:100: error: ‘pbak’ undeclared (first use in this function)<br>fft3d.c:110: error: too many arguments to function ‘fft3d_enlarge_complex_r2c’<br>make[2]: *** [fft3d.o] Error 1<br>make[2]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/C'<br>make[1]: *** [compile] Error 2<br>make[1]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/C'<br>make: *** [src-C] Error 2<br>"<BR>&nbsp;<BR>kindly guide me through the compilation as i'm new to Linux.<BR>&nbsp;<BR>Regards,<BR>&nbsp;<BR>M. Arshad Farhan<BR>                                               </div></body>
</html>