[xcrysden] problem in compiling Xcrysden

محمد ارشد فرحان arshadfarhan at hotmail.com
Mon Mar 12 04:35:45 CET 2012


Dear Prof. Kokalj,i compiled the libraries you told me to but i'm stuck for meschach library.when i tarred the package, there were many pre-compiled files.i copied the header files & library into /XCrySDen-1.5.24-src-all/external/include/ and/XCrySDen-1.5.24-src-all/external/lib
directories and tried to compile the package again.it gave me this error & i defined the value of pi  as suggested by you to the questioner (from a previous thread of yours ; http://www.democritos.it/pipermail/xcrysden/2012-January/001071.html) now it gives the following error: "       -o xcrys   -ltk8.5 -L/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/lib -ltcl8.5 -lGLU -lGL -lXmu -lX11 -lXext -lm 
fft3d.o: In function `fft3d_interpolate':
fft3d.c:(.text+0x4a9): undefined reference to `fftw_malloc'
fft3d.c:(.text+0x4d1): undefined reference to `fftw_malloc'
fft3d.c:(.text+0x4f4): undefined reference to `fftw_plan_dft_r2c_3d'
fft3d.c:(.text+0x517): undefined reference to `fftw_plan_dft_c2r_3d'
fft3d.c:(.text+0x524): undefined reference to `fftw_execute'
fft3d.c:(.text+0x5e3): undefined reference to `fftw_execute'
fft3d.c:(.text+0x5ec): undefined reference to `fftw_destroy_plan'
fft3d.c:(.text+0x5f5): undefined reference to `fftw_destroy_plan'
fft3d.c:(.text+0x5fe): undefined reference to `fftw_free'
fft3d.c:(.text+0x607): undefined reference to `fftw_free'
shank3d.o: In function `shankland3d_interpolate':
shank3d.c:(.text+0x517): undefined reference to `fftw_malloc'
shank3d.c:(.text+0x543): undefined reference to `fftw_plan_dft_r2c_3d'
shank3d.c:(.text+0x56f): undefined reference to `fftw_plan_dft_c2r_3d'
shank3d.c:(.text+0x78f): undefined reference to `fftw_execute'
shank3d.c:(.text+0xaac): undefined reference to `fftw_execute'
shank3d.c:(.text+0xb08): undefined reference to `fftw_destroy_plan'
shank3d.c:(.text+0xb11): undefined reference to `fftw_destroy_plan'
shank3d.c:(.text+0xb1a): undefined reference to `fftw_free'
shank_Hinv.o: In function `shank_HinvObj':
shank_Hinv.c:(.text+0x26): undefined reference to `m_get'
shank_Hinv.o: In function `shank_Hinv':
shank_Hinv.c:(.text+0x9f): undefined reference to `m_get'
shank_Hinv.c:(.text+0x4ab): undefined reference to `m_inverse'
shank_Hinv.c:(.text+0x4b4): undefined reference to `m_free'
shank_Hinv.o: In function `shank1d_lambda':
shank_Hinv.c:(.text+0x69a): undefined reference to `m_free'
shank_Hinv.o: In function `shank2d_lambda':
shank_Hinv.c:(.text+0x98b): undefined reference to `m_free'
shank_Hinv.c:(.text+0x994): undefined reference to `m_free'
shank_Hinv.o: In function `shank3d_lambda':
shank_Hinv.c:(.text+0xdb9): undefined reference to `m_free'
shank_Hinv.o:shank_Hinv.c:(.text+0xdcc): more undefined references to `m_free' follow
collect2: ld returned 1 exit status
make[2]: *** [xcrys] Error 1
make[2]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/C'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/home/mafarhan/programs/XCrySDen-1.5.24-src-all/C'
make: *** [src-C] Error 2
"& one more thing , as i do not have super user rights so i installed fftw library some where else and copied it to /XCrysden..../external/ directory. also i have tried copying the math.h & malloc.h files from the /usr/local/ but no effect.kindly guide me through .Regards,M. Arshad Farhan
 > From: tone.kokalj at ijs.si
> To: xcrysden at democritos.it
> Date: Fri, 9 Mar 2012 08:12:06 +0100
> Subject: Re: [xcrysden] problem in compiling Xcrysden
> 
> On Fri, 2012-03-09 at 14:40 +0900, محمد ارشد فرحان wrote:
> > Dear Prof. Kokalj
> > as you had guided me, i was able to install both Mesa Library and fftw
> > library.
> > however, i could not manage to solve the problem for meschach (atleast
> > i think i could not) 
> > the Xcrysden compilation this time gives a relatively small error
> > which reads:
> >  
> > "In file included from fft3d.c:6:
> > shankland.h:4:30: error: meschach/matrix2.h: No such file or directory
> 
> Which means you either don't have the development version of meschach
> library installed or it is installed on non-standard place. If the
> latter applies then specify its location to one of the available
> *_INCDIR variables in Make.sys. Say, if you have meschach header files
> in /home/myself/include/meschach then specify -I/home/myself/include
> 
> Regards, Tone
> 
> -- 
> Anton Kokalj
> J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia 
> (tel: +386-1-477-3523 // fax:+386-1-477-3822)
> 
> Please, if possible, avoid sending me Word or PowerPoint attachments.
> See:  http://www.gnu.org/philosophy/no-word-attachments.html
> 
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20120312/45eff175/attachment.htm 


More information about the XCrySDen mailing list