<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks to David and Tone. It is compiled so smoothly...<div><br></div><div>m.</div><div><br></div><div><br><div><blockquote type="cite"><div><br><div class="gmail_quote">2011/7/25 David M. Wood <span dir="ltr">&lt;<a href="mailto:dmwood@mines.edu">dmwood@mines.edu</a>&gt;</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. &nbsp;It is somewhat disturbing how difficult this has been. &nbsp;(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.] &nbsp;Because this process has been spread out over many weeks, I undoubtedly have forgotten to specify something; please let me know if so. &nbsp;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. &nbsp;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. &nbsp;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 &nbsp; &nbsp; = /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 &nbsp; = -lm<br>
<br>
FC &nbsp; &nbsp; = /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 &nbsp; &nbsp; = -L/opt/local/lib -lXmu -lX11 -lXext<br>
X_INCDIR &nbsp;= -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 &nbsp;= no<br>
<br>
#<br>
# Libraries<br>
#<br>
TK_LIB &nbsp; &nbsp; &nbsp;= -L/opt/local/lib -ltk8.5<br>
TCL_LIB &nbsp; &nbsp; = -L/opt/local/lib -ltcl8.5<br>
GLU_LIB &nbsp; &nbsp; = -L/opt/local/lib -lGLU<br>
GL_LIB &nbsp; &nbsp; &nbsp;= -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 &nbsp;=<br>
TK_INCDIR &nbsp; =<br>
GL_INCDIR &nbsp; =<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>
_______________________________________________<br>XCrySDen mailing list<br><a href="mailto:XCrySDen@democritos.it">XCrySDen@democritos.it</a><br>http://www.democritos.it/mailman/listinfo/xcrysden<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Courier; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier New; min-height: 14.0px; font-family: Courier New; font-size: 12px; "><br style="font-family: Courier New; font-size: 12px; "></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">*******************************************************</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">Marino Vetuschi Zuccolini</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><a href="mailto:zucco@dipteris.unige.it">zucco@dipteris.unige.it</a></span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">Researcher&nbsp;</span></span><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">/ Geochemist</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">Laboratory of Geochemistry</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier New; min-height: 14.0px; font-family: Courier New; font-size: 12px; "><br style="font-family: Courier New; font-size: 12px; "></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">DIPartimento per lo studio della TErra e delle sue RISorse - Università</span></span></span></span></span><span class="Apple-converted-space"><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">&nbsp; </span></span></span></span></span></span><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">di Genova</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">Tel. ++39 010 3538136 Fax. ++39 010 352169</span></span></span></span></span></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Courier New" size="3" style="font: 12.0px Courier New; font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; "><span class="Apple-style-span" style="font-family: Courier New; font-size: 12px; ">Corso Europa 26, 16132 - Genova - Italy</span></span></span></span></span></font></p><br class="Apple-interchange-newline"></span></span></span></span></span>
</div>
<br></div></body></html>