Thanks a lot David!<div><br></div><div>I am following your steps. It takes some time. When I finished I let you know if it works for me. </div><div>Again, thank you!</div><div><br></div><div><br></div><div><font color="#888888">Prof. Paulo Alex da Silva Carvalho<br>
Instituto de Física<br>Campus de Patos de Minas<br>Universidade Federal de Uberlândia</font><br>
<br><br><div class="gmail_quote">2011/7/25 David M. Wood <span dir="ltr"><<a href="mailto:dmwood@mines.edu">dmwood@mines.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Howdy all!<br>
<br>
After long travails, I have succeeded in building a functioning version of 1.5.24. It is somewhat disturbing how difficult this has been. (It appears to have succeeded today only because of new Mesa and OpenGL libraries from MacPorts.)<br>
<br>
I attempt to give here a quick prescription for building xcd 1.5.24 using external libraries provided by the MacPorts system: <a href="http://www.macports.org/" target="_blank">http://www.macports.org/</a> . [Remember why this is potentially useful: you can use, e.g., libraries which are tweaked for your particular architecture; macports is also well maintained.] Because this process has been spread out over many weeks, I undoubtedly have forgotten to specify something; please let me know if so. I built this under Mac OS X 10.6.8 (Snow Leopard); I'll follow up if things are significantly different under Lion (10.7).<br>
<br>
0. Make sure you have Xcode and relevant Developer (e.g, X11) packages installed<br>
<br>
1. Install a barebones MacPort tree (again, from <a href="http://www.macports.org" target="_blank">www.macports.org</a>)<br>
<br>
2. Install, in no particular order (port will take care of dependencies)<br>
<br>
atlas<br>
fftw-3<br>
gfortran 4.5 [which will end up being named gfortran-mp-4.5 in /opt/local/bin], although earlier versions (e.g., 4.3) worked for me. This should automatically install gcc.<br>
mesa<br>
meschach<br>
tcl<br>
tk<br>
<br>
NB: port install gcc45 +variant:gfortran is an EXAMPLE of how to install a variant of a particular port package.<br>
<br>
Each install will provoke a cascade of other downloads and install; be patient.<br>
<br>
3. Use the Make.sys file below<br>
<br>
4. Type "make all"<br>
<br>
5. Test on .xsf or .xcrysden files<br>
<br>
Carefully inspect the directories and libraries mentioned in Make.sys; if you don't have the ones mentioned, you may not have installed the corresponding MacPorts packages.<br>
<br>
=========BEGINNING OF Make.sys==============<br>
<br>
MAKE = make<br>
<br>
CC = /opt/local/bin/gcc-mp-4.5<br>
#Need the have-no-getline<br>
CFLAGS = -O2 -m64 -L/opt/local/lib -DXC_HAVE_NO_GETLINE<br>
MATH = -lm<br>
<br>
FC = /opt/local/bin/gfortran-mp-4.5<br>
FFLAGS = -O2 -m64 -L/opt/local/lib<br>
#DMW: See notes for CFLAGS above<br>
<br>
#X<br>
#port libs<br>
X_LIB = -L/opt/local/lib -lXmu -lX11 -lXext<br>
X_INCDIR = -I/opt/local/include<br>
<br>
# If you want to use your own libraries and include files,<br>
# then set *_LIB and *_INCDIR variables below accordingly:<br>
#<br>
#------------------------------------------------------------------------<br>
<br>
COMPILE_TCLTK = no<br>
COMPILE_MESA = no<br>
<br>
#<br>
# Libraries<br>
#<br>
TK_LIB = -L/opt/local/lib -ltk8.5<br>
TCL_LIB = -L/opt/local/lib -ltcl8.5<br>
GLU_LIB = -L/opt/local/lib -lGLU<br>
GL_LIB = -L/opt/local/lib -lGL<br>
<br>
#DMW additions<br>
MESCHACH_LIB = -L/opt/local/lib -lmeschach<br>
FFTW3_LIB = -L/opt/local/lib -lfftw3<br>
LDLIB = -L/opt/local/lib<br>
<br>
#<br>
# Include directories<br>
#<br>
<br>
#blank fine<br>
TCL_INCDIR =<br>
TK_INCDIR =<br>
GL_INCDIR =<br>
<br>
#DMW additions<br>
MESCHACH_INCDIR = -I/opt/local/include/meschach<br>
FFTW3_INCDIR = -I/opt/local/include<br>
<br>
=========END OF Make.sys==============<br>
<br>
I readily made a XCrySDen-1.5.24-bin-shared.tar.gz file but assume this won't work unless boatloads of libraries (above) are present.<br>
Hope this helps!<br>
<br>
David M. Wood, Dept. of Physics, Colorado School of Mines, Golden, CO 80401<br>
Phone: (303) 273-3853; Fax: (303) 273-3919<br>
<br>
_______________________________________________<br>
XCrySDen mailing list<br>
<a href="mailto:XCrySDen@democritos.it">XCrySDen@democritos.it</a><br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
<br>
</blockquote></div><br></div>